Skip to content

Latest commit

 

History

History
84 lines (40 loc) · 2.85 KB

account_authentication.md

File metadata and controls

84 lines (40 loc) · 2.85 KB

Module 0x3::account_authentication

This module contains the resources and functions that are used for account authentication. Migrated from the account module for simplyfying the account module.

Resource InstalledAuthValidator

A resource that holds the auth validator ids for this account has installed.

struct InstalledAuthValidator has key

Constants

The authentication validator is already installed

Function is_auth_validator_installed

Return if the authentication validator is installed for the account at account_addr.

public fun is_auth_validator_installed(account_addr: address, auth_validator_id: u64): bool

Function install_auth_validator

public fun install_auth_validator<ValidatorType: store>(account_signer: &signer)

Function install_auth_validator_entry

public entry fun install_auth_validator_entry<ValidatorType: store>(account_signer: &signer)