bitcoin-ruby icon indicating copy to clipboard operation
bitcoin-ruby copied to clipboard

Supporting openssl 3.0

Open bdescamps opened this issue 2 years ago • 1 comments

Currently bitcoin-ruby is not compatible with openssl 3.0

bdescamps avatar Oct 11 '22 15:10 bdescamps

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

phlegx avatar Sep 15 '23 12:09 phlegx