Creating Horizen address and private keys


#1

Hi Everyone!

I am building Pandora’s Wallet that supports many currencies including Horizen I just need a bit of help to add the support.
Most bitcoin like coins have the following…

Code:
// guarantees the first 2 characters, when base58 encoded, are “zt”
// guarantees the first 2 characters, when base58 encoded, are “tm”
base58Prefixes[PUBKEY_ADDRESS] = {0x20,0x98};
base58Prefixes[PUBKEY_ADDRESS_OLD] = {0x1D,0x25};
// guarantees the first 2 characters, when base58 encoded, are “zr”
// guarantees the first 2 characters, when base58 encoded, are “t2”
base58Prefixes[SCRIPT_ADDRESS] = {0x20,0x92};
base58Prefixes[SCRIPT_ADDRESS_OLD] = {0x1C,0xBA};
// the first character, when base58 encoded, is “9” or “c” (as in Bitcoin)
base58Prefixes[SECRET_KEY] = {0xEF};
// do not rely on these BIP32 prefixes; they are not specified and may change
base58Prefixes[EXT_PUBLIC_KEY] = {0x04,0x35,0x87,0xCF};
base58Prefixes[EXT_SECRET_KEY] = {0x04,0x35,0x83,0x94};
// guarantees the first 2 characters, when base58 encoded, are “zt”
base58Prefixes[ZCPAYMENT_ADDRRESS] = {0x16,0xB6};
// guarantees the first 4 characters, when base58 encoded, are “ZiVt”
base58Prefixes[ZCVIEWING_KEY] = {0xA8,0xAC,0x0C};
// guarantees the first 2 characters, when base58 encoded, are “ST”
base58Prefixes[ZCSPENDING_KEY] = {0xAC,0x08};

I have searched the code to find the above values with no luck. I need them to generate private keys and addresses for Pandora’s Wallet users.
If anyone can help show me where I can get this info I would be very grateful

Cheers

Miguel


#2

Please join discord channel #general-development


@maan221292