redemption

package
v0.0.0-...-11b23e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CovenantRedeemBranch

type CovenantRedeemBranch struct {
	// contains filtered or unexported fields
}

func NewCovenantRedeemBranch

func NewCovenantRedeemBranch(
	explorer explorer.Explorer,
	congestionTree tree.CongestionTree, vtxo client.Vtxo,
) (*CovenantRedeemBranch, error)

func (*CovenantRedeemBranch) ExpiresAt

func (r *CovenantRedeemBranch) ExpiresAt() (*time.Time, error)

func (*CovenantRedeemBranch) RedeemPath

func (r *CovenantRedeemBranch) RedeemPath() ([]string, error)

RedeemPath returns the list of transactions to broadcast in order to access the vtxo output

type CovenantlessRedeemBranch

type CovenantlessRedeemBranch struct {
	// contains filtered or unexported fields
}

func NewCovenantlessRedeemBranch

func NewCovenantlessRedeemBranch(
	explorer explorer.Explorer,
	congestionTree tree.CongestionTree, vtxo client.Vtxo,
) (*CovenantlessRedeemBranch, error)

func (*CovenantlessRedeemBranch) ExpiresAt

func (r *CovenantlessRedeemBranch) ExpiresAt() (*time.Time, error)

func (*CovenantlessRedeemBranch) OffchainPath

func (r *CovenantlessRedeemBranch) OffchainPath() ([]*psbt.Packet, error)

offchainPath checks for transactions of the branch onchain and returns only the offchain part

func (*CovenantlessRedeemBranch) RedeemPath

func (r *CovenantlessRedeemBranch) RedeemPath() ([]string, error)

RedeemPath returns the list of transactions to broadcast in order to access the vtxo output

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL