Expand description
Types reexported from linera_base
.
Structs§
- Account
- A system account.
- Amount
- A non-negative amount of tokens.
- Application
Description - Description of a user application.
- Application
Id - A unique identifier for a user application from a blob.
- Application
Permissions - Permissions for applications on a chain.
- Blob
- A blob of binary data, with its hash.
- Blob
Content - A blob of binary data.
- BlobId
- A content-addressed blob ID i.e. the hash of the
BlobContent
. - Block
Height - A block height to identify blocks in a chain.
- Bytecode
- A WebAssembly module’s bytecode.
- Chain
Description - Initial chain configuration and chain origin.
- ChainId
- The unique identifier (UID) of a chain. This is currently computed as the hash value
of a
ChainDescription
. - Chain
Ownership - Represents the owner(s) of a chain.
- Compressed
Bytecode - A compressed WebAssembly module’s bytecode.
- Crypto
Hash - A Keccak256 value.
- Crypto
Hash Vec - A vector of cryptographic hashes. This is used to represent a hash of a list of hashes.
- Ed25519
Public Key - An Ed25519 signature public key.
- Ed25519
Secret Key - An Ed25519 secret key.
- Ed25519
Signature - An Ed25519 signature.
- Epoch
- A number identifying the configuration of the chain (aka the committee).
- Event
- An event recorded in a block.
- EventId
- An event identifier.
- EvmPublic
Key - A secp256k1 public key.
- EvmSecret
Key - A secp256k1 secret key.
- EvmSignature
- A secp256k1 signature.
- InMemory
Signer - In-memory signer.
- Index
AndEvent - The result of an
events_from_index
. - Initial
Chain Config - The initial configuration for a new chain.
- Message
Id - The index of a message in a chain.
- Module
Id - A unique identifier for a module.
- Network
Description - A description of the current Linera network to be stored in every node’s database.
- Resources
- Resources that an application may spend during the execution of transaction or an application call.
- Secp256k1
Public Key - A secp256k1 public key.
- Secp256k1
Secret Key - A secp256k1 secret key.
- Secp256k1
Signature - A secp256k1 signature.
- Send
Message Request - A request to send a message.
- Stream
Id - An event stream ID.
- Stream
Name - The name of an event stream.
- Stream
Update - An update for a stream with new events.
- Test
String - A BCS-signable struct for testing.
- Time
Delta - A duration in microseconds.
- Timeout
Config - The timeout configuration: how long fast, multi-leader and single-leader rounds last.
- Timestamp
- A timestamp, in microseconds since the Unix epoch.
Enums§
- Account
Owner - An account owner.
- Account
Permission Error - Errors that can happen when verifying the authentication of an operation over an account.
- Account
Public Key - The public key of a chain owner. The corresponding private key is allowed to propose blocks on the chain and transfer account’s tokens.
- Account
Secret Key - The private key of a chain owner.
- Account
Signature - The signature of a chain owner.
- Arithmetic
Error - An error type for arithmetic errors.
- BcsHex
Parse Error - An error trying to parse the hex-digits of a BCS-encoded value.
- Blob
Type - The type of the blob.
Should be a 1:1 mapping of the types in
Blob
. - Chain
Origin - What created a chain.
- Change
Application Permissions Error - Errors that can happen when attempting to change the application permissions.
- Close
Chain Error - Errors that can happen when attempting to close a chain.
- Crypto
Error - Error type for cryptographic errors.
- Decompression
Error - A type for errors happening during decompression.
- EvmQuery
- The possible types of queries for an EVM contract
- Generic
Application Id - A unique identifier for an application.
- Oracle
Response - A record of a single oracle response.
- Parse
Amount Error - Round
- An identifier for successive attempts to decide a value in a consensus protocol.
- Signature
Scheme - Signature scheme used for the public key.
Traits§
- Abi
- A trait that includes all the types exported by a Linera application (both contract and service).
- BcsHashable
- Activate the blanket implementation of
Hashable
based on serde and BCS. - BcsSignable
- Activate the blanket implementation of
Signable
based on serde and BCS. - Block
Height Range Bounds - Allows converting
BlockHeight
ranges to inclusive tuples of bounds. - Contract
Abi - A trait that includes all the types exported by a Linera application contract.
- Crypto
Rng - Wrapper around
rand::CryptoRng
andrand::RngCore
. - HasType
Name - Something that we know how to hash and sign.
- Hashable
- Something that we know how to hash.
- Service
Abi - A trait that includes all the types exported by a Linera application service.
- Signer
- A trait for signing keys.
- With
Contract Abi - Marker trait to help importing contract types.
- With
Service Abi - Marker trait to help importing service types.
Functions§
- u64_
array_ to_ be_ bytes - Returns the bytes that represent the
integers
in big-endian.
Type Aliases§
- Validator
Keypair - The key pair of a validator.
- Validator
Public Key - The public key of a validator.
- Validator
Secret Key - The private key of a validator.
- Validator
Signature - The signature of a validator.