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

Function test_comm_commit

crates/ixon/src/comm.rs:141–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139
140 #[test]
141 fn test_comm_commit() {
142 let comm = Comm::new(Address::hash(b"secret"), Address::hash(b"payload"));
143 let addr = comm.commit();
144 // Commit should be deterministic
145 let addr2 = comm.commit();
146 assert_eq!(addr, addr2);
147 }
148}

Callers

nothing calls this directly

Calls 1

commitMethod · 0.45

Tested by

no test coverage detected