Пример #1
0
 def __init__(self, rand):
     self.cv = find_group_hash(b'TVRandPt', rand.b(32))
     self.cmu = Fq(leos2ip(rand.b(32)))
     self.ephemeralKey = find_group_hash(b'TVRandPt', rand.b(32))
     self.encCiphertext = rand.b(ZC_SAPLING_ENCCIPHERTEXT_SIZE)
     self.outCipherText = rand.b(ZC_SAPLING_OUTCIPHERTEXT_SIZE)
     self.proof = GrothProof(rand)
Пример #2
0
 def __init__(self, rand):
     self.cv = find_group_hash(b'TVRandPt', rand.b(32))
     self.anchor = Fq(leos2ip(rand.b(32)))
     self.nullifier = rand.b(32)
     self.rk = Point.rand(rand)
     self.proof = GrothProof(rand)
     self.spendAuthSig = rand.b(64)  # Invalid
def homomorphic_pedersen_commitment(rcv, D, v):
    return find_group_hash(D, b'v') * v + find_group_hash(D, b'r') * rcv
def I_D_i(D, i):
    return find_group_hash(D, i2leosp(32, i - 1))