Module: Bitcoin
- Defined in:
- lib/hdkey.rb,
lib/hdkey/ext_key.rb
Defined Under Namespace
Constant Summary collapse
- CURVE_ORDER =
Integers modulo the order of the curve(secp256k1)
115792089237316195423570985008687907852837564279074904382605163141518161494337
Class Method Summary collapse
Class Method Details
.hmac_sha512(key, data) ⇒ Object
5 6 7 |
# File 'lib/hdkey/ext_key.rb', line 5 def self.hmac_sha512(key, data) OpenSSL::HMAC.digest(OpenSSL::Digest.new('SHA512'), key, data) end |