class RSA::ACC::MembershipProof
Proof of membership of the element's inclusion in the accumulator.
Attributes
acc_value[R]
element[R]
witness^H(element) == acc
proof[R]
witness[R]
Public Class Methods
new(element, witness, acc_value, proof)
click to toggle source
# File lib/rsa/acc/proof.rb, line 15 def initialize(element, witness, acc_value, proof) @element = element @witness = witness @acc_value = acc_value @proof = proof end
Public Instance Methods
element_prime()
click to toggle source
Convert element to prime number. @return [Integer] prime number of element.
# File lib/rsa/acc/proof.rb, line 24 def element_prime return nil if element.nil? element.is_a?(Array) ? elements_to_prime(element) : hash_to_prime(element) end