pushtx

package
v0.0.0-...-e8e2ae4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOpPushTransactionOutput

func AddOpPushTransactionOutput(tx *bt.Tx, address string, satoshis uint64) (*bt.Tx, error)

func NewOpPushTransaction

func NewOpPushTransaction(input *bt.Input, txId, address, changeAddress string, privateKey *bec.PrivateKey, satoshis uint64) (string, error)

Types

type Getter

type Getter struct {
	PrivateKey *bec.PrivateKey
}

func (*Getter) Unlocker

func (g *Getter) Unlocker(ctx context.Context, lockingScript *bscript.Script) (bt.Unlocker, error)

type UnlockPushTx

type UnlockPushTx struct {
	PrivateKey *bec.PrivateKey
}

func (*UnlockPushTx) UnlockingScript

func (u *UnlockPushTx) UnlockingScript(ctx context.Context, tx *bt.Tx, params bt.UnlockerParams) (*bscript.Script, error)

TODO: Currently only supports input 0 Implements the bt.Unlocker interface

Jump to

Keyboard shortcuts

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