Bitcoin Forum
May 08, 2024, 03:31:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcore-node Insight setup for altcoin - xpubkey xprivkey networkMagic  (Read 287 times)
MasterQ (OP)
Jr. Member
*
Offline Offline

Activity: 66
Merit: 3


View Profile
January 29, 2018, 05:01:18 PM
 #1

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?
1715139079
Hero Member
*
Offline Offline

Posts: 1715139079

View Profile Personal Message (Offline)

Ignore
1715139079
Reply with quote  #2

1715139079
Report to moderator
1715139079
Hero Member
*
Offline Offline

Posts: 1715139079

View Profile Personal Message (Offline)

Ignore
1715139079
Reply with quote  #2

1715139079
Report to moderator
1715139079
Hero Member
*
Offline Offline

Posts: 1715139079

View Profile Personal Message (Offline)

Ignore
1715139079
Reply with quote  #2

1715139079
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715139079
Hero Member
*
Offline Offline

Posts: 1715139079

View Profile Personal Message (Offline)

Ignore
1715139079
Reply with quote  #2

1715139079
Report to moderator
MasterQ (OP)
Jr. Member
*
Offline Offline

Activity: 66
Merit: 3


View Profile
January 29, 2018, 07:34:47 PM
 #2

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.
btctousd81
Sr. Member
****
Offline Offline

Activity: 434
Merit: 270


View Profile WWW
January 30, 2018, 08:21:30 AM
 #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 ?

MasterQ (OP)
Jr. Member
*
Offline Offline

Activity: 66
Merit: 3


View Profile
January 30, 2018, 01:14:16 PM
Last edit: January 30, 2018, 11:13:19 PM by MasterQ
 #4

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!