Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MinerAddress ¶
type MinerAddress [20]byte
func MinerAddressFromString ¶
func MinerAddressFromString(address string) (*MinerAddress, error)
type Transaction ¶
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.
Click to show internal directories.
Click to hide internal directories.