Documentation ¶
Index ¶
- func AddressToEncodedPath(address common.Address) []byte
- func AddressToLeafKey(address common.Address) []byte
- func CompactToHex(compact []byte) []byte
- func GetTxType(node ipld.Node) (uint8, error)
- func HexToCompact(hex []byte) []byte
- func Keccak256ToCid(codec uint64, h []byte) cid.Cid
- func RandomAddr() common.Address
- func RandomBytes(len int) []byte
- func RandomHash() common.Hash
- func RawToCid(codec uint64, rawdata []byte) (cid.Cid, error)
- func TestAccessListReceiptNodeContents(t *testing.T, rctNode ipld.Node, rct *types.Receipt)
- func TestAccessListTransactionNodeContent(t *testing.T, txNode ipld.Node, tx *types.Transaction)
- func TestDynamicFeeReceiptNodeContents(t *testing.T, rctNode ipld.Node, rct *types.Receipt)
- func TestDynamicFeeTransactionNodeContent(t *testing.T, txNode ipld.Node, tx *types.Transaction)
- func TestLegacyReceiptNodeContents(t *testing.T, rctNode ipld.Node, rct *types.Receipt)
- func TestLegacyTransactionNodeContent(t *testing.T, txNode ipld.Node, tx *types.Transaction)
- type WriteableByteSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressToEncodedPath ¶
AddressToEncodedPath hashes an address and appends the even-number leaf flag to it
func AddressToLeafKey ¶
AddressToLeafKey hashes an returns an address
func CompactToHex ¶
CompactToHex converts a compact encoded path to hex format
func HexToCompact ¶
HexToCompact converts a hex path to the compact encoded format
func Keccak256ToCid ¶
Keccak256ToCid takes a keccak256 hash and returns its cid based on the codec given.
func RandomBytes ¶
RandomBytes returns a random byte slice of the provided length
func RawToCid ¶
RawToCid takes the desired codec and a slice of bytes and returns the proper cid of the object.
func TestAccessListReceiptNodeContents ¶
TestAccessListReceiptNodeContents checks the contents of a access list rct IPLD node agaisnt a provided receipt
func TestAccessListTransactionNodeContent ¶
func TestAccessListTransactionNodeContent(t *testing.T, txNode ipld.Node, tx *types.Transaction)
TestAccessListTransactionNodeContent checks the content of a access list tx IPLD node against a provided tx
func TestDynamicFeeReceiptNodeContents ¶
TestDynamicFeeReceiptNodeContents checks the contents of a dynamic fee rct IPLD node against a provided receipt
func TestDynamicFeeTransactionNodeContent ¶
func TestDynamicFeeTransactionNodeContent(t *testing.T, txNode ipld.Node, tx *types.Transaction)
TestDynamicFeeTransactionNodeContent checks the contents a dynamic fee tx IPLD node against a provided tx
func TestLegacyReceiptNodeContents ¶
TestLegacyReceiptNodeContents checks the contents of a legacy rct IPLD node against a provided receipt
func TestLegacyTransactionNodeContent ¶
func TestLegacyTransactionNodeContent(t *testing.T, txNode ipld.Node, tx *types.Transaction)
TestLegacyTransactionNodeContent checks the contents of a legacy tx IPLD node against a provided tx
Types ¶
type WriteableByteSlice ¶
type WriteableByteSlice struct {
// contains filtered or unexported fields
}
func NewWriteableByteSlice ¶
func NewWriteableByteSlice(enc *[]byte) WriteableByteSlice