Class: ECDSA::Signature
- Inherits:
-
Object
- Object
- ECDSA::Signature
- Defined in:
- lib/bitcoin/ext/ecdsa.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#to_der ⇒ Object
convert signature to der string.
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_der ⇒ Object
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 |