http://www1.axfc.net/uploader/File/so/78916.zip

↑の解凍後に出てくるecc directory以下に、
以下の構成となるように各fileを配置してください。
ecc/math_154.py
ecc/ecc/__init__.py

で、__init__.py の202行目からの行をcomment outし、
以下のように実行すると、
python3 math_154.py

以下の出力が出ますので、計算方法が分かるかと思います。
double_y1_inv(=119) = (2*218, 307)
lmd(=106) = (3 * (7 ** 2) + 19) * 119
x3(=170) = lmd(=106) ** 2 - x1(=7) - x2(=7)
y3(=3) = lmd(=106) * (x1(=7) - x3(=170)) - y1(=218)
x3(=170), y3(=3)
P8 = (0x7, 0xda)
P = (0xaa, 0x3)