PKGenerator_Checker icon indicating copy to clipboard operation
PKGenerator_Checker copied to clipboard

Correct Public key

Open allsbit opened this issue 1 year ago • 0 comments

For correct address change code from PkMaker.py 87 line:

	publicKey = "\04" + str(vk.to_string())
	ripemd160 = hashlib.new('ripemd160')
	ripemd160.update(hashlib.sha256(codecs.encode(publicKey)).digest())

to:

    publicKey = "04" + vk.to_string().hex()
    ripemd160 = hashlib.new('ripemd160')
    ripemd160.update(hashlib.sha256(bytes.fromhex(publicKey)).digest())

allsbit avatar Mar 07 '23 03:03 allsbit