Expand description
RGB is confidential and scalable client-validated smart contracts for Bitcoin & Lightning. To learn more about the RGB please check [RGB website][Site].
RGB Core library provides consensus-critical and validation code for RGB. It is a standard implementation, jointly with [LNP/BP Standards][LNPBPs] defining RGB consensus and validation rules.
Structs§
- NoClient
Witness - Some single-use seal protocols may not distinguish client-side seal closing
witness and have just the published one. To use
SealWitness
type in such protocols, theSingleUseSeal
must set itsSingleUseSeal::CliWitness
toNoClientWitness
type. - Operation
Seals - Combination of an operation with operation-defined seals.
- Seal
Witness - Seal closing witness, consisting of published and client-side parts.
Enums§
- Seal
Error - Errors indicating cases of failed single-use seal verification with
SealWitness::verify_seal_closing
andSealWitness::verify_seals_closing
procedures. - Verification
Error - Errors returned from the verification.
Constants§
- LIB_
NAME_ RGB - Strict type library name for all RGB-related types.
- LIB_
NAME_ SEALS - Strict type library name for single-use seals.
Traits§
- Client
Side Witness - A client-side part of the seal closing witness
SealWitness
. - Contract
Api - API exposed by the contract required for evaluating and verifying the contract state (see
ContractVerify
). - Contract
Verify - Main implementation of the contract verification procedure.
- Published
Witness - A published part of the seal closing witness
SealWitness
. - Read
Operation - Provider which reads an operation and its seals from a consignment stream.
- RgbSeal
- A type which serves as a single-use seal protocol implementation for RGB contracts.
- RgbSeal
Def - A type which serves as a definition of a single-use seal for RGB contracts.
- Single
UseSeal - Trait for the types implementing single-use seal protocol, composing all
their components (seal definition, message, and seal closing withness)
together, and implementing the logic of the protocol-specific verification
of the seal closing over the message (see
Self::is_included
).