dcrd/dcrec/edwards/testdata/addpoints.py
John C. Vernaleo 5076a00512 Initial Decred Commit.
Includes work by cjepson, ay-p, jolan, and jcv.

Initial conceptual framework by tacotime.
2016-02-07 14:00:12 -05:00

12 lines
178 B
Python

import sys
from ed25519 import *
s1 = sys.argv[1].decode("hex")
P1 = decodepoint(s1)
s2 = sys.argv[2].decode("hex")
P2 = decodepoint(s2)
P = edwards(P1, P2)
encodepointhex(P)