Kind: global class
this: {PAIR256}
Creates an instance of PAIR256
Line function
Kind: static method of PAIR256
this: {PAIR256}
prepare for multi-pairing
Kind: static method of PAIR256
this: {PAIR256}
basic Miller loop
Kind: static method of PAIR256
this: {PAIR256}
Param | Description |
---|---|
r | FP48 precomputed array of accumulated line functions |
res | FP48 result |
Precompute line functions for n-pairing
Kind: static method of PAIR256
this: {PAIR256}
Param | Description |
---|---|
r | array of precomputed FP48 products of line functions |
P1 | An element of G2 |
Q1 | An element of G1 |
Calculate Miller loop for Optimal ATE pairing e(P,Q)
Kind: static method of PAIR256
this: {PAIR256}
Result: r An element of GT i.e. result of the pairing calculation e(P,Q)
Param | Description |
---|---|
P1 | An element of G2 |
Q1 | An element of G1 |
Calculate Miller loop for Optimal ATE double-pairing e(P,Q).e(R,S)
Kind: static method of PAIR256
this: {PAIR256}
Result: r An element of GT i.e. result of the double pairing calculation e(P,Q).e(R,S)
Param | Description |
---|---|
P1 | An element of G2 |
Q1 | An element of G1 |
R1 | An element of G2 |
S1 | An element of G1 |
Final exponentiation of pairing, converts output of Miller loop to element in GT
Kind: static method of PAIR256
this: {PAIR256}
Result: r m^((p^12-1)/r) where p is modulus and r is the group order
Param | Description |
---|---|
m | FP48 value |
prepare ate parameter, n=6u+2 (BN) or n=u (BLS), n3=3*n
Kind: static method of PAIR256
this: {PAIR256}
GLV method
Kind: static method of PAIR256
this: {PAIR256}
Galbraith & Scott Method
Kind: static method of PAIR256
this: {PAIR256}
Fast point multiplication of a member of the group G1 by a BIG number
Kind: static method of PAIR256
Returns: R Member of G1 R=e.P
this: {PAIR256}
Param | Description |
---|---|
P | Member of G1 |
e | BIG multiplier |
Multiply P by e in group G2
Kind: static method of PAIR256
Returns: R Member of G2 R=e.P
this: {PAIR256}
Param | Description |
---|---|
P | Member of G2 |
e | BIG multiplier |
Fast raising of a member of GT to a BIG power
Kind: static method of PAIR256
Returns: r d^e
this: {PAIR256}
Param | Description |
---|---|
d | Member of GT |
e | BIG exponent |