pub(crate) fn validate_key(&self, key: &Key) -> Result<(), Error> {
        let uref = match key {
            Key::URef(uref) => uref,
            _ => return Ok(()),
        };
        self.validate_uref(uref)
    }
/// Validates whether key is not forged (whether it can be found in the
/// `named_keys`) and whether the version of a key that contract wants
/// to use, has access rights that are less powerful than access rights'
/// of the key in the `named_keys`.
Validates whether key is not forged (whether it can be found in the
`named_keys`) and whether the version of a key that contract wants
to use, has access rights that are less powerful than access rights'
of the key in the `named_keys`.
Validates whether key is not forged ( whether it can be found in the ` named_keys ` ) and whether the version of a key that contract wants to use has access rights that are less powerful than access rights ' of the key in the ` named_keys ` .
pub(crate) fn validate_key(&self, key: &Key) -> Result<(), Error> {
        let uref = match key {
            Key::URef(uref) => uref,
            _ => return Ok(()),
        };
        self.validate_uref(uref)
    }
pub ( crate ) fn validate_key ( & self , key : & Key ) -> Result < ( ) , Error > { let uref = match key { Key :: URef ( uref ) => uref , _ => return Ok ( ( ) ) , } ; self . validate_uref ( uref ) }
Validates whether key is not forged (whether it can be found in the
`named_keys`) and whether the version of a key that contract wants
to use, has access rights that are less powerful than access rights'
of the key in the `named_keys`.
Validates whether key is not forged ( whether it can be found in the ` named_keys ` ) and whether the version of a key that contract wants to use has access rights that are less powerful than access rights ' of the key in the ` named_keys ` .
&self
key
&Key
&self
key
&Key