Project Konduit WASM

Functions§

§

enableLogsAndPanicHook(level: LogLevel): void

To be called once in the application life-cycle to make logs from Rust/Wasm displayed in the browser console, and to install a hook on Rust internal panics in order to make them bubble as plain JavaScript errors.

Enumerations§

LogLevel

A log level to configure the logger.

Classes§

Adaptor

A Konduit Adaptor.

AdaptorInfo

Channel parameters and ToS of a given adaptor.

ChannelOutput

A channel output as visible on the Cardano L1

Connector

A reference to a Cardano connector.

Credential

A wrapper around the blake2b-224 hash digest of a key or script.

Hash28

A blake-2b hash digest of 28 bytes (224 bits)

Hash32

A blake-2b hash digest of 32 bytes (256 bits)

Input

A reference to a past transaction output.

InputSummary

An Input alongside its resolved Output

Invoice

A parsed Bolt11 invoice

Konduit

A 'black-box' API for Konduit L1 & L2 operations.

Lock

The hash of an HTLC secret, awaiting a preimage.

Lockeds

A list of known locks the consumer expect to see while syncing with the adaptor.

NetworkId

A network identifier to protect misuses of addresses or transactions on a wrong network.

Output

A transaction output, which comprises of at least an Address and a Value.

OutputSummary

An Output that carries only reference scripts as hashes, and not plain scripts.

Quote

Proposed price and routing fee by an Adaptor for a given Bolt11 invoice.

ShelleyAddress

An Address, specialized to the Shelley kind.

SigningKey

An Ed25519 signing key (non-extended).

SyncStatus

A summary of a syncChannel operation.

Tag

An up-to-32-bytes tag to allow reuse of VerificationKey across channels.

TransactionSummary

A synthetic representation of a transaction used by the Connector.

VerificationKey

An Ed25519 verification key (non-extended).

Wallet

A rudimentary wallet interface