The WIF class provides methods to make working with the Bitcoin Wallet Import Format easier and consistent across all Platform SDK products.
import { WIF } from "@ardenthq/cryptography";WIF.encode({
version: 128,
privateKey: "0000000000000000000000000000000000000000000000000000000000000001",
compressed: true,
});WIF.decode('KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn');