Documentation ¶
Index ¶
- Constants
- type Info
- type Input
- type Outpoint
- type Output
- type OwnershipProof
- type RedeemTransaction
- type Round
- type RoundEvent
- type RoundEventChannel
- type RoundFailedEvent
- type RoundFinalizationEvent
- type RoundFinalizedEvent
- type RoundSigningNoncesGeneratedEvent
- type RoundSigningStartedEvent
- type RoundStage
- type RoundTransaction
- type SignedVtxoOutpoint
- type TapscriptsVtxo
- type TransactionEvent
- type TransportClient
- type Vtxo
Constants ¶
View Source
const ( GrpcClient = "grpc" RestClient = "rest" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OwnershipProof ¶
type RedeemTransaction ¶
type RoundEvent ¶
type RoundEvent interface {
// contains filtered or unexported methods
}
type RoundEventChannel ¶
type RoundEventChannel struct { Event RoundEvent Err error }
type RoundFailedEvent ¶
type RoundFinalizationEvent ¶
type RoundFinalizedEvent ¶
type RoundSigningNoncesGeneratedEvent ¶
type RoundSigningNoncesGeneratedEvent struct { ID string Nonces bitcointree.TreeNonces }
type RoundStage ¶
type RoundStage int
const ( RoundStageUndefined RoundStage = iota RoundStageRegistration RoundStageFinalization RoundStageFinalized RoundStageFailed )
func (RoundStage) String ¶
func (s RoundStage) String() string
type RoundTransaction ¶
type SignedVtxoOutpoint ¶
type SignedVtxoOutpoint struct { Outpoint Proof OwnershipProof }
type TapscriptsVtxo ¶
type TransactionEvent ¶
type TransactionEvent struct { Round *RoundTransaction Redeem *RedeemTransaction Err error }
type TransportClient ¶
type TransportClient interface { GetInfo(ctx context.Context) (*Info, error) RegisterInputsForNextRound( ctx context.Context, inputs []Input, ephemeralKey string, ) (string, error) RegisterNotesForNextRound( ctx context.Context, notes []string, ephemeralKey string, ) (string, error) RegisterOutputsForNextRound( ctx context.Context, requestID string, outputs []Output, ) error SubmitTreeNonces( ctx context.Context, roundID, cosignerPubkey string, nonces bitcointree.TreeNonces, ) error SubmitTreeSignatures( ctx context.Context, roundID, cosignerPubkey string, signatures bitcointree.TreePartialSigs, ) error SubmitSignedForfeitTxs( ctx context.Context, signedForfeitTxs []string, signedRoundTx string, ) error GetEventStream( ctx context.Context, requestID string, ) (<-chan RoundEventChannel, func(), error) Ping(ctx context.Context, requestID string) error SubmitRedeemTx( ctx context.Context, signedRedeemTx string, ) (string, 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) Close() GetTransactionsStream(ctx context.Context) (<-chan TransactionEvent, func(), error) SetNostrRecipient(ctx context.Context, nostrRecipient string, vtxos []SignedVtxoOutpoint) error DeleteNostrRecipient(ctx context.Context, vtxos []SignedVtxoOutpoint) error }
Click to show internal directories.
Click to hide internal directories.