Skip to main content

exec_delegate

Function exec_delegate 

Source
pub fn exec_delegate(
    src: &Cap,
    src_cell: &RevocationCell,
    want_rights: CapRights,
    want_native: Option<&NativeMask>,
) -> Result<Cap, DelegateError>
Expand description

Security gate for Opcode::Delegate. All authority math is Cap::attenuate; this wrapper only enforces revocation and the native-mask precondition.