Class: RSA::ACC::PoKE2Proof
- Inherits:
-
Object
- Object
- RSA::ACC::PoKE2Proof
- Defined in:
- lib/rsa/acc/poke2.rb
Instance Attribute Summary collapse
-
#q ⇒ Object
readonly
Returns the value of attribute q.
-
#r ⇒ Object
readonly
Returns the value of attribute r.
-
#z ⇒ Object
readonly
Returns the value of attribute z.
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Check whether same proof.
-
#initialize(z, q, r) ⇒ PoKE2Proof
constructor
A new instance of PoKE2Proof.
Constructor Details
#initialize(z, q, r) ⇒ PoKE2Proof
Returns a new instance of PoKE2Proof.
12 13 14 15 16 |
# File 'lib/rsa/acc/poke2.rb', line 12 def initialize(z, q, r) @z = z @q = q @r = r end |
Instance Attribute Details
#q ⇒ Object (readonly)
Returns the value of attribute q.
9 10 11 |
# File 'lib/rsa/acc/poke2.rb', line 9 def q @q end |
#r ⇒ Object (readonly)
Returns the value of attribute r.
10 11 12 |
# File 'lib/rsa/acc/poke2.rb', line 10 def r @r end |
#z ⇒ Object (readonly)
Returns the value of attribute z.
8 9 10 |
# File 'lib/rsa/acc/poke2.rb', line 8 def z @z end |
Instance Method Details
#==(other) ⇒ Boolean
Check whether same proof.
21 22 23 24 |
# File 'lib/rsa/acc/poke2.rb', line 21 def ==(other) return false unless other.is_a?(RSA::ACC::PoKE2Proof) z == other.z && q == other.q && r == other.r end |