@btc-vision/ecpair - v4.0.2
    Preparing search index...

    Function decodeWIF

    • Decodes a WIF-encoded private key string.

      When network is a single Network, the decoded version byte must match exactly or an error is thrown. When network is an array, the first network whose wif byte matches is used.

      Parameters

      • wifString: string

        The WIF string to decode.

      • network: Network | readonly Network[]

        One or more candidate networks.

      Returns WifDecodeResult

      The decoded private key, compression flag, and matched network.

      If no network matches the decoded version byte.