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

Method trust

atomic-core/src/change/attestation.rs:1118–1121  ·  view source on GitHub ↗

Trust one signer DID with its Ed25519 public key.

(mut self, did: impl Into<String>, public_key: [u8; 32])

Source from the content-addressed store, hash-verified

1116
1117 /// Trust one signer DID with its Ed25519 public key.
1118 pub fn trust(mut self, did: impl Into<String>, public_key: [u8; 32]) -> Self {
1119 self.trusted.insert(did.into(), public_key);
1120 self
1121 }
1122
1123 /// Number of configured trust entries.
1124 pub fn len(&self) -> usize {

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected