lib/abucoins/abucoins.rb in abucoins-0.0.1 vs lib/abucoins/abucoins.rb in abucoins-0.1.0
- old
+ new
@@ -52,10 +52,9 @@
end
private
def signature(timestamp, verb, path, body)
- p "#{timestamp}#{verb}#{path}#{body}"
str = "#{timestamp}#{verb}#{path}#{body}"
secret = Base64.decode64(@secret)
hmac = OpenSSL::HMAC.digest('sha256', secret, str)
Base64.encode64(hmac)
end