Skip to content

Correct Public key #24

Description

@allsbit

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())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions