WIF

The WIF class provides methods to make working with the Bitcoin Wallet Import Format easier and consistent across all Platform SDK products.

Importing the WIF class

import { WIF } from "@payvo/sdk-crypto";

Encode a private key

WIF.encode({
    version: 128,
    privateKey: "0000000000000000000000000000000000000000000000000000000000000001",
    compressed: true,
});

Decode an encoded WIF

WIF.decode('KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn');
2021 © ARK.io | All rights reserved An ARK.io Product