Author

Topic: Bitcore-node Insight setup for altcoin - xpubkey xprivkey networkMagic (Read 313 times)

jr. member
Activity: 66
Merit: 3
https://bitcoin.stackexchange.com/a/56639/61042 helped with xpubkey and xprivkey.

Now I just need help producing networkMagic. It's in the genesis block apparently but I have no idea how to read/decode it.

do you mean magic number ?

which is of 8 char long and starts at the blockfile ?
Found it using Hex editor of genesis block, thanks.



Whats this code I see
Code:
dnsSeeds: [
    'seed.bitcoin.sipa.be',
    'dnsseed.bluematt.me',
    'dnsseed.bitcoin.dashjr.org',
    'seed.bitcoinstats.com',
    'seed.bitnodes.io',
    'bitseed.xf2.org'

Part of node discover that uses DNS when A new full node is stated not that I see anything wrong with it but I
do when I keep hearing the religious type of debate here about decentralization

Bitcoin never was 100% fully decentralized and now the Lighting Network with it's hub banks have made it
fully centralized for anyone with just one channel open.


Go back to reading your dumb shit on /r/btc. These are the dnsseeds insight suggests I can use any. These are the ones Bitcoin Core project uses https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp - I can change them and compile with any I wish, or use another client.
sr. member
Activity: 434
Merit: 270
https://bitcoin.stackexchange.com/a/56639/61042 helped with xpubkey and xprivkey.

Now I just need help producing networkMagic. It's in the genesis block apparently but I have no idea how to read/decode it.

do you mean magic number ?

which is of 8 char long and starts at the blockfile ?
jr. member
Activity: 66
Merit: 3
https://bitcoin.stackexchange.com/a/56639/61042 helped with xpubkey and xprivkey.

Now I just need help producing networkMagic. It's in the genesis block apparently but I have no idea how to read/decode it.
jr. member
Activity: 66
Merit: 3
I am trying to set up https://github.com/bitpay/insight for a forked version of Bitcoin.

To do this I need to modify the following

addNetwork({
  name: 'livenet',
  alias: 'mainnet',
  pubkeyhash: 0x00,
  privatekey: 0x80,
  scripthash: 0x05,
  xpubkey: 0x0488b21e,
  xprivkey: 0x0488ade4,
  networkMagic: 0xf9beb4d9,
  port: 8333,
  dnsSeeds: [
    'seed.bitcoin.sipa.be',
    'dnsseed.bluematt.me',
    'dnsseed.bitcoin.dashjr.org',
    'seed.bitcoinstats.com',
    'seed.bitnodes.io',
    'bitseed.xf2.org'

Everything there is pretty simple except for pubkeyhash, privatekey, scripthash, xpubkey, xprivkey and networkMagic.

I've used https://en.bitcoin.it/wiki/List_of_address_prefixes and http://lenschulwitz.com/base58 to figure out how to reproduce pubkeyhash privatekey scripthash but I still don't know how to get the xpubkey, xprivkey and networkMagic values listed above. How can I reproduce those values listed above from my Bitcoin client?
Jump to: