pub fn new(value: Vec<u8>, owner: PublicKey) -> Self {
        let hash_of_value = tiny_keccak::sha3_256(&value);
        let serialised_contents = utils::serialise(&(hash_of_value, &owner));
        let address = Address::Unpub(XorName(tiny_keccak::sha3_256(&serialised_contents)));

        Self {
            address,
            value,
            owner,
        }
    }
/// Creates a new instance of `UnpubImmutableData`
Creates a new instance of `UnpubImmutableData`
Creates a new instance of ` UnpubImmutableData `
pub fn new(value: Vec<u8>, owner: PublicKey) -> Self {
        let hash_of_value = tiny_keccak::sha3_256(&value);
        let serialised_contents = utils::serialise(&(hash_of_value, &owner));
        let address = Address::Unpub(XorName(tiny_keccak::sha3_256(&serialised_contents)));
        Self {
            address,
            value,
            owner,
        }
    }
pub fn new ( value : Vec < u8 > , owner : PublicKey ) -> Self { let hash_of_value = tiny_keccak :: sha3_256 ( & value ) ; let serialised_contents = utils :: serialise ( & ( hash_of_value , & owner ) ) ; let address = Address :: Unpub ( XorName ( tiny_keccak :: sha3_256 ( & serialised_contents ) ) ) ; Self { address , value , owner , } }
Creates a new instance of `UnpubImmutableData`
Creates a new instance of ` UnpubImmutableData `
value
Vec<u8>
owner
PublicKey
value
Vec<u8>
owner
PublicKey