pop

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePublicKeyFromSignatureScript

func ParsePublicKeyFromSignatureScript(script []byte) ([]byte, error)

Types

type MinerAddress

type MinerAddress [20]byte

func MinerAddressFromString

func MinerAddressFromString(address string) (*MinerAddress, error)

type Transaction

type Transaction struct {
	Keystone *hemi.Header
}

XXX delete Transaction

func ParseTransactionFromOpReturn

func ParseTransactionFromOpReturn(script []byte) (*Transaction, error)

ParseTransactionFromOpReturn attempts to parse the given data as an OP_RETURN encoded PoP transaction.

func (*Transaction) EncodeToOpReturn

func (tx *Transaction) EncodeToOpReturn() ([]byte, error)

EncodeToOpReturn produces the pay to script necessary to publish this PoP transaction on Bitcoin using OP_RETURN.

func (*Transaction) Serialize

func (tx *Transaction) Serialize() []byte

Serialize serializes a PoP transaction to its byte representation.

type TransactionL2

type TransactionL2 struct {
	L2Keystone *hemi.L2KeystoneAbrev
}

TransactionL2 rename to Transaction and fixup this code

func ParseTransactionL2FromOpReturn

func ParseTransactionL2FromOpReturn(script []byte) (*TransactionL2, error)

ParseTransactionFromOpReturn attempts to parse the given data as an OP_RETURN encoded PoP transaction.

func (*TransactionL2) EncodeToOpReturn

func (tx *TransactionL2) EncodeToOpReturn() ([]byte, error)

EncodeToOpReturn produces the pay to script necessary to publish this PoP transaction on Bitcoin using OP_RETURN.

func (*TransactionL2) Serialize

func (tx *TransactionL2) Serialize() []byte

Serialize serializes a PoP transaction to its byte representation.

Jump to

Keyboard shortcuts

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