Crate rgbstd

source ·

Re-exports

Modules

  • RGB containers are data packages which can be transferred between smart contract users. There are two main types of containers:
  • RGB contract interface provides a mapping between identifiers of RGB schema- defined contract state and operation types to a human-readable and standardized wallet APIs.
  • Module defines API used by providers of persistent data for RGB contracts.
  • API for interfacing different virtual machines

Structs

Enums

  • State data are assigned to a seal definition, which means that they are owned by a person controlling spending of the seal UTXO, unless the seal is closed, indicating that a transfer of ownership had taken place
  • Errors parsing string representation of a blinding factor.
  • An atom of an additive state, which thus can be monomorphically encrypted.
  • Today we support only a single format of confidential data, because of the limitations of the underlying secp256k1-zkp library: it works only with u64 numbers. Nevertheless, homomorphic commitments can be created to everything that has up to 256 bits and commutative arithmetics, so in the future we plan to support more types. We reserve this possibility by internally encoding [ConfidentialFormat] with the same type specification details as used for [DateFormat]
  • Aggregated type used to supply full contract operation type and transition/state extension type information
  • Node type: genesis, extensions and state transitions
  • Seal outpoint is not a seal definition. It is an accessory structure allowing to
  • Range proof value.
  • Errors verifying range proofs.
  • Virtual machine and machine-specific script data.
  • Categories of the state
  • Categories of the state
  • Virtual machine types.
  • RGB consensus information about the current mined height of a witness transaction defining the ordering of the contract state data.

Constants

Traits

  • Marker trait for types of state which are just a commitment to the actual state data.
  • Marker trait for types of state holding explicit state data.
  • Trait defining common API for all operation type schemata
  • RGB contract operation API, defined as trait
  • Methods common for all transaction-output based seal types.

Type Aliases