Requests
Key generation parameters
A typical key generation request made on the Quantum Origin platform will appear in the following format. Headers have been omitted for brevity purposes.
curl -X POST --data-raw "{\"key_type\":\"BIKE\", \"key_parameters\": { \"variant\":\"BIKE-L3\" }, \"nonce\":\"abcdabcd\" }"
Each key type has a different set of key_parameters
, however key_type
and nonce
fields are common to all.
Entropy generation
The typical appearance of a randomness request made on the Quantum Origin platform is shown below.
curl -X POST --data-raw "{ \"size\":256 , \"nonce\":\"abcdabcd\" }"
Users should note that the response will be encrypted and a user-specific shared_secret
is required to perform decryption operations. It is possible to request batches of randomness through a single request.
curl -X POST --data-raw "{\"size\": 256, \"nonces\": [\"J4Z85dcmUw==\", \"N3a70zobQ==\"]}"
Each randomness request is encrypted with the given nonce and shared_secret
. A sample response is exhibited below for convenience purposes only.
{
"batches": [
{
"counter": 0 ,
"encrypted_data": "7LbkHaJziDusYuLDiSi4duxevTYqfC5ox11dH56rriw+6NliGIbXWf2pzVygjz+drRu1xam4NwKYU5cl8oVXdOfRyqdajBuotjH2x1DtJxVyqSz4GksHDaO6Hduu/DkTf9vAuWAh4ZNxUrPncwq9NO15JmIbdUOi+t40HQZpSICEl6CbzsAGALvZ7V5n0VPDie8iRdtNZoxn+Pz/7WERzf9YZDdSlxnn/klkHDDfOBXcfviJpKbxPpaEERvGcWTTx5pZ6OS1Li3nI940pbBNGbjGrVu+dSzLqbu/W36FAYCJ+3jP/J/Y4+dpah96hqwjHRh2ywuTHNv5R8G8JFHJ9pylU1fhVYblPVOwZyjLRLg=" ,
"seed": "zEtBY5vVdNmbeZBcfv+Tbwbk9+Um/hdRF8SJh0L4EJlx/ezL"
} ,
{
"counter": 0 ,
"encrypted_data": "1kQmMvWsGzbnQptsHyp2y2e22uwuDPioMSMXkX67L+rHGOB0nksg2btwJl44c4XRMeirhw5GKGNQWMV2bLSaTKTH7IEHFLMvmZJBT25w5sT3YbxII6hVYvzVb6Pxu+SDZkrRHWySlnSTNtV+XVqLV1uzpZJ8LZRyYnLl26Vomm55VjLAt0Y6vA6Ld8iCnFVpEgvtm1+zZBMgBpXiZuMoerMACTeWaMTBPpIk1vnPxFbms3xo9pOyJe4DKw5APkYYr482br+ZcWcdz2RCub2pmpEPJDGCbvhSDpkQGuemCloHtpTupQcmGTsxdD7FrN+3p8igZDZ6uoqOB0G5nBmGJCjTXkSpICDoO8sdWwHkHqY=" ,
"seed": "6/Idnz9xMSkjehIK90j1WTukf/w2Ex8e051I36+VdlyrCuf8"
}
] ,
"content_type": "RAND"
}