Signatory requires Node.js. Install it first.
npm install -g @etclabscore/signatory
signatory
info: Signatory Service port starting on 1999 {"service":"Signatory","context":"startSignatory","path":"/"} info: Signatory started on 1999 {"service":"Signatory","context":"startSignatory","path":"/"}
you can do this by creating a JSON-RPC request to the createAccount
method
First use eserialize
to convert a string to hex:
for example hello world
produces 0x68656c6c6f20776f726c64
.
Then make a JSON-RPC request to the sign
method to sign the message with the account you created:
Make sure you replace the example address with the one you created in the previous steps
and you should see a signed message as the result:
{ "jsonrpc": "2.0", "result": "0x5377edbade526fa10b8f62a53a1c39e817de42a0b11ae585789a2e74b12fbca63bb319b6a8579246cb62dcea0af7047d836ec48a133f3487055fd33822192bdd9e", "id": 0 }