Class: ECDSA::Signature

Inherits:
Object
  • Object
show all
Defined in:
lib/bitcoin/ext/ecdsa.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



7
8
9
10
# File 'lib/bitcoin/ext/ecdsa.rb', line 7

def ==(other)
  return false unless other.is_a?(ECDSA::Signature)
  r == other.r && s == other.s
end

#to_derObject

convert signature to der string.



3
4
5
# File 'lib/bitcoin/ext/ecdsa.rb', line 3

def to_der
  ECDSA::Format::SignatureDerString.encode(self)
end