Hi,
I would like to generate EC key pair (secp256k1) on HSM. And export public key to publish.
And then i will sign a payload digest (SHA256).
At client side i will verify signed payload.
Client side is an embedded device. I will use micro-ecc (https://github.com/kmackay/micro-ecc)
- How can I create EC key pair on HSM programmaticaly. I use JavaScript / NodeJS / Ubuntu or .Net Core / Ubuntu. Any sample code?
- Is it possible to export public key from HSM?
- In Micro-ECC project public key represented as only 64 bytes long byte array. It looks like has no any format. I saw public key represented in some formats. How can i translate a public key into 64 byte length byte array?
BR