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

Method from_bytes

atomic-identity/src/identity.rs:56–58  ·  view source on GitHub ↗

Create an identity ID from raw bytes.

(bytes: [u8; 32])

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

IdentityIdClass · 0.85

Tested by

no test coverage detected