Elliptic Curve Cryptography
Example of point addition
$ go run ecc.go
P=115792089237316195423570985008687907853269984665640564039457584007908834671663
N=115792089237316195423570985008687907852837564279074904382605163141518161494337
Gx=55066263022277343669578718895168534326250603453777594175500187360389116729240
Gy=32670510020758816978083085130507043184471273380659243275938904335757337482424
Private key
n=55093896560407267519309124479023989568145936840415323425085939905551219734962
Public key point
Px=919316748602502725537807319221933888851622811816096709293435223336467598820
Py=21018165033436324665061453994954884404620163690157256159670127689864438294270
Is on curve: true
New point
Px=96193335160793782679395425096923466102364679098890876019017217797809731236082
Py=1922019522198099362289793190964531445492761969962795566170253706924230552596
Is on curve: true
Result of adding p1 and p2
Px=71805523881671815233936027849995377039866796361826645140160848252467758597258
Py=3879142994227567753065739762354257061259907470310442625707929424893715071623
Is on curve: true