vechain / thor-client-sdk4j

A SDK toolkit for client to call VeChain Thor Restful API.
Other
26 stars 29 forks source link

RLP encoder issue with byteValue length == 55 #28

Closed APshenkin closed 4 years ago

APshenkin commented 4 years ago

https://github.com/vechain/thor-client-sdk4j/blob/master/src/main/java/com/vechain/thorclient/utils/rlp/RlpEncoder.java#L32

When byteValue.length == 55 we should just add offset, check web3j reference implementation

https://github.com/web3j/web3j/blob/master/rlp/src/main/java/org/web3j/rlp/RlpEncoder.java#L43