Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MintDB ¶
type MintDB interface {
GetBalance() (uint64, error)
SaveSeed([]byte) error
GetSeed() ([]byte, error)
SaveKeyset(DBKeyset) error
GetKeysets() ([]DBKeyset, error)
UpdateKeysetActive(keysetId string, active bool) error
SaveProofs(cashu.Proofs) error
GetProofsUsed(Ys []string) ([]DBProof, error)
AddPendingProofs(proofs cashu.Proofs, quoteId string) error
GetPendingProofs(Ys []string) ([]DBProof, error)
GetPendingProofsByQuote(quoteId string) ([]DBProof, error)
RemovePendingProofs(Ys []string) error
SaveMintQuote(MintQuote) error
GetMintQuote(string) (MintQuote, error)
GetMintQuoteByPaymentHash(string) (MintQuote, error)
UpdateMintQuoteState(quoteId string, state nut04.State) error
SaveMeltQuote(MeltQuote) error
GetMeltQuote(string) (MeltQuote, error)
// used to check if a melt quote already exists for the passed invoice
GetMeltQuoteByPaymentRequest(string) (*MeltQuote, error)
UpdateMeltQuote(quoteId string, preimage string, state nut05.State) error
SaveBlindSignature(B_ string, blindSignature cashu.BlindedSignature) error
GetBlindSignature(B_ string) (cashu.BlindedSignature, error)
GetBlindSignatures(B_s []string) (cashu.BlindedSignatures, error)
Close()
}
Click to show internal directories.
Click to hide internal directories.