MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / encode_proof_value

Function encode_proof_value

atomic-canonical/src/proof.rs:187–192  ·  view source on GitHub ↗
(signature: &Signature)

Source from the content-addressed store, hash-verified

185}
186
187fn encode_proof_value(signature: &Signature) -> String {
188 let mut s = String::new();
189 s.push(MULTIBASE_BASE58_BTC);
190 s.push_str(&bs58::encode(signature.as_bytes()).into_string());
191 s
192}
193
194fn decode_proof_value(value: &str) -> Result<Signature> {
195 let mut chars = value.chars();

Callers 1

attest_valueFunction · 0.85

Calls 2

pushMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected