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

Function get_opt_addr

crates/ixon/src/proof.rs:961–967  ·  view source on GitHub ↗
(buf: &mut &[u8])

Source from the content-addressed store, hash-verified

959}
960fn get_scope(validator: u8, buf: &mut &[u8]) -> Result<(), String> {
961 if get_u8(buf)? != 3 {
962 return Err("claim: unsupported object format".into());
963 }
964 if get_u8(buf)? != validator {
965 return Err("claim: wrong validator identity".into());
966 }
967 Ok(())
968}
969
970impl Claim {

Callers 1

getMethod · 0.85

Calls 2

get_u8Function · 0.70
get_addressFunction · 0.70

Tested by

no test coverage detected