Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2023 v0.1.9 May 10, 2023 v0.1.8 May 1, 2023 Changes in this version type MeltRequest + Outputs []BlindedMessage type MeltResponse + Change []BlindedSignature v0.1.7 Mar 4, 2023 Changes in this version + type CheckFeesRequest struct + Pr string + type CheckFeesResponse struct + Fee uint64 + type CheckSpendableRequest struct + Proofs Proofs + type CheckSpendableResponse struct + Spendable []bool + type GetKeySetsResponse struct + KeySets []string + type GetKeysResponse map[int]string + type GetMintResponse struct + Hash string + Pr string + type MeltRequest struct + Pr string + Proofs Proofs + type MeltResponse struct + Paid bool + Preimage string + type Mint struct + KeySets []string + Url string + type MintRequest struct + Outputs BlindedMessages + type MintResponse struct + Promises []BlindedSignature type Proof + Status ProofStatus + type ProofStatus int + const ProofStatusPending + const ProofStatusReserved + const ProofStatusSpent + type SplitRequest struct + Amount uint64 + Outputs []BlindedMessage + Proofs Proofs + type SplitResponse struct + Fst []BlindedSignature + Snd []BlindedSignature v0.1.6 Dec 2, 2022 Changes in this version + func CreateInvoice() lightning.Invoice + func IsPay2ScriptHash(s string) bool + type BlindedMessage struct + Amount uint64 + B_ string + type BlindedMessages []BlindedMessage + type BlindedSignature struct + Amount uint64 + C_ string + Id string + type ErrorOptions func(err *ErrorResponse) + func WithCode(code int) ErrorOptions + type ErrorResponse struct + Code int + Err string + func NewErrorResponse(err error, options ...ErrorOptions) ErrorResponse + func (e ErrorResponse) Error() string + func (e ErrorResponse) String() string + type P2SHScript struct + Address string + Script string + Signature string + type Promise struct + Amount uint64 + B_b string + C_c string + func (p Promise) Log() map[string]interface{} + type Proof struct + Amount uint64 + C string + Id string + Reserved bool + Script *P2SHScript + Secret string + SendId uuid.UUID + TimeCreated time.Time + TimeReserved time.Time + func (p Proof) Decode() ([]byte, error) + func (p Proof) Log() map[string]interface{} + type Proofs []Proof + type ProofsUsed struct + Amount uint64 + C string + Secret string + TimeUsed time.Time