eXperiencePoints / XPCoin

eXperiencePoints XPCoin
MIT License
67 stars 45 forks source link

How to create BitWasp network for XP #29

Open Olsm opened 6 years ago

Olsm commented 6 years ago

I am creating XP integration for the new xpmarket website.

I need to know the details for BitWasp.

https://github.com/Bit-Wasp/bitcoin-php/blob/master/src/Network/NetworkFactory.php

For example for Litecoin this would be:

BitWasp\Bitcoin\Network\NetworkFactory::create('30', '05', 'b0') ->setHDPubByte('019da462') ->setHDPrivByte('019d9cfe') ->setNetMagicBytes('dbb6c0fb');

What would this be for XP?

I think I found the first 3 settings, but what will the rest be? BitWasp\Bitcoin\Network\NetworkFactory::create( '4b', '14', 'cb' )->setHDPubByte('')->setHDPrivByte('')->setNetMagicBytes('');

address = 4b p2sh = 14 privateKey = cb HDPubByte = ? HDPrivByte = ? NetMagicBytes = ?

chipstar commented 6 years ago

@Olsm Maybe... HDPubByte = n/a (0488b21e) HDPrivByte = n/a (0488ade4) NetMagicBytes = e5e2f8b4

https://github.com/eXperiencePoints/XPCoin/blob/e0ddc9ebe886567bf91e98b275e1a71326f2fe83/src/main.cpp#L3074

Olsm commented 6 years ago

Thanks. However now i have an issue how to use this, as I need xpub keys (HD Wallet support). So I also cannot test if the details you gave me are correct so if this issue is solved or not is unknown. See issue: https://github.com/eXperiencePoints/XPCoin/issues/30