Create an identity ID from raw bytes.
(bytes: [u8; 32])
| 54 | |
| 55 | /// Create an identity ID from raw bytes. |
| 56 | pub fn from_bytes(bytes: [u8; 32]) -> Self { |
| 57 | IdentityId(bytes) |
| 58 | } |
| 59 | |
| 60 | /// Get the raw bytes of the identity ID. |
| 61 | pub fn as_bytes(&self) -> &[u8; 32] { |