Expand description
Support for signature based authorization of actions on a user account using public key(s) and signature threshold (minimum number of signatures needed to authorize an action) stored on-chain.
Modules§
- common
- Cryptographic keys
Structs§
- Account
- Account data
- Account
Public Keys Map - Holds the public key map data as a bimap for efficient querying
- Hash
- A hash, typically a sha-2 hash of a tx
- Init
Account - A tx data type to initialize a new established account
- Key
- A storage key is made of storage key segments
DbKeySeg, separated byKEY_SEGMENT_SEPARATOR. - Update
Account - A tx data type to update an account’s validity predicate
Enums§
- Address
- An account’s address
Functions§
- clear_
public_ keys - Clear the public keys account subtorage space
- exists
- Check if a user account exists in storage
- get_
protocol_ public_ keys_ key_ at_ addr - get_
public_ keys_ key_ at_ addr - get_
threshold_ key_ at_ addr - init_
account_ storage - Init the subspace of a new account
- is_
pks_ key - Check if the given storage key is a public key. If it is, returns the owner.
- is_
protocol_ pk_ key - Check if the given storage key is a public key. If it is, returns the owner.
- is_
protocol_ public_ keys_ key_ at_ addr - is_
public_ keys_ key_ at_ addr - is_
threshold_ key - Check if the given storage key is a threshol key.
- is_
threshold_ key_ at_ addr - pks_
handle - LazyMap handler for the user’s public key subspace
- pks_
key_ prefix - Obtain a storage key for user’s public key.
- protocol_
pk_ key - Obtain a storage key for user’s protocol public key.
- public_
keys - Get the public keys associated with an account
- public_
keys_ index_ map - Get the public key index map associated with an account
- reveal_
pk - Reveal a PK of an implicit account - the PK is written into the storage of the address derived from the PK.
- set_
public_ key_ at - Set public key at specific index
- threshold
- Get the threshold associated with an account
- threshold_
key - Obtain the storage key for a user threshold