Class: RSA::ACC::PoKE2Proof

Inherits:
Object
  • Object
show all
Defined in:
lib/rsa/acc/poke2.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#qObject (readonly)

Returns the value of attribute q.



9
10
11
# File 'lib/rsa/acc/poke2.rb', line 9

def q
  @q
end

#rObject (readonly)

Returns the value of attribute r.



10
11
12
# File 'lib/rsa/acc/poke2.rb', line 10

def r
  @r
end

#zObject (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.

Parameters:

Returns:

  • (Boolean)

    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