Skip to main content

Crate kormir

Crate kormir 

Source

Re-exports§

pub use bitcoin;
pub use lightning;

Modules§

error
storage

Structs§

DigitDecompositionEventDescriptor
Describes the outcomes of a numerical outcome event.
EnumEventDescriptor
Describes the outcomes of an event as an enumeration.
Oracle
Oracle encapsulates the oracle’s signing key, nonce derivation and persistence layer to create announcements and produce attestations for enum and numeric events.
OracleAnnouncement
An oracle announcement that describe an event and the way that an oracle will attest to it.
OracleAttestation
An attestation from an oracle providing signatures over an outcome value.
OracleEvent
Information about an event and the way that the oracle will attest to it.
Signature
Represents a schnorr signature.

Enums§

EventDescriptor
Description of an event.

Traits§

Readable
A trait that various LDK types implement allowing them to be read in from a Read.
Writeable
A trait that various LDK types implement allowing them to be written out to a Writer.

Functions§

create_enum_event
Creates an enum event announcement for oracle events with discrete outcomes.
create_numeric_event
Creates a numeric event announcement for oracle events with numeric outcomes.
derive_signing_key
Derives the Taproot signing SecretKey from a master Xpriv using SIGNING_KEY_PATH.
get_max_value
Returns the maximum representable (absolute) magnitude for the descriptor.
get_min_value
Returns the minimum representable outcome for the provided digit decomposition descriptor.
sign_enum_event
Signs an enum event with a specific outcome.
sign_numeric_event
Signs a numeric event with a specific numeric outcome.