Skip to content

Significance of random byte at the end of encoded public key hash #2

@loon3

Description

@loon3

To create the 33 byte public key hash you mention that you split the encoded transaction data into 31 byte pieces then add 02 or 03 to the front and a random byte to the end that satisfies the checksum. In all the tests I've run, it seems the public key hash can be converted to a bitcoin address using the byte 00.

Do you know if there's a reason why this byte is chosen randomly? Is it to further obfuscate the XCP data or can I just use 00 if it can be converted to a valid bitcoin address?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions