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

Function encode_proof_value

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

Source from the content-addressed store, hash-verified

283}
284
285fn encode_proof_value(signature: &Signature) -> String {
286 let mut s = String::new();
287 s.push(MULTIBASE_BASE58_BTC);
288 s.push_str(&bs58::encode(signature.as_bytes()).into_string());
289 s
290}
291
292fn decode_proof_value(value: &str) -> Result<Signature> {
293 let mut chars = value.chars();

Callers 1

attach_proofFunction · 0.85

Calls 3

encodeFunction · 0.50
pushMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected