Documentation
¶
Index ¶
- Constants
- Variables
- type BoltDB
- func (db *BoltDB) AddPendingProofs(proofs cashu.Proofs) error
- func (db *BoltDB) AddPendingProofsByQuoteId(proofs cashu.Proofs, quoteId string) error
- func (db *BoltDB) Close() 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) GetMeltQuoteById(id string) *MeltQuote
- func (db *BoltDB) GetMeltQuotes() []MeltQuote
- func (db *BoltDB) GetMintQuoteById(id string) *MintQuote
- func (db *BoltDB) GetMintQuotes() []MintQuote
- 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) MigrateInvoicesToQuotes() error
- func (db *BoltDB) SaveInvoice(invoice Invoice) error
- func (db *BoltDB) SaveKeyset(keyset *crypto.WalletKeyset) error
- func (db *BoltDB) SaveMeltQuote(quote MeltQuote) error
- func (db *BoltDB) SaveMintQuote(quote MintQuote) error
- func (db *BoltDB) SaveMnemonicSeed(mnemonic string, seed []byte)
- func (db *BoltDB) SaveProofs(proofs cashu.Proofs) error
- type DBProof
- type Invoice
- type MeltQuote
- type MintQuote
- type QuoteType
- type WalletDB
Constants ¶
View Source
const ( KEYSETS_BUCKET = "keysets" PROOFS_BUCKET = "proofs" PENDING_PROOFS_BUCKET = "pending_proofs" MINT_QUOTES_BUCKET = "mint_quotes" MELT_QUOTES_BUCKET = "melt_quotes" INVOICES_BUCKET = "invoices" SEED_BUCKET = "seed" MNEMONIC_KEY = "mnemonic" )
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) AddPendingProofs ¶ added in v0.4.0
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) GetMeltQuoteById ¶ added in v0.4.0
func (*BoltDB) GetMeltQuotes ¶ added in v0.4.0
func (*BoltDB) GetMintQuoteById ¶ added in v0.4.0
func (*BoltDB) GetMintQuotes ¶ added in v0.4.0
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) MigrateInvoicesToQuotes ¶ added in v0.4.0
func (*BoltDB) SaveInvoice ¶
func (*BoltDB) SaveKeyset ¶
func (db *BoltDB) SaveKeyset(keyset *crypto.WalletKeyset) error
func (*BoltDB) SaveMeltQuote ¶ added in v0.4.0
func (*BoltDB) SaveMintQuote ¶ added in v0.4.0
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
AddPendingProofs(cashu.Proofs) error
AddPendingProofsByQuoteId(cashu.Proofs, string) error
GetPendingProofs() []DBProof
GetPendingProofsByQuoteId(string) []DBProof
DeletePendingProofs([]string) error
DeletePendingProofsByQuoteId(string) error
SaveKeyset(*crypto.WalletKeyset) error
GetKeysets() crypto.KeysetsMap
GetKeyset(string) *crypto.WalletKeyset
IncrementKeysetCounter(string, uint32) error
GetKeysetCounter(string) uint32
SaveMintQuote(MintQuote) error
GetMintQuotes() []MintQuote
GetMintQuoteById(string) *MintQuote
SaveMeltQuote(MeltQuote) error
GetMeltQuotes() []MeltQuote
GetMeltQuoteById(string) *MeltQuote
Close() error
}
Click to show internal directories.
Click to hide internal directories.