Class: Laksa::Crypto::Signature

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rObject (readonly)

Returns the value of attribute r.



135
136
137
# File 'lib/laksa/crypto/schnorr.rb', line 135

def r
  @r
end

#sObject (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_sObject



141
142
143
# File 'lib/laksa/crypto/schnorr.rb', line 141

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