Post
Topic
Board Development & Technical Discussion
Re: How the Bitcoin Private pubkey prefix is generated ?
by
akaltcoins
on 11/12/2020, 20:27:34 UTC
I'm pretty sure that the OP is talking about an Altcoin: Bitcoin Private (BTCP).
Its addresses starts with "b1" prefix.
Code:
        // guarantees the first 2 characters, when base58 encoded, are "b1"
        base58Prefixes[PUBKEY_ADDRESS]     = {0x13,0x25};

@streamplus
This forum is for Bitcoin development, you can move this to Altcoin Discussion to look for the accurate answers from BTCP users and developers.


I know that this post has been dormant for a long time but I keep seeing references to the Wiki List of Prefixes but I can't find anywhere that actually spells out why "b1" = {0x13,0x25}.  From the table on that page I can see that 'b' corresponds to a decimal value of 84 or 85 and '1' has a decimal value of 0.  How does that become {0x13,0x25}?

Crown, for example, start with CRW and uses (0x01)(0x75)(0x07) in their chainparams to describe this I just can't figure out why the following is true:

C = (0x01)
R = (0x75)
W = (0x07)