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

    Function encodeWIF

    • Encodes a private key into Wallet Import Format (WIF / Base58Check).

      Parameters

      • privateKey: PrivateKey

        32-byte private key to encode.

      • compressed: boolean

        true to flag the key as compressed.

      • network: Network

        Network whose wif version byte to use.

      Returns string

      The WIF-encoded string.