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

Method from_bytes

atomic-identity/src/identity.rs:62–64  ·  view source on GitHub ↗

Create an identity ID from raw bytes.

(bytes: [u8; 32])

Source from the content-addressed store, hash-verified

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] {

Callers

nothing calls this directly

Calls 1

IdentityIdClass · 0.85

Tested by

no test coverage detected