MCPcopy Create free account
hub / github.com/argumentcomputer/ix / build_from_hash

Method build_from_hash

crates/ffi/src/ix/address.rs:11–13  ·  view source on GitHub ↗

Build an Ix.Address from a blake3::Hash.

(hash: &blake3::Hash)

Source from the content-addressed store, hash-verified

9impl LeanIxAddress<LeanOwned> {
10 /// Build an Ix.Address from a blake3::Hash.
11 pub fn build_from_hash(hash: &blake3::Hash) -> Self {
12 LeanByteArray::from_bytes(hash.as_bytes()).into()
13 }
14
15 /// Build an Ix.Address from an Ixon Address (which is just a [u8; 32]).
16 pub fn build(addr: &Address) -> Self {

Callers

nothing calls this directly

Calls 2

from_bytesFunction · 0.85
as_bytesMethod · 0.80

Tested by

no test coverage detected