Versions in this module Expand all Collapse all v1 v1.1.3 Sep 20, 2021 v1.1.2 Sep 20, 2021 Changes in this version + var ZeroSignature = [64]byte + func CheckOfferParams(capacity, pushAmt, baseSupplyUnit btcutil.Amount) error + func CheckOfferParamsForOrder(offer Offer, bidAmt, bidMinUnitsMatch, baseSupplyUnit btcutil.Amount) error + func DBytes8(r io.Reader, val interface{}, _ *[8]byte, l uint64) error + func DSig(r io.Reader, val interface{}, buf *[8]byte, l uint64) error + func EBytes8(w io.Writer, val interface{}, _ *[8]byte) error + func ESig(w io.Writer, val interface{}, buf *[8]byte) error + func EncodeToString(t *Ticket) (string, error) + func SerializeTicket(w io.Writer, ticket *Ticket) error + func SignOffer(ctx context.Context, ticket *Ticket, signingKeyLoc keychain.KeyLocator, ...) error + func SignOrder(ctx context.Context, ticket *Ticket, bidNonce [32]byte, ...) error + func VerifyOffer(ctx context.Context, ticket *Ticket, signer lndclient.SignerClient) error + func VerifyOrder(ctx context.Context, ticket *Ticket, signer lndclient.SignerClient) error + type Execution struct + PendingChannelID [32]byte + type Offer struct + Auto bool + Capacity btcutil.Amount + LeaseDurationBlocks uint32 + PushAmt btcutil.Amount + SigOfferDigest *btcec.Signature + SignPubKey *btcec.PublicKey + type Order struct + BidNonce [32]byte + SigOrderDigest *btcec.Signature + type Recipient struct + MultiSigKeyIndex uint32 + MultiSigPubKey *btcec.PublicKey + NodePubKey *btcec.PublicKey + type State uint8 + const StateCanceled + const StateCompleted + const StateCreated + const StateExpectingChannel + const StateOffered + const StateOrdered + const StateRegistered + func (s State) IsTerminal() bool + func (s State) String() string + type Store interface + AddSidecar func(sidecar *Ticket) error + Sidecar func(id [8]byte, offerSignPubKey *btcec.PublicKey) (*Ticket, error) + Sidecars func() ([]*Ticket, error) + UpdateSidecar func(sidecar *Ticket) error + type Ticket struct + Execution *Execution + ID [8]byte + Offer Offer + Order *Order + Recipient *Recipient + State State + Version Version + func DecodeString(s string) (*Ticket, error) + func DeserializeTicket(r io.Reader) (*Ticket, error) + func NewTicket(version Version, capacity, pushAmt btcutil.Amount, duration uint32, ...) (*Ticket, error) + func (t *Ticket) OfferDigest() ([32]byte, error) + func (t *Ticket) OrderDigest() ([32]byte, error) + type Version uint8 + const VersionDefault