Authentication
How to authenticate yourself with CKBull Signer API
const crypto = require('crypto');
const apiSecret = "your-api-secret";
const timestamp = Math.floor(Date.now() / 1000);
const hmac = crypto.createHmac('sha512', apiSecret);
hmac.update(timestamp.toString());
const timestampHeader = timestamp;
const signatureHeader = hmac.digest('base64');
const apiKeyHeader = "your-api-key";import hashlib
import os
import base64
import time
apiSecret = 'your-api-secret';
timestamp = str(int(time.time()))
hmac = hashlib.sha512(random_string.encode('utf-8'))
hmac.update(timestamp.encode('utf-8'))
hash = hmac.digest()
hash_b64 = base64.b64encode(hash).decode('utf-8')
timestamp_header = timestamp
signature_header = hash_b64
api_key_header = 'your-api-key';
Last updated