enter code himport time
import sys from sage.all import * p=(2^113);p
F1.<x,y>=GF(2)[]
E = EllipticCurve(F, (1,A,0,0,B));E G=E.random_point() n=E.order() K=randint(1,n-1); R=K*G
1 | initial version |
enter code himport time
import sys from sage.all import * p=(2^113);p
F1.<x,y>=GF(2)[]
E = EllipticCurve(F, (1,A,0,0,B));E G=E.random_point() n=E.order() K=randint(1,n-1); R=K*G
I want to perform scalar multiplication but when i will take some random point and order of that point as scalar it gives me error.
enter code himport import time
import sys
from sage.all import *
p=(2^113);p
F1.<x,y>=GF(2)[]
I want to perform scalar multiplication but when i will take some random point and order of that point as scalar it gives me error.
import time
import sys
from sage.all import *
p = (2^113); p
F1.<x, y> = GF(2)[]
F.<a> = GF(2^113, 'a', modulus=x^113+x^9+1); F.modulus(); F
A = F.fetch_int(0x003088250CA6E7C7FE649CE85820F7); A
B = F.fetch_int(0x00E8BEE4D3E2260744188BE0E9C723); B
E = EllipticCurve(F, (1, A, 0, 0, B)); E
G = E.random_point()
n = E.order()
K = randint(1, n - 1)
R = K*G