Generating an Ethereum-signed message signature in Delphi

  • Recover the address of the signer, and
  • Verify the integrity of the message, that it is the same message that was signed by the signer.

Generating the Signature

Clone Delphereum. Launch Delphi. Start a new project. Please make sure the dependencies are in your search path. Then copy and paste the following code:

public key:
0x12890d2cce102216644c59dae5baed380d84830c
private key:
b5b1870957d373ef0eeffecc6e4812c0fd08f554b37b233526acc331bf1544f7

Validating the Signature

Solidity provides a globally available function namedecrecover that returns an address given a signature. If the returned address is the same as the signer’s address, then the signature is valid.

https://etherscan.io/verifiedSignatures

--

--

Delphi/Rust/Go developer. Ethereum consultant. Embarcadero MVP. Ex-Adobe, Macromedia. Helped build 1Password.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Stefan

Stefan

258 Followers

Delphi/Rust/Go developer. Ethereum consultant. Embarcadero MVP. Ex-Adobe, Macromedia. Helped build 1Password.