Module linera_sdk::linera_base_types
source · Expand description
Types reexported from linera_base
.
Structs§
- A system account.
- The public key of a chain owner. The corresponding private key is allowed to propose blocks on the chain and transfer account’s tokens.
- The private key of a chain owner.
- The signature of a chain owner.
- A non-negative amount of tokens.
- A unique identifier for a user application.
- Permissions for applications on a chain.
- A blob of binary data, with its hash.
- A blob of binary data.
- A content-addressed blob ID i.e. the hash of the
BlobContent
. - A block height to identify blocks in a chain.
- A WebAssembly module’s bytecode.
- A unique identifier for an application bytecode.
- The unique identifier (UID) of a chain. This is currently computed as the hash value of a
ChainDescription
. - Represents the owner(s) of a chain.
- A channel name together with its application ID.
- The name of a subscription channel.
- A compressed WebAssembly module’s bytecode.
- A Keccak256 value.
- A vector of cryptographic hashes. This is used to represent a hash of a list of hashes.
- An event recorded in an executed block.
- An event identifier.
- The index of a message in a chain.
- The owner of a chain. This is currently the hash of the owner’s public key used to verify signatures.
- Resources that an application may spend during the execution of transaction or an application call.
- A request to send a message.
- An event stream ID.
- The name of an event stream.
- A BCS-signable struct for testing.
- A duration in microseconds.
- The timeout configuration: how long fast, multi-leader and single-leader rounds last.
- A timestamp, in microseconds since the Unix epoch.
- Description of the necessary information to run a user application.
Enums§
- An account owner.
- An error type for arithmetic errors.
- An error trying to parse the hex-digits of a BCS-encoded value.
- The type of the blob. Should be a 1:1 mapping of the types in
Blob
. - How to create a chain.
- Errors that can happen when attempting to change the application permissions.
- Errors that can happen when attempting to close a chain.
- Error type for cryptographic errors.
- A type for errors happening during decompression.
- The destination of a message, relative to a particular application.
- A unique identifier for an application.
- A record of a single oracle response.
- An identifier for successive attempts to decide a value in a consensus protocol.
Traits§
- A trait that includes all the types exported by a Linera application (both contract and service).
- Activate the blanket implementation of
Hashable
based on serde and BCS. - Activate the blanket implementation of
Signable
based on serde and BCS. - A trait that includes all the types exported by a Linera application contract.
- Wrapper around
rand::CryptoRng
andrand::RngCore
. - Something that we know how to hash and sign.
- Something that we know how to hash.
- A trait that includes all the types exported by a Linera application service.
- Marker trait to help importing contract types.
- Marker trait to help importing service types.
Type Aliases§
- Alias for
ApplicationId
. Use this alias in the core protocol where the distinction with the more general enumGenericApplicationId
matters. - The key pair of a validator.
- The public key of a validator.
- The private key of a validator.
- The signature of a validator.