komputing / KEthereum

Kotlin library for Ethereum
MIT License
344 stars 72 forks source link

Question: Best way to encode a String to be 32 byte String? #121

Closed amilcar-andrade closed 2 years ago

amilcar-andrade commented 2 years ago

Hi, I am wondering what would be the best way or API to encode a String to be encoded to use a 32-byte String? Similar to web3js.sha3. I was looking at HexString but does not seem to do the encoding. Thanks!