Documentation ¶
Index ¶
- Variables
- type BoltDB
- func (db *BoltDB) AddPendingProofsByQuoteId(proofs cashu.Proofs, quoteId string) error
- func (db *BoltDB) DeletePendingProofs(Ys []string) error
- func (db *BoltDB) DeletePendingProofsByQuoteId(quoteId string) error
- func (db *BoltDB) DeleteProof(secret string) error
- func (db *BoltDB) GetInvoice(paymentHash string) *Invoice
- func (db *BoltDB) GetInvoiceByQuoteId(quoteId 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) GetPendingProofs() []DBProof
- func (db *BoltDB) GetPendingProofsByQuoteId(quoteId string) []DBProof
- 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) SaveProofs(proofs cashu.Proofs) error
- type DBProof
- type Invoice
- type QuoteType
- type WalletDB
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ProofNotFound = errors.New("proof not found")
)
Functions ¶
This section is empty.
Types ¶
type BoltDB ¶
type BoltDB struct {
// contains filtered or unexported fields
}
func (*BoltDB) AddPendingProofsByQuoteId ¶ added in v0.3.0
func (*BoltDB) DeletePendingProofs ¶ added in v0.3.0
func (*BoltDB) DeletePendingProofsByQuoteId ¶ added in v0.3.0
func (*BoltDB) DeleteProof ¶
func (*BoltDB) GetInvoice ¶
func (*BoltDB) GetInvoiceByQuoteId ¶ added in v0.3.0
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) GetPendingProofs ¶ added in v0.3.0
func (*BoltDB) GetPendingProofsByQuoteId ¶ added in v0.3.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 WalletDB ¶ added in v0.3.0
type WalletDB interface { SaveMnemonicSeed(string, []byte) GetSeed() []byte GetMnemonic() string SaveProofs(cashu.Proofs) error GetProofs() cashu.Proofs GetProofsByKeysetId(string) cashu.Proofs DeleteProof(string) error AddPendingProofsByQuoteId(cashu.Proofs, string) error GetPendingProofs() []DBProof GetPendingProofsByQuoteId(string) []DBProof DeletePendingProofsByQuoteId(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 GetInvoiceByQuoteId(string) *Invoice GetInvoices() []Invoice }
Click to show internal directories.
Click to hide internal directories.