inkfish/proof_of_time.py
def create_proof_of_time_pietrzak(discriminant, x, iterations, int_size_bits):
    """
    Returns a serialized proof blob.
    """
    delta = 8

    powers_to_calculate = proof_pietrzak.cache_indeces_for_count(iterations)
    powers = iterate_squarings(x, powers_to_calculate)
    y = powers[iterations]
    proof = proof_pietrzak.generate_proof(x, iterations, delta, y, powers,
                                          x.identity(), generate_r_value, int_size_bits)

    return y.serialize(), serialize_proof(proof)

    Returns a serialized proof blob.
    
Returns a serialized proof blob.
Returns a serialized proof blob .
def create_proof_of_time_pietrzak(discriminant, x, iterations, int_size_bits):
    delta = 8
    powers_to_calculate = proof_pietrzak.cache_indeces_for_count(iterations)
    powers = iterate_squarings(x, powers_to_calculate)
    y = powers[iterations]
    proof = proof_pietrzak.generate_proof(x, iterations, delta, y, powers,
                                          x.identity(), generate_r_value, int_size_bits)
    return y.serialize(), serialize_proof(proof)
def create_proof_of_time_pietrzak ( discriminant , x , iterations , int_size_bits ) : delta = 8 powers_to_calculate = proof_pietrzak . cache_indeces_for_count ( iterations ) powers = iterate_squarings ( x , powers_to_calculate ) y = powers [ iterations ] proof = proof_pietrzak . generate_proof ( x , iterations , delta , y , powers , x . identity ( ) , generate_r_value , int_size_bits ) return y . serialize ( ) , serialize_proof ( proof )
Returns a serialized proof blob.
Returns a serialized proof blob .
"""
    Returns a serialized proof blob.
    """
discriminant
x
iterations
int_size_bits