Documentation
¶
Index ¶
- type BoltDB
- func (db *BoltDB) DeleteProof(secret string) error
- func (db *BoltDB) GetInvoice(paymentHash string) *Invoice
- func (db *BoltDB) GetInvoices() []Invoice
- func (db *BoltDB) GetKeyset(keysetId string) *crypto.WalletKeyset
- func (db *BoltDB) GetKeysetCounter(keysetId string) uint32
- func (db *BoltDB) GetKeysets() crypto.KeysetsMap
- func (db *BoltDB) GetMnemonic() string
- func (db *BoltDB) GetProofs() cashu.Proofs
- func (db *BoltDB) GetProofsByKeysetId(id string) cashu.Proofs
- func (db *BoltDB) GetSeed() []byte
- func (db *BoltDB) IncrementKeysetCounter(keysetId string, num uint32) error
- func (db *BoltDB) SaveInvoice(invoice Invoice) error
- func (db *BoltDB) SaveKeyset(keyset *crypto.WalletKeyset) error
- func (db *BoltDB) SaveMnemonicSeed(mnemonic string, seed []byte)
- func (db *BoltDB) SaveProof(proof cashu.Proof) error
- type DB
- type Invoice
- type QuoteType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDB ¶
type BoltDB struct {
// contains filtered or unexported fields
}
func (*BoltDB) DeleteProof ¶
func (*BoltDB) GetInvoice ¶
func (*BoltDB) GetInvoices ¶
func (*BoltDB) GetKeyset ¶ added in v0.2.0
func (db *BoltDB) GetKeyset(keysetId string) *crypto.WalletKeyset
func (*BoltDB) GetKeysetCounter ¶ added in v0.2.0
func (*BoltDB) GetKeysets ¶
func (db *BoltDB) GetKeysets() crypto.KeysetsMap
func (*BoltDB) GetMnemonic ¶ added in v0.2.0
func (*BoltDB) IncrementKeysetCounter ¶ added in v0.2.0
func (*BoltDB) SaveInvoice ¶
func (*BoltDB) SaveKeyset ¶
func (db *BoltDB) SaveKeyset(keyset *crypto.WalletKeyset) error
func (*BoltDB) SaveMnemonicSeed ¶ added in v0.2.0
type DB ¶
type DB interface {
SaveMnemonicSeed(string, []byte)
GetSeed() []byte
GetMnemonic() string
SaveProof(cashu.Proof) error
GetProofsByKeysetId(string) cashu.Proofs
GetProofs() cashu.Proofs
DeleteProof(string) error
SaveKeyset(*crypto.WalletKeyset) error
GetKeysets() crypto.KeysetsMap
GetKeyset(string) *crypto.WalletKeyset
IncrementKeysetCounter(string, uint32) error
GetKeysetCounter(string) uint32
SaveInvoice(Invoice) error
GetInvoice(string) *Invoice
GetInvoices() []Invoice
}
Click to show internal directories.
Click to hide internal directories.