Skip to main content
1 of 2
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

maroodb
  • 1.1k
  • 1
  • 10
  • 34