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<Version>, Option<ObjectDigest>)>;
    fn input_objects(&self) -> Vec<InputObjectKind>;
    fn receiving_objects(&self) -> Vec<ObjectReference>;
    fn shared_objects(&self) -> Vec<SharedObjectReference>;
    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<Version>, Option<ObjectDigest>)>

Source

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

Source

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

Source

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

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.

Implementations on Foreign Types§

Source§

impl MoveAuthenticatorExt for MoveAuthenticator

Source§

fn address(&self) -> Address

Source§

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

Source§

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

Source§

fn object_to_authenticate(&self) -> &CallArg

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl MoveAuthenticatorExt for MoveAuthenticatorV1

Source§

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

Returns all input objects used by the MoveAuthenticatorV1, including those from the object to authenticate.

Source§

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

Returns all shared input objects used by the MoveAuthenticatorV1, including those from the object to authenticate.

Source§

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

Validity check for MoveAuthenticatorV1.

Source§

fn address(&self) -> Address

Source§

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

Source§

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

Source§

fn object_to_authenticate(&self) -> &CallArg

Source§

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

Source§

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

Implementors§