Crate ab_system_contract_simple_wallet_base

Source
Expand description

A simple wallet contract base contract to be used by other contracts

It includes the core logic, making contracts using it much more compact. The implementation is based on [schnorrkel] crate and its SR25519 signature scheme.

It abstracts away its inner types in the public API to allow it to evolve over time.

The general workflow is:

Modules§

ffi
FFI code generated by procedural macro
payload
This module contains generic utilities for serializing and deserializing method calls to/from payload bytes.
seal
Utilities for Seal creation and verification

Structs§

Seal
Transaction seal.
SimpleWalletBase
A simple wallet contract base contract to be used by other contracts.
WalletState
State of the wallet.

Constants§

EXTERNAL_ARGS_BUFFER_SIZE
Size of the buffer in pointers that is used for ExternalArgs pointers.
OUTPUT_BUFFER_OFFSETS_SIZE
Size of the buffer in entries that is used to store buffer offsets.
OUTPUT_BUFFER_SIZE
Size of the buffer in bytes that is used as a stack for storing outputs.
SIGNING_CONTEXT
Context for transaction signatures, see SigningContext.

Traits§

SimpleWalletBaseExt
Extension trait that provides helper methods for calling SimpleWalletBase’s methods on Env for convenience purposes