I’m trying to generate a without .Main net address is working fine. Here is my code. The generated testnet address from this code is :CNFNz61dzQ2NQ9RCnjJFrm2de7nLbbT9xSv which is in format.

import os
import ecdsa
import hashlib
import base58

#private_key = os.urandom(2).encode("hex")
private_key = 
"7c7cd1c5f24b25ae11459dccdba8df3ff2e76ca092d02f81be2711c64e32"

print "this is my private key: " + private_key

sk = ecdsa.SigningKey.from_string(private_key.decode("hex"), curve = 
ecdsa.SECP256k1)

vk = sk.verifying_key

public_key = ('

LEAVE A REPLY

Please enter your comment!
Please enter your name here