Last active
March 4, 2025 13:18
-
-
Save svanas/5aa7e77699a4de1af610d6079af5b8a0 to your computer and use it in GitHub Desktop.
Generating an Ethereum-signed message signature in Delphi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uses | |
web3.eth.crypto, web3.eth.types; | |
procedure TForm1.Button1Click(Sender: TObject); | |
begin | |
ShowMessage( | |
web3.eth.crypto.sign( | |
TPrivateKey('b5b1870957d373ef0eeffecc6e4812c0fd08f554b37b233526acc331bf1544f7'), | |
'Hello, World!' | |
).ToHex | |
); | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment