Exemplo n.º 1
0
Arquivo: pbc.py Projeto: ace0/pyrelic
def orderGt():
    """
    Retrieves the order (size) of group Gt as a BigInt.
    """
    return _getCachedValue(orderGt, librelic.gt_get_ord_abi, BigInt)
Exemplo n.º 2
0
Arquivo: pbc.py Projeto: ace0/pyrelic
def generatorG2():
    """
    Retrieves the generator <P> = G2
    """
    return _getCachedValue(generatorG2, librelic.g2_get_gen_abi, G2Element)
Exemplo n.º 3
0
Arquivo: pbc.py Projeto: ace0/pyrelic
def generatorGt():
    """
    Retrieves the generator <g> = Gt
    """
    return _getCachedValue(generatorGt, librelic.gt_get_gen, GtElement)
Exemplo n.º 4
0
Arquivo: pbc.py Projeto: ace0/pyrelic
def generatorG1():
    """
    Retrieves the generator <P> = G1
    """
    return _getCachedValue(generatorG1, librelic.g1_get_gen_abi, G1Element)