coinbasepayload

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIncorrectScriptPubKeyLen = errors.New("incorrect script pub key length")

ErrIncorrectScriptPubKeyLen indicates that the script pub key length is not as expected.

Functions

func DeserializeCoinbasePayload

func DeserializeCoinbasePayload(tx *domainmessage.MsgTx) (blueScore uint64, scriptPubKey []byte, extraData []byte, err error)

DeserializeCoinbasePayload deserializes the coinbase payload to its component (scriptPubKey and extra data).

func SerializeCoinbasePayload

func SerializeCoinbasePayload(blueScore uint64, scriptPubKey []byte, extraData []byte) ([]byte, error)

SerializeCoinbasePayload builds the coinbase payload based on the provided scriptPubKey and extra data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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