Skip to main content
edited tags
Link
eth
  • 86.5k
  • 53
  • 287
  • 411
Source Link
maroodb
  • 1.1k
  • 1
  • 10
  • 34

How to sign a transaction using nodejs crypto?

I have a js client, web API

Js client send some data in JSON format, API prepare a transaction to be send to a smart contract, than it returns transaction raw to client to be signed locally,

and finally the client sign the transaction (using crypto) and post it again to API which send it to blockchain.

So how to sign transaction with standart crypto library (client will not use web3) ?
Sequence diagram