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)
| 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 | |
| 743 | impl fmt::Display for Delegation { |