Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting openssl 3.0 #318

Open
bdescamps opened this issue Oct 11, 2022 · 1 comment
Open

Supporting openssl 3.0 #318

bdescamps opened this issue Oct 11, 2022 · 1 comment

Comments

@bdescamps
Copy link

Currently bitcoin-ruby is not compatible with openssl 3.0

@phlegx
Copy link

phlegx commented Sep 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants