From 23af5a3b8c96cdb9ba45e5c1b62552729df03ee6 Mon Sep 17 00:00:00 2001 From: williamkhoo Date: Wed, 7 Oct 2020 14:20:35 +0800 Subject: [PATCH] encrypted wallet objectMapper format bug fix --- src/test/java/com/mxw/wallet/WalletTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/mxw/wallet/WalletTest.java b/src/test/java/com/mxw/wallet/WalletTest.java index 95d8b4d..1badd10 100644 --- a/src/test/java/com/mxw/wallet/WalletTest.java +++ b/src/test/java/com/mxw/wallet/WalletTest.java @@ -47,8 +47,8 @@ public void testDecryptJson() throws CipherException { @Test public void testEncryptWithoutMnemonic() throws CipherException, JsonProcessingException { Wallet wallet = new Wallet(TestConfig.PRIVATE_KEY_STRING); - WalletFile walletFile = wallet.EncryptWallet(TestConfig.ENCRYPT_PASSWORD); - String json = wallet.EncryptWalletJson(TestConfig.ENCRYPT_PASSWORD); + WalletFile walletFile = wallet.encryptWallet(TestConfig.ENCRYPT_PASSWORD); + String json = wallet.encryptWalletJson(TestConfig.ENCRYPT_PASSWORD); SigningKey signingKey = SecretStorage.decryptToSignKey(TestConfig.ENCRYPT_PASSWORD, walletFile); Assert.assertEquals(wallet.getSigningKey(), signingKey); Assert.assertEquals(wallet.getPrivateKey(), signingKey.getPrivateKey());