curl --request GET \
--url https://api.algokyc.com/api/v1/issuer/pubkey \
--header 'Accept: application/json'
{
"pubkey_hex": "04c2b9a7f...",
"format": "secp256k1 uncompressed (04 || x || y)",
"bytes": 65
}
Widget Integration
Get Issuer Public Key
Fetches the issuer’s uncompressed secp256k1 public key.
GET
/
api
/
v1
/
issuer
/
pubkey
curl --request GET \
--url https://api.algokyc.com/api/v1/issuer/pubkey \
--header 'Accept: application/json'
{
"pubkey_hex": "04c2b9a7f...",
"format": "secp256k1 uncompressed (04 || x || y)",
"bytes": 65
}
The React widget calls this endpoint upon initialization to retrieve the cryptographic key used for ECIES encryption. It is critical that identity data is encrypted before it ever leaves the client’s browser.
This design guarantees that the raw Aadhaar XML or PII is never transmitted to the AlgoKYC backend.
curl --request GET \
--url https://api.algokyc.com/api/v1/issuer/pubkey \
--header 'Accept: application/json'
{
"pubkey_hex": "04c2b9a7f...",
"format": "secp256k1 uncompressed (04 || x || y)",
"bytes": 65
}