<filename>src/ecsnipet/oto.py
import hashlib
from ecpy.curves     import Curve,Point
from ecpy.keys       import ECPublicKey, ECPrivateKey
from ecpy.ecdsa  import ECDSA


### ECS
cv     = Curve.get_curve('secp256k1')

pu1_key = ECPublicKey(Point(<KEY>, 
	                        <KEY>,
                            cv))

d = 0x89be3842bf556d2dd47fd16dd3569e4661b33fd58f3d91eab653a7261d442d84

print("%s"%(d*pu1_key.W))
print("%s"%(d*cv.generator))