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

Method commit

crates/ixon/src/comm.rs:73–77  ·  view source on GitHub ↗

Serialize with tag and compute content address: `blake3(0xE1 + secret + payload)`.

(&self)

Source from the content-addressed store, hash-verified

71
72 /// Serialize with tag and compute content address: `blake3(0xE1 + secret + payload)`.
73 pub fn commit(&self) -> Address {
74 let mut buf = Vec::new();
75 self.put_tagged(&mut buf);
76 Address::hash(&buf)
77 }
78}
79
80#[cfg(test)]

Callers 12

test_comm_commitFunction · 0.45
trailing_bytes_rejectedFunction · 0.45
peek_forFunction · 0.45
defn_proj_addressFunction · 0.45
indc_proj_addressFunction · 0.45
recr_proj_addressFunction · 0.45
ctor_proj_addressFunction · 0.45
store_canonicalFunction · 0.45

Calls 1

put_taggedMethod · 0.80