Class AccountEntropyPool
-
- All Implemented Interfaces:
public class AccountEntropyPoolThe randomly-generated user-memorized entropy used to derive the backup key, with other possible future uses.
-
-
Constructor Summary
Constructors Constructor Description AccountEntropyPool()
-
Method Summary
Modifier and Type Method Description static Stringgenerate()Generate a new entropy pool and return the canonical string representation. static booleanisValid(String accountEntropyPool)Checks whether a string can be used as an account entropy pool. static Array<byte>deriveSvrKey(String accountEntropyPool)Derives an SVR key from the given account entropy pool. static BackupKeyderiveBackupKey(String accountEntropyPool)Derives a backup key from the given account entropy pool. -
-
Method Detail
-
generate
static String generate()
Generate a new entropy pool and return the canonical string representation.
This pool contains log_2(36^64) = ~330 bits of cryptographic quality randomness.
- Returns:
A 64 character string containing randomly chosen digits from [a-z0-9].
-
isValid
static boolean isValid(String accountEntropyPool)
Checks whether a string can be used as an account entropy pool.
- Returns:
trueif the string is a structurally valid account entropy value.
-
deriveSvrKey
static Array<byte> deriveSvrKey(String accountEntropyPool)
Derives an SVR key from the given account entropy pool.
accountEntropyPoolmust be a **validated** account entropy pool; passing an arbitrary string here is considered a programmer error.
-
deriveBackupKey
static BackupKey deriveBackupKey(String accountEntropyPool)
Derives a backup key from the given account entropy pool.
accountEntropyPoolmust be a **validated** account entropy pool; passing an arbitrary string here is considered a programmer error.
-
-
-
-