MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / from_bytes

Method from_bytes

atomic-identity/src/signing.rs:52–54  ·  view source on GitHub ↗

Create a signature from raw bytes.

(bytes: [u8; SIGNATURE_SIZE])

Source from the content-addressed store, hash-verified

50impl 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> {

Callers

nothing calls this directly

Calls 1

SignatureClass · 0.85

Tested by

no test coverage detected