54355f16e7
This change adds a check for a valid (32-byte length) secret before attempting to encrypt or decrypt any addresses. If the check fails, a meaningful error (ErrWalletLocked) is returned to the caller, rather than an error out of the aes package. |
||
---|---|---|
.. | ||
wallet.go | ||
wallet_test.go |