Create an identity ID from raw bytes.
(bytes: [u8; 32])
| 60 | |
| 61 | /// Create an identity ID from raw bytes. |
| 62 | pub fn from_bytes(bytes: [u8; 32]) -> Self { |
| 63 | IdentityId(bytes) |
| 64 | } |
| 65 | |
| 66 | /// Get the raw bytes of the identity ID. |
| 67 | pub fn as_bytes(&self) -> &[u8; 32] { |