Class: Laksa::Crypto::Signature
- Inherits:
-
Object
- Object
- Laksa::Crypto::Signature
- Defined in:
- lib/laksa/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.
136 137 138 139 |
# File 'lib/laksa/crypto/schnorr.rb', line 136 def initialize(r, s) @r = r @s = s end |
Instance Attribute Details
#r ⇒ Object (readonly)
Returns the value of attribute r.
135 136 137 |
# File 'lib/laksa/crypto/schnorr.rb', line 135 def r @r end |
#s ⇒ Object (readonly)
Returns the value of attribute s.
135 136 137 |
# File 'lib/laksa/crypto/schnorr.rb', line 135 def s @s end |
Instance Method Details
#to_s ⇒ Object
141 142 143 |
# File 'lib/laksa/crypto/schnorr.rb', line 141 def to_s "#{@r}#{@s}" end |