Documentation ¶
Index ¶
- func CreateInvoice() lightning.Invoicer
- func IsPay2ScriptHash(s string) bool
- type BlindedMessage
- type BlindedMessages
- type BlindedSignature
- type CheckFeesRequest
- type CheckFeesResponse
- type CheckSpendableRequest
- type CheckSpendableResponse
- type ErrorOptions
- type ErrorResponse
- type GetKeySetsResponse
- type GetKeysResponse
- type GetMintResponse
- type MeltRequest
- type MeltResponse
- type Mint
- type MintRequest
- type MintResponse
- type P2SHScript
- type Promise
- type Proof
- type ProofStatus
- type Proofs
- type ProofsUsed
- type SplitRequest
- type SplitResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateInvoice ¶
CreateInvoice will generate a blank invoice
func IsPay2ScriptHash ¶
Types ¶
type BlindedMessage ¶
type BlindedMessages ¶
type BlindedMessages []BlindedMessage
type BlindedSignature ¶
type CheckFeesRequest ¶ added in v0.1.7
type CheckFeesRequest struct {
Pr string `json:"pr"`
}
type CheckFeesResponse ¶ added in v0.1.7
type CheckFeesResponse struct {
Fee uint64 `json:"fee"`
}
type CheckSpendableRequest ¶ added in v0.1.7
type CheckSpendableRequest struct {
Proofs Proofs `json:"proofs"`
}
type CheckSpendableResponse ¶ added in v0.1.7
type CheckSpendableResponse struct {
Spendable []bool `json:"spendable"`
}
type ErrorOptions ¶
type ErrorOptions func(err *ErrorResponse)
func WithCode ¶
func WithCode(code int) ErrorOptions
type ErrorResponse ¶
func NewErrorResponse ¶
func NewErrorResponse(err error, options ...ErrorOptions) ErrorResponse
func (ErrorResponse) Error ¶
func (e ErrorResponse) Error() string
func (ErrorResponse) String ¶
func (e ErrorResponse) String() string
type GetKeySetsResponse ¶ added in v0.1.7
type GetKeySetsResponse struct {
KeySets []string `json:"keysets"`
}
type GetKeysResponse ¶ added in v0.1.7
type GetMintResponse ¶ added in v0.1.7
type MeltRequest ¶ added in v0.1.7
type MeltRequest struct { Proofs Proofs `json:"proofs"` Pr string `json:"pr"` Outputs []BlindedMessage `json:"outputs,omitempty"` }
type MeltResponse ¶ added in v0.1.7
type MeltResponse struct { Paid bool `json:"paid"` Preimage string `json:"preimage"` Change []BlindedSignature `json:"change,omitempty"` }
type MintRequest ¶ added in v0.1.7
type MintRequest struct {
Outputs BlindedMessages `json:"outputs"`
}
type MintResponse ¶ added in v0.1.7
type MintResponse struct {
Promises []BlindedSignature `json:"promises"`
}
type P2SHScript ¶
type Promise ¶
type Proof ¶
type Proof struct { Id string `json:"id"` Amount uint64 `json:"amount"` Secret string `json:"secret" gorm:"primaryKey"` C string `json:"C"` Status ProofStatus `json:"-"` Reserved bool `json:"-,omitempty"` Script *P2SHScript `gorm:"-" json:"script,omitempty" structs:"Script,omitempty"` SendId uuid.UUID `json:"-,omitempty" structs:"SendId,omitempty"` TimeCreated time.Time `json:"-,omitempty" structs:"TimeCreated,omitempty"` TimeReserved time.Time `json:"-,omitempty" structs:"TimeReserved,omitempty"` }
type ProofStatus ¶ added in v0.1.7
type ProofStatus int
const ( ProofStatusSpent ProofStatus = iota ProofStatusPending ProofStatusReserved )
type ProofsUsed ¶
type SplitRequest ¶ added in v0.1.7
type SplitRequest struct { Proofs Proofs `json:"proofs"` Amount uint64 `json:"amount"` Outputs []BlindedMessage `json:"outputs"` }
type SplitResponse ¶ added in v0.1.7
type SplitResponse struct { Fst []BlindedSignature `json:"fst"` Snd []BlindedSignature `json:"snd"` }
Click to show internal directories.
Click to hide internal directories.