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

Method add

atomic-identity/src/signing.rs:299–308  ·  view source on GitHub ↗

Add a signature to the set.

(&mut self, signature: SignatureInfo)

Source from the content-addressed store, hash-verified

297
298 /// Add a signature to the set.
299 pub fn add(&mut self, signature: SignatureInfo) {
300 // Avoid duplicates by signer ID
301 if !self
302 .signatures
303 .iter()
304 .any(|s| s.signer_id == signature.signer_id)
305 {
306 self.signatures.push(signature);
307 }
308 }
309
310 /// Sign and add to the set.
311 pub fn sign_and_add(

Callers 1

sign_and_addMethod · 0.45

Calls 2

iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected