Documentation
¶
Index ¶
- Constants
- 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
Constants ¶
View Source
const ( NUM_BLOCKS int64 = 110 BOLT11_METHOD = "bolt11" SAT_UNIT = "sat" )
Variables ¶
This section is empty.
Functions ¶
func ConstructProofs ¶
func ConstructProofs(blindedSignatures cashu.BlindedSignatures, secrets []string, rs []*secp256k1.PrivateKey, keyset *crypto.MintKeyset) (cashu.Proofs, error)
func CreateBlindedMessages ¶
func CreateBlindedMessages(amount uint64, keyset crypto.MintKeyset) (cashu.BlindedMessages, []string, []*secp256k1.PrivateKey, error)
func CreateTestMint ¶
func CreateTestMintServer ¶
func CreateTestWallet ¶
func FundCashuWallet ¶
func FundLndNode ¶
func GetValidProofsForAmount ¶
func OpenChannel ¶
Types ¶
type NutshellMintContainer ¶
type NutshellMintContainer struct { testcontainers.Container Host string }
func CreateNutshellMintContainer ¶
func CreateNutshellMintContainer(ctx context.Context) (*NutshellMintContainer, error)
Click to show internal directories.
Click to hide internal directories.