HomeBitcoinpublic key - WitnessPubKeyHash to deal with

public key – WitnessPubKeyHash to deal with


I am attempting to derive handle from pubkeyhash in GoLang. Present i am getting invalid handle
Present i am getting SegWit handle however mine chain would not assist Segwit.

addr, err := btcutil.NewAddressWitnessPubKeyHash(
        btcutil.Hash160(request.PublicKey.Bytes),
        s.config.Params,
    )

Params:

Title: "take a look at",

    Internet:         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 somebody assist me with fixing this.
I am attempting to implement rosetta-api

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments