Class: Zilliqa::Crypto::Signature

Inherits:
Object
  • Object
show all
Defined in:
lib/zilliqa/crypto/schnorr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(r, s) ⇒ Signature

Returns a new instance of Signature.



137
138
139
140
# File 'lib/zilliqa/crypto/schnorr.rb', line 137

def initialize(r, s)
  @r = r
  @s = s
end

Instance Attribute Details

#rObject (readonly)

Returns the value of attribute r.



136
137
138
# File 'lib/zilliqa/crypto/schnorr.rb', line 136

def r
  @r
end

#sObject (readonly)

Returns the value of attribute s.



136
137
138
# File 'lib/zilliqa/crypto/schnorr.rb', line 136

def s
  @s
end

Instance Method Details

#to_sObject



142
143
144
# File 'lib/zilliqa/crypto/schnorr.rb', line 142

def to_s
  "#{@r}#{@s}"
end