Versions in this module Expand all Collapse all v0 v0.3.0 Oct 31, 2024 Changes in this version + 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 GenerateRandomBytes() ([]byte, error) + func GetBlindedSignatures(amount uint64, mint *mint.Mint, payer *btcdocker.Lnd) (cashu.BlindedMessages, []string, []*secp256k1.PrivateKey, ...) + func GetProofsWithSpendingCondition(amount uint64, spendingCondition nut10.SpendingCondition, mint *mint.Mint, ...) (cashu.Proofs, error) v0.2.0 Aug 6, 2024 Changes in this version + const BOLT11_METHOD + const NUM_BLOCKS + const SAT_UNIT + func ConstructProofs(blindedSignatures cashu.BlindedSignatures, secrets []string, ...) (cashu.Proofs, error) + func CreateBlindedMessages(amount uint64, keyset crypto.MintKeyset) (cashu.BlindedMessages, []string, []*secp256k1.PrivateKey, error) + func CreateTestMint(lnd *btcdocker.Lnd, dbpath string, dbMigrationPath string, inputFeePpk uint, ...) (*mint.Mint, error) + func CreateTestMintServer(lnd *btcdocker.Lnd, port string, dbpath string, dbMigrationPath 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, lnd *btcdocker.Lnd, amount uint64) error + func FundLndNode(ctx context.Context, bitcoind *btcdocker.Bitcoind, lnd *btcdocker.Lnd) error + func GetValidProofsForAmount(amount uint64, mint *mint.Mint, payer *btcdocker.Lnd) (cashu.Proofs, error) + func MineBlocks(bitcoind *btcdocker.Bitcoind, numBlocks int64) error + func OpenChannel(ctx context.Context, bitcoind *btcdocker.Bitcoind, from *btcdocker.Lnd, ...) error + func SyncLndNode(ctx context.Context, lnd *btcdocker.Lnd) error + type NutshellMintContainer struct + Host string + func CreateNutshellMintContainer(ctx context.Context) (*NutshellMintContainer, error)