Skip to content

Commit 61b3285

Browse files
authored
Merge pull request #1945 from JayMaro/master
Move CipherException from org.web3j.crypto to org.web3j.crypto.exception
2 parents 84d1387 + 02f2aca commit 61b3285

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

core/src/main/java/org/web3j/crypto/Bip44WalletUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import java.io.File;
1616
import java.io.IOException;
1717

18+
import org.web3j.crypto.exception.CipherException;
19+
1820
import static org.web3j.crypto.Bip32ECKeyPair.HARDENED_BIT;
1921

2022
public class Bip44WalletUtils extends WalletUtils {

core/src/main/java/org/web3j/crypto/Wallet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.bouncycastle.crypto.generators.SCrypt;
3030
import org.bouncycastle.crypto.params.KeyParameter;
3131

32+
import org.web3j.crypto.exception.CipherException;
3233
import org.web3j.utils.Numeric;
3334

3435
import static java.nio.charset.StandardCharsets.UTF_8;

core/src/main/java/org/web3j/crypto/WalletUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import com.fasterxml.jackson.databind.DeserializationFeature;
2727
import com.fasterxml.jackson.databind.ObjectMapper;
2828

29+
import org.web3j.crypto.exception.CipherException;
2930
import org.web3j.utils.Numeric;
3031

3132
import static org.web3j.crypto.Hash.sha256;

crypto/src/main/java/org/web3j/crypto/CipherException.java renamed to crypto/src/main/java/org/web3j/crypto/exception/CipherException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
* specific language governing permissions and limitations under the License.
1212
*/
13-
package org.web3j.crypto;
13+
package org.web3j.crypto.exception;
1414

1515
/** Cipher exception wrapper. */
1616
public class CipherException extends Exception {

0 commit comments

Comments
 (0)