sylow 0.1.1

Implementation of the BLS signature scheme using the alt-bn128 curve.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from sagelib.facts import *
from sagelib.svdw import *
def random_g1(n):
    return [E1.random_point() for _ in range(n)]

def generate_g1_data(n=1000):
    S = random_g1(n)
    T = random_g1(n)
    R = [Fp.random_element() for _ in range(n)]
    Addition = [s + t for s,t in zip(S, T)]
    Doubling = [2*s for s in S]
    Multiplication = [r*s for r, s in zip(R,S)]
    return S, T, R, Addition, Doubling, Multiplication