|
October 08, 2013, 04:49:02 PM |
|
We need a documentation article on this feature.
You encrypt a wallet once. At that point, when creating spends, you can set SendRequest.aesKey and it will be used to decrypt keys as it signs.
Deriving an AES key from a users password is meant to be slow/intensive. So, the wallet takes the key directly and not the password (in case you wish to use it multiple times, cache it for a while, etc). You can get the KeyParameter (which holds the key object) by using wallet.getKeyCrypter().derivePassword("password").
|