Generate an ECDH key pair with nonce for encryption/decryption operations.
This API generates a new ECDH key pair on Curve25519 (Weierstrass form) along with a random 32-byte nonce. The key pair and nonce are used for encrypting and decrypting health data exchanged via ABDM.
Algorithm details:
Store the private key securely on your side. The public key and nonce are shared with the counterparty (HIP/HIU) during data exchange.
For more details, refer to the ABDM Encryption and Decryption Guide.