API Authentication
Futuric-WaaS uses API keys combined with the concept of signing to authorize API callers.
The following example demonstrates how to sign a payload to obtain a signature and access the "Create User" API. In this API, you must pass the values of "ApiKey", "Signature", and "SubGuid" in the Header, as well as the "subUserId" value in the original Body.
POST: Create Sub User
http://demo-waas-gateway.futuricblock.com/api/v2/wallet/user/create?api-version=2.0
subUserId
string
No
"SUID-32a0fb0e-bdad-4d68-9734-756bdeb24ca9"
Query Parameters
api-version
2.0
Body (JSON)
Example Request
To use RSA digital signatures, you need to convert the entire original body payload string into a Base64 encoded string, as shown below:
Original
Base64 Encoded
Then, you will use the RSA private key to sign the Base64 data to obtain the signature string.
You should use the SHA-512 with RSA hashing algorithm, with a signature size of 2048 bits integer, corresponding to the size of the RSA keys
You can also generate and verify signatures on the following website:
https://www.base64encode.org/zh/ https://8gwifi.org/RSAFunctionality?rsasignverifyfunctions=rsasignverifyfunctions&keysize=2048
Last updated