Create a signature from raw bytes.
(bytes: [u8; SIGNATURE_SIZE])
| 50 | impl Signature { |
| 51 | /// Create a signature from raw bytes. |
| 52 | pub fn from_bytes(bytes: [u8; SIGNATURE_SIZE]) -> Self { |
| 53 | Signature(bytes) |
| 54 | } |
| 55 | |
| 56 | /// Create a signature from a byte slice. |
| 57 | pub fn from_slice(bytes: &[u8]) -> Result<Self, IdentityError> { |