Expand description
Reexported types needed by SDK consumers. All types exported here are considered part of the stable public API.
Structs§
- Amount
- A Bitcoin amount, internally represented as a satoshi [
Decimal], which provides the following properties: - Basic
Payment V2 - A basic payment type which contains all of the user-facing payment details for any kind of payment. These details are exposed in the Lexe app.
- Client
Credentials - All secrets required for a non-RootSeed client to authenticate and communicate with a user’s node.
- LxInvoice
- Wraps [
lightning_invoice::Bolt11Invoice] to implserdeSerialize / Deserialize using the LDK’sFromStr/Displayimpls. - LxPayment
Hash - Newtype for [
PaymentHash] which implsSerialize/Deserialize. - LxPayment
Secret - Newtype for [
PaymentSecret] which implsSerialize/Deserialize. - LxTxid
- Almost exactly [
bitcoin::Txid], but fixes the inconsistency between the string-serialized and unserialized orderings caused by bitcoin sha256d hash types being displayed in reverse hex order (thanks Satoshi!). Also provides anArbitraryimpl. When neither of these are required, it is perfectly fine (and equivalent) to use [bitcoin::Txid] directly. - Measurement
- An enclave measurement.
- NodePk
- A simple wrapper around [
secp256k1::PublicKey] which allows forArbitraryand other custom impls. - Payment
Created Index - A payment identifier which:
- Payment
Updated Index - A payment identifier, conceptually a [
(TimestampMs, LxPaymentId)], which: - Root
Seed - The user’s root seed from which we derive all child secrets.
- SdkCreate
Invoice Request - A request to create a BOLT 11 invoice.
- SdkCreate
Invoice Response - The response to a BOLT 11 invoice request.
- SdkGet
Payment Request - A request to get information about a payment by its index.
- SdkGet
Payment Response - A response to a request to get information about a payment by its index.
- SdkNode
Info - Information about a Lexe node.
- SdkPay
Invoice Request - A request to pay a BOLT 11 invoice.
- SdkPay
Invoice Response - The response to a request to pay a BOLT 11 invoice.
- SdkPayment
- Information about a payment.
- SysRng
- A compatibility wrapper so we can use
ring’s PRG withrandtraits. - Timestamp
Ms - The number of milliseconds since the
UNIX_EPOCH. - Update
Payment Note - Update the note on a payment.
- UserPk
- A Lexe user’s primary identifier - their
ed25519::PublicKey.
Enums§
- Confirmation
Priority - The transaction confirmation priority levels used in Lexe APIs.
Basically a simplified version of LDK’s [
ConfirmationTarget] type. Lexe code should prefer to use this type when possible. - Credentials
- Credentials required to connect to a user node via mTLS.
- Credentials
Ref - Borrowed credentials required to connect to a user node via mTLS.
- LxPayment
Id - A globally-unique identifier for any type of payment, including both on-chain and Lightning payments.
- Payment
Direction - Specifies whether a payment is inbound or outbound.
- Payment
Kind - A granular application-level ‘type’ of a payment.
- Payment
Rail - The technical ‘rail’ used to fulfill a payment: onchain, invoice, offer, spontaneous, etc.
- Payment
Status - A general payment status that abstracts over all payment types.