Class LightningSwapMetadata
- Namespace
- NArk.ArkadeIntents.Models
- Assembly
- NArk.ArkadeIntents.dll
What a Lightning swap keeps beyond the fields every corridor has.
public sealed record LightningSwapMetadata : IEquatable<LightningSwapMetadata>
- Inheritance
-
LightningSwapMetadata
- Implements
- Inherited Members
Constructors
LightningSwapMetadata(string?, string?)
What a Lightning swap keeps beyond the fields every corridor has.
public LightningSwapMetadata(string? Invoice, string? Preimage)
Parameters
InvoicestringThe BOLT11. Kept because it is unrecoverable from anything else: the covenant commits to
ripemd160(sha256(P)), which is one-way and is not even the invoice's own payment hash.PreimagestringThe secret a receive swap settles on, hex —
nullon a send, where the solver holds it. A cache rather than the source of truth: we derive it from the wallet's own seed, so a lost row is recoverable (seePreimageProvisioning).
Properties
Invoice
The BOLT11. Kept because it is unrecoverable from anything else: the covenant commits to
ripemd160(sha256(P)), which is one-way and is not even the invoice's own payment hash.
public string? Invoice { get; init; }
Property Value
Preimage
The secret a receive swap settles on, hex — null on a send, where the solver holds it.
A cache rather than the source of truth: we derive it from the wallet's own seed, so a lost row
is recoverable (see PreimageProvisioning).
public string? Preimage { get; init; }