Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
I'm trying to derive address from pubkeyhash in GoLang. Current i'm getting invalid address Current i'm getting SegWit address but mine chain doesn't support Segwit.
addr, err := btcutil.NewAddressWitnessPubKeyHash( btcutil.Hash160(request.PublicKey.Bytes), s.config.Params, )
Params:
Name: "test", Net: 0xba657645, DefaultPort: "46464", GenesisBlock: &TestnetGenesisBlock, GenesisHash: &TestnetGenesisHash, PubKeyHashAddrID: 0x8B, ScriptHashAddrID: 0x13, PrivateKeyID: 0xEF, HDPrivateKeyID: [4]byte{0x3a, 0x80, 0x58, 0x37}, HDPublicKeyID: [4]byte{0x3a, 0x80, 0x61, 0xa0}, HDCoinType: 1,
Can someone help me with solving this. I'm trying to implement rosetta-api
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments