Ethereum Signing/Keccac 256/ECDSA support

Hi,

I am trying to implement something like this:

  1. The k6 load test script takes as input the following: Ethereum wallet details <key pair, wallet address>
  2. Signs a random message M with the private key, and sends out <M, signature, public key, wallet address> to another server

I looked at the various related possibilities:

But could not find anything that does quite what I need. The crypto APIs for example have HMAC based signing, but not ECDSA or Keccac256 based signing

Please let me know.
Thanks

Hi @rahulksnv,

But could not find anything that does quite what I need. The crypto APIs for example have HMAC based signing, but not ECDSA or Keccac256 based signing

ECDSA should be now supported, it has been introduced by k6 v0.51.0. Where did you get this information? So we can update the documentation.

Unfortunately, as far as Iā€™m aware, Keccak is not officially supported yet by JavaScript WebCrypto API which is the reference tracked by k6ā€™s module.

1 Like