Class: Zilliqa::Crypto::Signature
- Inherits:
-
Object
- Object
- Zilliqa::Crypto::Signature
- Defined in:
- lib/zilliqa/crypto/schnorr.rb
Instance Attribute Summary collapse
-
#r ⇒ Object
readonly
Returns the value of attribute r.
-
#s ⇒ Object
readonly
Returns the value of attribute s.
Instance Method Summary collapse
-
#initialize(r, s) ⇒ Signature
constructor
A new instance of Signature.
- #to_s ⇒ Object
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
#r ⇒ Object (readonly)
Returns the value of attribute r.
136 137 138 |
# File 'lib/zilliqa/crypto/schnorr.rb', line 136 def r @r end |
#s ⇒ Object (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_s ⇒ Object
142 143 144 |
# File 'lib/zilliqa/crypto/schnorr.rb', line 142 def to_s "#{@r}#{@s}" end |