sqlite

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteDB

type SQLiteDB struct {
	// contains filtered or unexported fields
}

func InitSQLite

func InitSQLite(path string) (*SQLiteDB, error)

func (*SQLiteDB) AddPendingProofs

func (sqlite *SQLiteDB) AddPendingProofs(proofs cashu.Proofs, quoteId string) error

func (*SQLiteDB) Close

func (sqlite *SQLiteDB) Close() error

func (*SQLiteDB) GetBlindSignature

func (sqlite *SQLiteDB) GetBlindSignature(B_ string) (cashu.BlindedSignature, error)

func (*SQLiteDB) GetBlindSignatures

func (sqlite *SQLiteDB) GetBlindSignatures(B_s []string) (cashu.BlindedSignatures, error)

func (*SQLiteDB) GetIssuedEcash

func (sqlite *SQLiteDB) GetIssuedEcash() (map[string]uint64, error)

func (*SQLiteDB) GetKeysets

func (sqlite *SQLiteDB) GetKeysets() ([]storage.DBKeyset, error)

func (*SQLiteDB) GetMeltQuote

func (sqlite *SQLiteDB) GetMeltQuote(quoteId string) (storage.MeltQuote, error)

func (*SQLiteDB) GetMeltQuoteByPaymentRequest

func (sqlite *SQLiteDB) GetMeltQuoteByPaymentRequest(invoice string) (*storage.MeltQuote, error)

func (*SQLiteDB) GetMintQuote

func (sqlite *SQLiteDB) GetMintQuote(quoteId string) (storage.MintQuote, error)

func (*SQLiteDB) GetMintQuoteByPaymentHash

func (sqlite *SQLiteDB) GetMintQuoteByPaymentHash(paymentHash string) (storage.MintQuote, error)

func (*SQLiteDB) GetPendingProofs

func (sqlite *SQLiteDB) GetPendingProofs(Ys []string) ([]storage.DBProof, error)

func (*SQLiteDB) GetPendingProofsByQuote

func (sqlite *SQLiteDB) GetPendingProofsByQuote(quoteId string) ([]storage.DBProof, error)

func (*SQLiteDB) GetProofsUsed

func (sqlite *SQLiteDB) GetProofsUsed(Ys []string) ([]storage.DBProof, error)

func (*SQLiteDB) GetRedeemedEcash

func (sqlite *SQLiteDB) GetRedeemedEcash() (map[string]uint64, error)

func (*SQLiteDB) GetSeed

func (sqlite *SQLiteDB) GetSeed() ([]byte, error)

func (*SQLiteDB) RemovePendingProofs

func (sqlite *SQLiteDB) RemovePendingProofs(Ys []string) error

func (*SQLiteDB) SaveBlindSignatures

func (sqlite *SQLiteDB) SaveBlindSignatures(B_s []string, blindSignatures cashu.BlindedSignatures) error

func (*SQLiteDB) SaveKeyset

func (sqlite *SQLiteDB) SaveKeyset(keyset storage.DBKeyset) error

func (*SQLiteDB) SaveMeltQuote

func (sqlite *SQLiteDB) SaveMeltQuote(meltQuote storage.MeltQuote) error

func (*SQLiteDB) SaveMintQuote

func (sqlite *SQLiteDB) SaveMintQuote(mintQuote storage.MintQuote) error

func (*SQLiteDB) SaveProofs

func (sqlite *SQLiteDB) SaveProofs(proofs cashu.Proofs) error

func (*SQLiteDB) SaveSeed

func (sqlite *SQLiteDB) SaveSeed(seed []byte) error

func (*SQLiteDB) UpdateKeysetActive

func (sqlite *SQLiteDB) UpdateKeysetActive(id string, active bool) error

func (*SQLiteDB) UpdateMeltQuote

func (sqlite *SQLiteDB) UpdateMeltQuote(quoteId, preimage string, state nut05.State) error

func (*SQLiteDB) UpdateMintQuoteState

func (sqlite *SQLiteDB) UpdateMintQuoteState(quoteId string, state nut04.State) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL