Re-exports§
pub use defuse_crypto as crypto;pub use defuse_erc191 as erc191;pub use defuse_nep413 as nep413;pub use defuse_sep53 as sep53;pub use defuse_tip191 as tip191;pub use defuse_token_id as token_id;pub use defuse_ton_connect as ton_connect;
Modules§
Structs§
- Account
Id - NEAR Account Identifier.
- Account
IdRef - Account identifier. This is the human readable UTF-8 string which is used internally to index accounts on the network and their respective state.
- Expirable
Nonce - Expirable nonces contain deadline which is 8 bytes of timestamp in nanoseconds
- Gas
- Lock
- A persistent lock, which stores its state (whether it’s locked or unlocked) on-chain, so that the inner value can be accessed depending on the current state of the lock.
- Near
Token - Nonces
- See permit2 nonce schema
- Salt
- Salted
Nonce - State
Init V1 - Timestamp
- A Unix timestamp
Enums§
- Defuse
Error - Global
Contract Id - Public
Key - Signature
- State
Init - Versioned
Nonce - To distinguish between legacy nonces and versioned nonces
we use a specific prefix individual for each version.
Serialized versioned nonce contains:
VERSIONED_MAGIC_PREFIX (4 bytes) || VERSION (1 byte) || NONCE_BYTES (27 bytes)Currently supported versions: - V1:SALT (4 bytes) || DEADLINE (8 bytes) || NONCE (15 random bytes)