Skip to content

Instantly share code, notes, and snippets.

@svanas
Last active May 31, 2023 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svanas/5aa7e77699a4de1af610d6079af5b8a0 to your computer and use it in GitHub Desktop.
Save svanas/5aa7e77699a4de1af610d6079af5b8a0 to your computer and use it in GitHub Desktop.
Generating an Ethereum-signed message signature in Delphi
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