class ECDSA::Signature

Public Instance Methods

==(other) click to toggle source
# 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() click to toggle source

convert signature to der string.

# File lib/bitcoin/ext/ecdsa.rb, line 3
def to_der
  ECDSA::Format::SignatureDerString.encode(self)
end