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

Function mk_addr

crates/kernel/src/testing.rs:34–36  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

32}
33
34pub fn mk_addr(s: &str) -> Address {
35 Address::hash(s.as_bytes())
36}
37
38pub fn mk_id(s: &str) -> MId {
39 KId::new(mk_addr(s), mk_name(s))

Callers 2

mk_idFunction · 0.70

Calls 1

as_bytesMethod · 0.80

Tested by

no test coverage detected