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

Method id_matches

atomic-identity/src/delegation.rs:738–740  ·  view source on GitHub ↗

Recompute the id from the body and compare against the carried one. The identity ids are recovered from the DIDs, which are fingerprints, so this needs the two [`IdentityId`]s rather than the DID strings.

(&self, delegator_id: &IdentityId, delegate_id: &IdentityId)

Source from the content-addressed store, hash-verified

736 /// The identity ids are recovered from the DIDs, which are fingerprints, so
737 /// this needs the two [`IdentityId`]s rather than the DID strings.
738 pub fn id_matches(&self, delegator_id: &IdentityId, delegate_id: &IdentityId) -> bool {
739 self.id == DelegationId::from_delegation_data(delegator_id, delegate_id, self.issued)
740 }
741}
742
743impl fmt::Display for Delegation {

Callers 1

verifyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected