offchain

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTxs

func BuildTxs(
	vtxos []VtxoInput, outputs []*wire.TxOut, signerUnrollScript *script.CSVMultisigClosure,
) (*psbt.Packet, []*psbt.Packet, error)

BuildTxs builds the ark and checkpoint txs for the given inputs and outputs.

Types

type VtxoInput

type VtxoInput struct {
	Outpoint *wire.OutPoint
	Amount   int64
	// Tapscript is the path used to spend the vtxo
	Tapscript *waddrmgr.Tapscript
	// CheckpointTapscript is the path used to craft checkpoint output script
	// it is combined with the signer's unroll script to creaft a new "checkpoint" output script
	// it can be nil, defaulting to Tapscript if not set
	CheckpointTapscript *waddrmgr.Tapscript
	RevealedTapscripts  []string
}

Jump to

Keyboard shortcuts

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