Trust one signer DID with its Ed25519 public key.
(mut self, did: impl Into<String>, public_key: [u8; 32])
| 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 { |
no test coverage detected