Documentation
¶
Index ¶
- Variables
- type ActiveMeltQuote
- type ActiveProofs
- type ActiveQuote
- type AddToDBFunc
- type KeysetMap
- type Mint
- func (a *Mint) AddActiveMintQuote(quote string) error
- func (a *Mint) AddProofs(proofs []cashu.Proof) error
- func (m *Mint) AddQuotesAndProofs(quote string, proofs []cashu.Proof) error
- func (m *Mint) CheckProofsAreSameUnit(proofs []cashu.Proof) (cashu.Unit, error)
- func (m *Mint) GetAllKeysets() []cashu.Keyset
- func (m *Mint) GetKeysetById(id string) ([]cashu.Keyset, error)
- func (m *Mint) OrderActiveKeysByUnit() cashu.KeysResponse
- func (a *Mint) RemoveActiveMintQuote(quote string) error
- func (a *Mint) RemoveProofs(proofs []cashu.Proof)
- func (m *Mint) RemoveQuotesAndProofs(quote string, proofs []cashu.Proof)
- func (m *Mint) SignBlindedMessages(outputs []cashu.BlindedMessage, unit string) ([]cashu.BlindSignature, []cashu.RecoverSigDB, error)
- func (m *Mint) ValidateProof(proof cashu.Proof, unit cashu.Unit, checkOutputs *bool, ...) error
- func (m *Mint) VerifyLightingPaymentHappened(ctx context.Context, pool *pgxpool.Pool, paid bool, quote string, ...) (cashu.ACTION_STATE, string, error)
- func (m *Mint) VerifyListOfProofs(proofs []cashu.Proof, blindMessages []cashu.BlindedMessage, unit cashu.Unit) error
- type SeedType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AlreadyActiveProof = errors.New("Proof already being spent") AlreadyActiveQuote = errors.New("Quote already being spent") )
View Source
var ( ErrInvalidProof = errors.New("Invalid proof") ErrQuoteNotPaid = errors.New("Quote not paid") ErrMessageAmountToBig = errors.New("Message amount is to big") ErrInvalidBlindMessage = errors.New("Invalid blind message") )
View Source
var ( NETWORK_ENV = "NETWORK" MINT_LIGHTNING_BACKEND_ENV = "MINT_LIGHTNING_BACKEND" )
Functions ¶
This section is empty.
Types ¶
type ActiveMeltQuote ¶
type ActiveQuote ¶
type AddToDBFunc ¶
type Mint ¶
type Mint struct { ActiveKeysets map[string]KeysetMap Keysets map[string][]cashu.Keyset LightningComs comms.LightingComms Network chaincfg.Params PendingProofs []cashu.Proof ActiveProofs ActiveProofs ActiveQuotes ActiveQuote MintPubkey string }
func (*Mint) AddActiveMintQuote ¶
func (*Mint) AddQuotesAndProofs ¶
func (*Mint) CheckProofsAreSameUnit ¶
func (*Mint) GetAllKeysets ¶
func (*Mint) OrderActiveKeysByUnit ¶
func (m *Mint) OrderActiveKeysByUnit() cashu.KeysResponse
func (*Mint) RemoveActiveMintQuote ¶
func (*Mint) RemoveProofs ¶
func (*Mint) RemoveQuotesAndProofs ¶
func (*Mint) SignBlindedMessages ¶
func (m *Mint) SignBlindedMessages(outputs []cashu.BlindedMessage, unit string) ([]cashu.BlindSignature, []cashu.RecoverSigDB, error)
func (*Mint) ValidateProof ¶
func (*Mint) VerifyLightingPaymentHappened ¶
func (*Mint) VerifyListOfProofs ¶
Click to show internal directories.
Click to hide internal directories.