Skip to main content

MoveAuthenticatorExt

Trait MoveAuthenticatorExt 

Source
pub trait MoveAuthenticatorExt: Sized + Sealed {
    // Required methods
    fn address(&self) -> Address;
    fn call_args(&self) -> &[CallArg] ;
    fn type_args(&self) -> &[TypeTag];
    fn object_to_authenticate(&self) -> &CallArg;
    fn object_to_authenticate_components(
        &self,
    ) -> UserInputResult<(ObjectId, Option<SequenceNumber>, Option<ObjectDigest>)>;
    fn input_objects(&self) -> Vec<InputObjectKind>;
    fn receiving_objects(&self) -> Vec<ObjectRef>;
    fn shared_objects(&self) -> Vec<SharedObjectRef>;
    fn validity_check(&self, config: &ProtocolConfig) -> UserInputResult;
}

Required Methods§

Source

fn address(&self) -> Address

Returns the address of the object being authenticated, which acts as the sender of the transaction.

Source

fn call_args(&self) -> &[CallArg]

Returns the input objects or primitive values passed to the authenticate function.

Source

fn type_args(&self) -> &[TypeTag]

Returns the type arguments for the Move authenticate function.

Source

fn object_to_authenticate(&self) -> &CallArg

Returns the object that is being authenticated (the account/sender).

Source

fn object_to_authenticate_components( &self, ) -> UserInputResult<(ObjectId, Option<SequenceNumber>, Option<ObjectDigest>)>

Source

fn input_objects(&self) -> Vec<InputObjectKind>

Source

fn receiving_objects(&self) -> Vec<ObjectRef>

Source

fn shared_objects(&self) -> Vec<SharedObjectRef>

Source

fn validity_check(&self, config: &ProtocolConfig) -> UserInputResult

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§