mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-23 05:55:06 +01:00
6 lines
130 B
Ruby
6 lines
130 B
Ruby
require 'openssl'
|
|
|
|
def hash_hmac(digest, key, data)
|
|
d = OpenSSL::Digest.new(digest)
|
|
OpenSSL::HMAC.hexdigest(d, key, data)
|
|
end
|