lian / bitcoin-ruby

bitcoin utils and protocol in ruby.
Other
922 stars 322 forks source link

Supporting openssl 3.0 #318

Open bdescamps opened 1 year ago

bdescamps commented 1 year ago

Currently bitcoin-ruby is not compatible with openssl 3.0

phlegx commented 11 months ago

Following a working hook:

# bitcoin.rb
module Bitcoin
  module Util
    def bitcoin_elliptic_curve
      ::OpenSSL::PKey::EC.generate('secp256k1')
    end

    def generate_key
      key = bitcoin_elliptic_curve
      inspect_key( key )
    end
  end

  class Key
    def generate
      @key
    end
  end
end