Allow user to rotate AEP.

This commit is contained in:
Alex Hart
2025-07-18 10:36:49 -03:00
committed by GitHub
parent a9455b95ac
commit 36de1284c7
10 changed files with 457 additions and 44 deletions

View File

@@ -141,6 +141,15 @@ class AccountValues internal constructor(store: KeyValueStore, context: Context)
}
}
fun rotateAccountEntropyPool(aep: AccountEntropyPool) {
AEP_LOCK.withLock {
store
.beginWrite()
.putString(KEY_ACCOUNT_ENTROPY_POOL, aep.value)
.commit()
}
}
fun restoreAccountEntropyPool(aep: AccountEntropyPool) {
AEP_LOCK.withLock {
store