Skip to content

Commit

Permalink
wrap 14WordSeedHeight (#97)
Browse files Browse the repository at this point in the history
* wrap 14WordSeedHeight

* update checksums
  • Loading branch information
MrCyjaneK authored Jan 3, 2025
1 parent b39712e commit 073b85a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion impls/monero.dart/lib/src/checksum_wownero.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ignore_for_file: constant_identifier_names
const String wallet2_api_c_h_sha256 = "8a8d386dd5d996c89a0586c55b295ef95ca584bf1ffa26255152b291910a0a77";
const String wallet2_api_c_cpp_sha256 = "07d67f34a07869aaa4af6ca04e142dbad2fb1fba0e2ebdefd22bc333fd982e25-e25963cbc11ca0a0fe5eb34b9bd7c72e4f51b795";
const String wallet2_api_c_cpp_sha256 = "64a0ea40b62cce04987c7efb8a6e6deceac8d91d4bc564a1356711c000155ffd-e25963cbc11ca0a0fe5eb34b9bd7c72e4f51b795";
const String wallet2_api_c_exp_sha256 = "3673e40e1a7115552276d1d541f6e4d5a0fef47c40fff7b988f49923af84c8a4";
2 changes: 1 addition & 1 deletion impls/monero.ts/checksum_wownero.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const wowneroChecksum = {
wallet2_api_c_h_sha256: "8a8d386dd5d996c89a0586c55b295ef95ca584bf1ffa26255152b291910a0a77",
wallet2_api_c_cpp_sha256: "07d67f34a07869aaa4af6ca04e142dbad2fb1fba0e2ebdefd22bc333fd982e25-e25963cbc11ca0a0fe5eb34b9bd7c72e4f51b795",
wallet2_api_c_cpp_sha256: "64a0ea40b62cce04987c7efb8a6e6deceac8d91d4bc564a1356711c000155ffd-e25963cbc11ca0a0fe5eb34b9bd7c72e4f51b795",
wallet2_api_c_exp_sha256: "3673e40e1a7115552276d1d541f6e4d5a0fef47c40fff7b988f49923af84c8a4",
}
8 changes: 6 additions & 2 deletions wownero_libwallet2_api_c/src/main/cpp/wallet2_api_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1923,8 +1923,12 @@ void* WOWNERO_deprecated_restore14WordSeed(char *path, char *password, char *see
}

uint64_t WOWNERO_deprecated_14WordSeedHeight(char *seed) {
wownero_seed wow_seed(seed, "wownero");
return wow_seed.blockheight();
try {
wownero_seed wow_seed(seed, "wownero");
return wow_seed.blockheight();
} catch (...) {
return 2;
}
}

void* WOWNERO_deprecated_create14WordSeed(char *path, char *password, char *language, int32_t networkType) {
Expand Down
2 changes: 1 addition & 1 deletion wownero_libwallet2_api_c/src/main/cpp/wownero_checksum.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef MONEROC_CHECKSUMS
#define MONEROC_CHECKSUMS
const char * WOWNERO_wallet2_api_c_h_sha256 = "8a8d386dd5d996c89a0586c55b295ef95ca584bf1ffa26255152b291910a0a77";
const char * WOWNERO_wallet2_api_c_cpp_sha256 = "07d67f34a07869aaa4af6ca04e142dbad2fb1fba0e2ebdefd22bc333fd982e25-e25963cbc11ca0a0fe5eb34b9bd7c72e4f51b795";
const char * WOWNERO_wallet2_api_c_cpp_sha256 = "64a0ea40b62cce04987c7efb8a6e6deceac8d91d4bc564a1356711c000155ffd-e25963cbc11ca0a0fe5eb34b9bd7c72e4f51b795";
const char * WOWNERO_wallet2_api_c_exp_sha256 = "3673e40e1a7115552276d1d541f6e4d5a0fef47c40fff7b988f49923af84c8a4";
#endif

0 comments on commit 073b85a

Please sign in to comment.