Skip to content
Snippets Groups Projects
Commit e3529c4a authored by Éloïs's avatar Éloïs
Browse files

feat(dubp): support member wallet from legacy salt+password

parent 706799af
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,11 @@ pub(crate) fn compute_secret_code_len(
}
SecretCodeType::Letters => {
if member_wallet {
Ok(10)
if log_n >= 15 {
Ok(7)
} else {
Ok(8)
}
} else if log_n >= 15 {
Ok(5)
} else {
......
......@@ -122,6 +122,7 @@ class DubpRust {
String salt,
String password,
SecretCodeType secretCodeType = SecretCodeType.letters,
bool isMember = false,
}) async {
int ram = SysInfo.getTotalPhysicalMemory();
print('ram=$ram');
......@@ -134,7 +135,7 @@ class DubpRust {
Utf8.toUtf8(currency),
Utf8.toUtf8(salt),
Utf8.toUtf8(password),
0,
isMember ? 1 : 0,
secretCodeType.index,
ram,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment