feat: updating coordinate examples on js and rust#41
feat: updating coordinate examples on js and rust#41sucildossj wants to merge 1 commit intocryptoquick:p2qrhfrom
Conversation
90b90a2 to
2a041bf
Compare
|
import sha256 from 'crypto-js/sha256'; const message, nonce, path, privateKey; // ... var AES = require("crypto-js/aes"); var CryptoJS = require("crypto-js"); // Encrypt // Decrypt console.log(originalText); // var CryptoJS = require("crypto-js"); var data = [{id: 1}, {id: 2}] // Encrypt // Decrypt console.log(decryptedData); // const signRequest = (request_body, api_key, secret) => { function isObject(obj) { return obj !== undefined && obj !== null && obj.constructor == Object; } const paramsString = objectToString(params); console.log(paramsString); const sigPayload = method + id + api_key + paramsString + nonce; const apiKey = "token"; /* User API Key / let request = { const requestBody = JSON.stringify(signRequest(request, apiKey, apiSecret))); |
-- js example package with test run
-- rust example package with test run