public class WalletUtils extends Object
| Constructor and Description |
|---|
WalletUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decrypt(byte[] key,
byte[] initVector,
byte[] encrypted) |
static com.fasterxml.jackson.databind.JsonNode |
decryptWallet(WalletObject encryptedWallet,
String password) |
static byte[] |
encrypt(byte[] key,
byte[] initVector,
byte[] value) |
static WalletObject |
encryptWallet(AccountName account,
KeyPair keypair,
String password) |
static byte[] |
sha256(String msg) |
public static byte[] sha256(String msg)
public static WalletObject encryptWallet(AccountName account, KeyPair keypair, String password)
account - The account name.keypair - The key pair public key and private key.password - The password.public static com.fasterxml.jackson.databind.JsonNode decryptWallet(WalletObject encryptedWallet, String password) throws IOException
IOExceptionpublic static byte[] encrypt(byte[] key,
byte[] initVector,
byte[] value)
public static byte[] decrypt(byte[] key,
byte[] initVector,
byte[] encrypted)
Copyright © 2019. All rights reserved.