Tag: 哈希比特币

Bitstamp – C#中的新身份validation – 签名

bitstamp的新身份validation说明如下: Signature是HMAC-SHA256编码的消息,包含:nonce,客户端ID和API密钥。 必须使用通过API密钥生成的密钥生成HMAC-SHA256代码。 此代码必须转换为hex表示forms(64个大写字符)。示例(Python):message = nonce + client_id + api_key signature = hmac.new(API_SECRET,msg = message,digestmod = hashlib.sha256).hexdigest()。上() 来源: 链接 我有以下代码来添加新签名(和其他参数): public void AddApiAuthentication(RestRequest restRequest) { var nonce = DateTime.Now.Ticks; var signature = GetSignature(nonce, apiKey, apiSecret, clientId); restRequest.AddParameter(“key”, apiKey); restRequest.AddParameter(“signature”, signature); restRequest.AddParameter(“nonce”, nonce); } private string GetSignature(long nonce, string key, string secret, string clientId) { string […]