Versions in this module Expand all Collapse all v0 v0.11.1 Aug 25, 2026 v0.10.0 Jul 25, 2026 Changes in this version + const NUM_BLOCKS + func AddHTLCWitnessToInputs(inputs cashu.Proofs, preimage string, signingKey *btcec.PrivateKey) (cashu.Proofs, error) + func AddHTLCWitnessToOutputs(outputs cashu.BlindedMessages, preimage string, signingKey *btcec.PrivateKey) (cashu.BlindedMessages, error) + func AddP2PKWitnessToInputs(inputs cashu.Proofs, signingKeys []*btcec.PrivateKey) (cashu.Proofs, error) + func AddP2PKWitnessToOutputs(outputs cashu.BlindedMessages, signingKeys []*btcec.PrivateKey) (cashu.BlindedMessages, error) + func BlindedMessagesFromSpendingCondition(splitAmounts []uint64, keysetId string, ...) (cashu.BlindedMessages, []string, []*secp256k1.PrivateKey, error) + func CLNClient(clnNode *cln.CLN) (*lightning.CLNClient, error) + func ConstructProofs(blindedSignatures cashu.BlindedSignatures, secrets []string, ...) (cashu.Proofs, error) + func CreateBlindedMessages(amount uint64, keysetId string) (cashu.BlindedMessages, []string, []*secp256k1.PrivateKey, error) + func CreateTestMint(backend lightning.Client, dbpath string, inputFeePpk uint, ...) (*mint.Mint, error) + func CreateTestMintServer(backend lightning.Client, port int, rotateKeyset bool, dbpath string, ...) (*mint.MintServer, error) + func CreateTestWallet(walletpath, defaultMint string) (*wallet.Wallet, error) + func Fees(proofs cashu.Proofs, mint string) (uint, error) + func FundCashuWallet(ctx context.Context, wallet *wallet.Wallet, backend LightningBackend, ...) error + func FundNode(ctx context.Context, bitcoind *btcdocker.Bitcoind, ...) error + func GenerateRandomBytes() ([]byte, error) + func GetAvailablePort() (int, error) + func GetBlindedSignatures(amount uint64, mint *mint.Mint, payer LightningBackend) (cashu.BlindedMessages, []string, []*secp256k1.PrivateKey, ...) + func GetProofsWithSpendingCondition(amount uint64, spendingCondition nut10.SpendingCondition, mint *mint.Mint, ...) (cashu.Proofs, error) + func GetValidProofsForAmount(amount uint64, mint *mint.Mint, payer LightningBackend) (cashu.Proofs, error) + func LndClient(lnd *lnd.Lnd) (*lightning.LndClient, error) + func MineBlocks(bitcoind *btcdocker.Bitcoind, numBlocks int64) error + func MintConfig(backend lightning.Client, port int, rotateKeyset bool, dbpath string, ...) (*mint.Config, error) + func OpenChannel(ctx context.Context, bitcoind *btcdocker.Bitcoind, from LightningBackend, ...) error + func SyncNode(node LightningBackend) error + type CLNBackend struct + func NewCLNBackend(cln *cln.CLN) *CLNBackend + func (clnContainer *CLNBackend) ConnectToPeer(peer *Peer) error + func (clnContainer *CLNBackend) CreateHodlInvoice(amount uint64, hash string) (*Invoice, error) + func (clnContainer *CLNBackend) CreateInvoice(amount uint64) (*Invoice, error) + func (clnContainer *CLNBackend) Info() (*NodeInfo, error) + func (clnContainer *CLNBackend) LookupInvoice(hash string) (*Invoice, error) + func (clnContainer *CLNBackend) NewAddress() (btcutil.Address, error) + func (clnContainer *CLNBackend) OpenChannel(to *Peer, amount uint64) error + func (clnContainer *CLNBackend) PayInvoice(invoice string) error + func (clnContainer *CLNBackend) Post(url string, body interface{}) (*http.Response, error) + func (clnContainer *CLNBackend) SettleHodlInvoice(preimage string) error + func (clnContainer *CLNBackend) Synced() (bool, error) + type InfoResponse struct + BitcoindSyncWarn string + Id string + LightningdSyncWarn string + type Invoice struct + Hash string + PaymentRequest string + Preimage string + type LightningBackend interface + ConnectToPeer func(peer *Peer) error + CreateHodlInvoice func(amount uint64, hash string) (*Invoice, error) + CreateInvoice func(amount uint64) (*Invoice, error) + Info func() (*NodeInfo, error) + LookupInvoice func(hash string) (*Invoice, error) + NewAddress func() (btcutil.Address, error) + OpenChannel func(to *Peer, amount uint64) error + PayInvoice func(string) error + SettleHodlInvoice func(preimage string) error + Synced func() (bool, error) + type LndBackend struct + func (lndContainer *LndBackend) ConnectToPeer(peer *Peer) error + func (lndContainer *LndBackend) CreateHodlInvoice(amount uint64, hash string) (*Invoice, error) + func (lndContainer *LndBackend) CreateInvoice(amount uint64) (*Invoice, error) + func (lndContainer *LndBackend) Info() (*NodeInfo, error) + func (lndContainer *LndBackend) LookupInvoice(hash string) (*Invoice, error) + func (lndContainer *LndBackend) NewAddress() (btcutil.Address, error) + func (lndContainer *LndBackend) OpenChannel(to *Peer, amount uint64) error + func (lndContainer *LndBackend) PayInvoice(invoice string) error + func (lndContainer *LndBackend) SettleHodlInvoice(preimage string) error + func (lndContainer *LndBackend) Synced() (bool, error) + type NodeInfo struct + Addr string + Pubkey string + type NutshellMintContainer struct + Host string + func CreateNutshellMintContainer(ctx context.Context, inputFeePpk int, lnd *lnd.Lnd) (*NutshellMintContainer, error) + type Peer struct + Addr string + Pubkey string