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

Function encode_proof_value

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

Source from the content-addressed store, hash-verified

236}
237
238fn encode_proof_value(signature: &Signature) -> String {
239 let mut s = String::new();
240 s.push(MULTIBASE_BASE58_BTC);
241 s.push_str(&bs58::encode(signature.as_bytes()).into_string());
242 s
243}
244
245fn decode_proof_value(value: &str) -> Result<Signature> {
246 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