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

Method from_bytes

atomic-identity/src/delegation.rs:443–445  ·  view source on GitHub ↗

Create a delegation ID from raw bytes.

(bytes: [u8; 32])

Source from the content-addressed store, hash-verified

441
442 /// Create a delegation ID from raw bytes.
443 pub fn from_bytes(bytes: [u8; 32]) -> Self {
444 DelegationId(bytes)
445 }
446
447 /// Get the raw bytes.
448 pub fn as_bytes(&self) -> &[u8; 32] {

Callers

nothing calls this directly

Calls 1

DelegationIdClass · 0.85

Tested by

no test coverage detected