Skip to content

Commit

Permalink
Update ecdsa_ext to 0.5.1 and remove ECDSA::Point#to_hex monkey patch
Browse files Browse the repository at this point in the history
  • Loading branch information
azuchi committed Feb 8, 2024
1 parent e5cb433 commit 3d0be7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion bitcoinrb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_runtime_dependency 'ecdsa_ext', '~> 0.5.0'
spec.add_runtime_dependency 'ecdsa_ext', '~> 0.5.1'
spec.add_runtime_dependency 'eventmachine'
spec.add_runtime_dependency 'murmurhash3', '~> 0.1.7'
spec.add_runtime_dependency 'bech32', '>= 1.3.0'
Expand Down
6 changes: 0 additions & 6 deletions lib/bitcoin/ext/ecdsa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ def ==(other)
end
end

class ::ECDSA::Point
def to_hex(compression = true)
ECDSA::Format::PointOctetString.encode(self, compression: compression).bth
end
end

module ::ECDSA::Format::PointOctetString

class << self
Expand Down

0 comments on commit 3d0be7e

Please sign in to comment.