4.9 C
New York
Friday, February 2, 2024

public key – WitnessPubKeyHash to handle

Share To Your Friends

[ad_1]

I am attempting to derive deal with from pubkeyhash in GoLang. Present i am getting invalid deal with
Present i am getting SegWit deal with however mine chain does not help Segwit.

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

Params:

Identify: "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

[ad_2]


Share To Your Friends

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles