[−][src]Module exonum::blockchain
The module containing building blocks for creating blockchains powered by the Exonum framework.
Services are the main extension point for the Exonum framework. To create your service on top of Exonum blockchain you need to perform the following steps:
- Define your own information schema.
- Create one or more transaction types using the
transactions!
macro and implement theTransaction
trait for them. - Create a data structure implementing the
Service
trait. - Write API handlers for the service, if required.
You may consult the service creation tutorial for a detailed instruction on how to create services.
Re-exports
pub use self::config::ConsensusConfig; |
pub use self::config::StoredConfiguration; |
pub use self::config::ValidatorKeys; |
Modules
config | Exonum global variables which are stored in the blockchain as UTF-8 encoded JSON. |
Structs
Block | Exonum block header data structure. |
BlockProof | Block with its |
Blockchain | Exonum blockchain instance with a certain services set and data storage. |
ExecutionError | Result of unsuccessful transaction execution. |
GenesisConfig | The initial configuration which is committed into the genesis block. |
Schema | Information schema for indices maintained by the Exonum core logic. |
ServiceContext | The current node state on which the blockchain is running, or in other words
execution context. This structure is passed to the |
SharedNodeState | Shared part of the context, used to take some values from the |
TransactionError | Result of unsuccessful transaction execution encompassing both service and framework-wide error handling. This error indicates whether a panic or a user error has occurred. |
TxLocation | Transaction location in a block. The given entity defines the block where the transaction was included and the position of this transaction in that block. |
Enums
TransactionErrorType | Type of transaction error. |
Traits
Service | A trait that describes the business logic of a certain service. |
Transaction | Transaction processing functionality for |
TransactionSet |
|
Type Definitions
ExecutionResult | Returns a result of the |
TransactionResult | Extended version of |