Skip to content

Commit

Permalink
chore: Remove test vectors for EVM xpub & BTC testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Ujjwal0501 authored and ujjwal-cyph committed Nov 23, 2023
1 parent 73270d5 commit 00d4686
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/common/util/xpub_verify_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "coin_utils.h"
#include "dash_app.h"
#include "doge_app.h"
#include "evm_helpers.h"
#include "ltc_app.h"
#include "near.h"
#include "near_helpers.h"
Expand Down Expand Up @@ -77,12 +78,6 @@ const uint32_t paths[][7] = {
0x80000000,
0x8fffffff}, // sol invalid

// account 0
{3, 1, NON_SEGWIT, ETHEREUM, 0x80000000}, // eth valid
// account 0x7fffffff
{3, 1, NON_SEGWIT, ETHEREUM, 0xffffffff}, // eth valid
// non-hardened
{3, 0, NON_SEGWIT, ETHEREUM, 0x00000000}, // eth invalid
// wrong depth for xpub
{5,
0,
Expand All @@ -91,8 +86,6 @@ const uint32_t paths[][7] = {
0x80000000,
0x80000000,
0xffffffff}, // eth invalid
// wrong purpose-id
{3, 0, NATIVE_SEGWIT, ETHEREUM, 0x80000000}, // eth invalid
// wrong depth and purpose-id
{5,
0,
Expand All @@ -114,7 +107,6 @@ const uint32_t paths[][7] = {
{3, 1, NATIVE_SEGWIT, BITCOIN, 0x80000000}, // btc valid
{3, 1, NATIVE_SEGWIT, BITCOIN, 0x8fffffff}, // btc valid
{3, 1, NON_SEGWIT, BITCOIN, 0x80000000}, // btc valid
{3, 1, NON_SEGWIT, BTC_TEST, 0x8fffffff}, // btct valid
{3, 1, NON_SEGWIT, DOGE, 0x80000000}, // doge valid
{3, 1, NON_SEGWIT, DOGE, 0x8fffffff}, // doge valid
{3, 1, NON_SEGWIT, DASH, 0x8fffffff}, // dash valid
Expand Down Expand Up @@ -190,6 +182,9 @@ TEST(xpub, derivation_path_tests) {
case SOLANA:
status = solana_derivation_path_guard(&paths[i][2], depth);
break;
case ETHEREUM:
status = evm_derivation_path_guard(&paths[i][2], depth);
break;
default:
status = false;
break;
Expand Down

0 comments on commit 00d4686

Please sign in to comment.