go-ethereum/XDCx/tradingstate/encoding.go
2025-09-24 07:58:40 +08:00

13 lines
261 B
Go

package tradingstate
import (
"github.com/XinFinOrg/XDPoSChain/rlp"
)
func EncodeBytesItem(val interface{}) ([]byte, error) {
return rlp.EncodeToBytes(val)
}
func DecodeBytesItem(bytes []byte, val interface{}) error {
return rlp.DecodeBytes(bytes, val)
}