Documentation ¶
Index ¶
Constants ¶
View Source
const ( GrpcClient = "grpc" RestClient = "rest" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ASPClient ¶
type ASPClient interface { GetInfo(ctx context.Context) (*Info, error) ListVtxos(ctx context.Context, addr string) ([]Vtxo, []Vtxo, error) GetRound(ctx context.Context, txID string) (*Round, error) GetRoundByID(ctx context.Context, roundID string) (*Round, error) RegisterPayment( ctx context.Context, inputs []Input, ephemeralKey string, ) (string, error) ClaimPayment( ctx context.Context, paymentID string, outputs []Output, ) error GetEventStream( ctx context.Context, paymentID string, ) (<-chan RoundEventChannel, func(), error) Ping(ctx context.Context, paymentID string) (RoundEvent, error) FinalizePayment( ctx context.Context, signedForfeitTxs []string, signedRoundTx string, ) error CreatePayment( ctx context.Context, inputs []Input, outputs []Output, ) (string, []string, error) CompletePayment( ctx context.Context, signedRedeemTx string, signedUnconditionalForfeitTxs []string, ) error GetBoardingAddress(ctx context.Context, userPubkey string) (string, error) SendTreeNonces( ctx context.Context, roundID, cosignerPubkey string, nonces bitcointree.TreeNonces, ) error SendTreeSignatures( ctx context.Context, roundID, cosignerPubkey string, signatures bitcointree.TreePartialSigs, ) error Close() }
type RoundEvent ¶
type RoundEvent interface {
// contains filtered or unexported methods
}
type RoundEventChannel ¶
type RoundEventChannel struct { Event RoundEvent Err error }
type RoundFailedEvent ¶
type RoundFinalizationEvent ¶
type RoundFinalizationEvent struct { ID string Tx string Tree tree.CongestionTree Connectors []string MinRelayFeeRate chainfee.SatPerKVByte }
type RoundFinalizedEvent ¶
type RoundSigningNoncesGeneratedEvent ¶
type RoundSigningNoncesGeneratedEvent struct { ID string Nonces bitcointree.TreeNonces }
type RoundSigningStartedEvent ¶
type RoundSigningStartedEvent struct { ID string UnsignedTree tree.CongestionTree CosignersPublicKeys []*secp256k1.PublicKey UnsignedRoundTx string }
type RoundStage ¶
type RoundStage int
const ( RoundStageUndefined RoundStage = iota RoundStageRegistration RoundStageFinalization RoundStageFinalized RoundStageFailed )
func (RoundStage) String ¶
func (s RoundStage) String() string
Click to show internal directories.
Click to hide internal directories.