Documentation ¶
Index ¶
- func Decode(record avro.AvroRecord, buffer []byte) error
- func Encode(record avro.AvroRecord) ([]byte, error)
- func EncodePubKey(pubKeyConverter core.PubkeyConverter, pubKey []byte) []byte
- func GetBytes(val *big.Int) []byte
- func HexSliceToByteSlice(in []string) ([][]byte, error)
- func MetaChainShardAddress() []byte
- func UIntSliceToIntSlice(in []uint64) []int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode tries to decode a data buffer, read it and store it on the input record. If successfully, the record is filled with data from the buffer, otherwise an error might be returned
func EncodePubKey ¶
func EncodePubKey(pubKeyConverter core.PubkeyConverter, pubKey []byte) []byte
EncodePubKey returns a byte slice of the encoded pubKey input, using a pub key converter
func GetBytes ¶
GetBytes returns the bytes representation of a big int input if not nil, otherwise returns []byte{}
func HexSliceToByteSlice ¶
HexSliceToByteSlice outputs a decoded byte slice representation of a hex string encoded slice input
func MetaChainShardAddress ¶
func MetaChainShardAddress() []byte
MetaChainShardAddress returns core.MetachainShardId as a 62 byte array address(by padding with zeros). This is needed, since all addresses from avro schema are required to be 62 fixed byte array
func UIntSliceToIntSlice ¶
UIntSliceToIntSlice outputs the int64 slice representation of a uint64 slice input
Types ¶
This section is empty.