Crate kona_preimage
source ·Expand description
§kona-preimage
This crate offers a high-level API over the Preimage Oracle
. It is no_std
compatible to be used in
client
programs, and the host
handles are async
colored to allow for the host
programs to reach out to external
data sources to populate the Preimage Oracle
.
Structs§
- A HintWriter is a high-level interface to the hint pipe. It provides a way to write hints to the host.
- An OracleReader is a high-level interface to the preimage oracle.
- PipeHandle is a handle for one end of a bidirectional pipe.
- A preimage key is a 32-byte value that identifies a preimage that may be fetched from the oracle.
Enums§
Traits§
- A HintWriterClient is a high-level interface to the hint pipe. It provides a way to write hints to the host.
- A PreimageOracleClient is a high-level interface to read data from the host, keyed by a PreimageKey.