litecore-archive / litecore-lib

A pure and powerful JavaScript Litecoin library
https://litecore.io/
Other
72 stars 85 forks source link

What is network value of REGTEST? #25

Open rlaace423 opened 3 years ago

rlaace423 commented 3 years ago

Hello, I have a question about network parameters.

I have used below values for litecoin testnet

{
  messagePrefix: '\x19Litecoin Signed Message:\n',
  bech32: 'tltc',
  bip32: {
    public: 0x0436f6e1,
    private: 0x0436ef7d,
  },
  pubKeyHash: 0x6f,
  scriptHash: 0x3a,
  wif: 0xef,
}

And I'm trying to find REGTEST values, but in https://github.com/litecoin-project/litecore-lib/blob/segwit/lib/networks.js, It uses almost same values with TESTNET.

What is correct value of REGTEST?

losh11 commented 3 years ago

Hi, you can find regtest params here: https://github.com/litecoin-project/litecoin/blob/master/src/chainparams.cpp#L273

On Wed, 6 Jan 2021 at 09:47, Sam (Sangho Kim) notifications@github.com wrote:

Hello, I have a question about network parameters.

I have used below values for litecoin testnet

{ messagePrefix: '\x19Litecoin Signed Message:\n', bech32: 'tltc', bip32: { public: 0x0436f6e1, private: 0x0436ef7d, }, pubKeyHash: 0x6f, scriptHash: 0x3a, wif: 0xef, }

And I'm trying to find REGTEST values, but in https://github.com/litecoin-project/litecore-lib/blob/segwit/lib/networks.js , It uses almost same values with TESTNET.

What is correct value of REGTEST?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/litecoin-project/litecore-lib/issues/25, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAT43OWQTPR7EOBGTNUGSJ3SYQWUZANCNFSM4VXIZ2WA .

rlaace423 commented 3 years ago

Hi, you can find regtest params here: https://github.com/litecoin-project/litecoin/blob/master/src/chainparams.cpp#L273 On Wed, 6 Jan 2021 at 09:47, Sam (Sangho Kim) @.***> wrote: Hello, I have a question about network parameters. I have used below values for litecoin testnet { messagePrefix: '\x19Litecoin Signed Message:\n', bech32: 'tltc', bip32: { public: 0x0436f6e1, private: 0x0436ef7d, }, pubKeyHash: 0x6f, scriptHash: 0x3a, wif: 0xef, } And I'm trying to find REGTEST values, but in https://github.com/litecoin-project/litecore-lib/blob/segwit/lib/networks.js , It uses almost same values with TESTNET. What is correct value of REGTEST? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#25>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAT43OWQTPR7EOBGTNUGSJ3SYQWUZANCNFSM4VXIZ2WA .

Thank you for your reply, link you provided helps me a lot!

And I have another question.

Which file contains Ltpv (0x019D9CFE), Ltub (0x019DA462) values? chainparams.cpp only has values for xpub, xpriv.