Skip to content

Commit f08682d

Browse files
committed
Merge branch 'uncompressed'
2 parents 8d4be74 + 711eaa5 commit f08682d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit-test/test_keystore_antiklepto.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ static void _test_keystore_antiklepto(void** state)
9090
secp256k1_ecdsa_signature parsed_signature;
9191
assert_true(secp256k1_ecdsa_signature_parse_compact(
9292
wally_get_secp_context(), &parsed_signature, sig));
93-
uint8_t pubkey[EC_PUBLIC_KEY_UNCOMPRESSED_LEN];
94-
assert_true(keystore_secp256k1_pubkey_uncompressed(keypath, 5, pubkey));
93+
struct ext_key xpub;
94+
assert_true(keystore_get_xpub(keypath, 5, &xpub));
9595
secp256k1_pubkey parsed_pubkey;
9696
assert_true(secp256k1_ec_pubkey_parse(
97-
wally_get_secp_context(), &parsed_pubkey, pubkey, sizeof(pubkey)));
97+
wally_get_secp_context(), &parsed_pubkey, xpub.pub_key, sizeof(xpub.pub_key)));
9898
secp256k1_ecdsa_s2c_opening opening;
9999
assert_true(secp256k1_ecdsa_s2c_opening_parse(
100100
wally_get_secp_context(), &opening, signer_commitment));

0 commit comments

Comments
 (0)