Crate rgbcore

Source
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§

NoClientWitness
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, the SingleUseSeal must set its SingleUseSeal::CliWitness to NoClientWitness type.
OperationSeals
Combination of an operation with operation-defined seals.
SealWitness
Seal closing witness, consisting of published and client-side parts.

Enums§

SealError
Errors indicating cases of failed single-use seal verification with SealWitness::verify_seal_closing and SealWitness::verify_seals_closing procedures.
VerificationError
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§

ClientSideWitness
A client-side part of the seal closing witness SealWitness.
ContractApi
API exposed by the contract required for evaluating and verifying the contract state (see ContractVerify).
ContractVerify
Main implementation of the contract verification procedure.
PublishedWitness
A published part of the seal closing witness SealWitness.
ReadOperation
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.
RgbSealDef
A type which serves as a definition of a single-use seal for RGB contracts.
SingleUseSeal
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).