Method: Bitcoin.secp_impl

Defined in:
lib/bitcoin.rb

.secp_implObject

get secp implementation module

[View source]

103
104
105
106
# File 'lib/bitcoin.rb', line 103

def self.secp_impl
  path = ENV['SECP256K1_LIB_PATH']
  (path && File.exist?(path)) ? Bitcoin::Secp256k1::Native : Bitcoin::Secp256k1::Ruby
end