New answers tagged

2

The problem is that abi.encodePacked(key) interprets the key as a string value, not as a hexadecimal value. While there are ways to convert a hexadecimal string into bytes in Solidity, it's much easier to declare it as bytes in the first place: bytes memory publicKey = hex"...


2

I see this type of question popping up at a lot of different places and it is (unfortunately) often answered with "you don't need that" or "why would you want that". When strictly speaking Blockchain, this type of answer is right, assuming that all "communication" is done by sending a signed transaction to the blockchain. Here, ...


Top 50 recent answers are included