Skip to content

Commit fcad089

Browse files
committed
update to latest secp-zkp API interface
1 parent 320fbd8 commit fcad089

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

src/elements.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ int wally_asset_pak_whitelistproof(
614614
}
615615

616616
if (secp256k1_whitelist_sign(ctx, &sig, online_secp_keys, offline_secp_keys, num_keys,
617-
&pubkey, online_priv_key, summed_key, key_index, NULL, NULL) &&
617+
&pubkey, online_priv_key, summed_key, key_index) &&
618618
secp256k1_whitelist_verify(ctx, &sig, online_secp_keys, offline_secp_keys, num_keys, &pubkey) &&
619619
secp256k1_whitelist_signature_serialize(ctx, bytes_out, &sig_size, &sig)) {
620620
ret = WALLY_OK;

src/wrap_js/src/combined.c

+9-4
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,17 @@
2626
#include "wif.c"
2727
#include "wordlist.c"
2828
#undef PACKAGE
29+
#undef PACKAGE_BUGREPORT
2930
#undef PACKAGE_NAME
3031
#undef PACKAGE_STRING
3132
#undef PACKAGE_TARNAME
33+
#undef PACKAGE_URL
3234
#undef PACKAGE_VERSION
3335
#undef VERSION
3436
#undef SECP256K1_BUILD
3537
#include "src/secp256k1/src/secp256k1.c"
38+
#include "src/secp256k1/src/precomputed_ecmult_gen.c"
39+
#include "src/secp256k1/src/precomputed_ecmult.c"
3640
#include "ccan/ccan/crypto/sha256/sha256.c"
3741

3842
void wally_silence_unused_warnings(void)
@@ -41,15 +45,16 @@ void wally_silence_unused_warnings(void)
4145
assert_bip32_assumptions();
4246
assert_bip38_assumptions();
4347
assert_tx_assumptions();
48+
secp256k1_fe_get_bounds(NULL, 0);
4449
secp256k1_fe_inv_var(NULL, NULL);
4550
secp256k1_ge_set_all_gej_var(NULL, NULL, 0);
4651
secp256k1_gej_has_quad_y_var(NULL);
4752
secp256k1_ge_is_valid_var(NULL);
4853
secp256k1_ge_set_infinity(NULL);
49-
secp256k1_ec_commit_verify(NULL, NULL, NULL, NULL, NULL, 0);
50-
secp256k1_ecmult_multi_var(NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0);
51-
secp256k1_ecmult_strauss_batch_single(NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0);
52-
secp256k1_ecmult_pippenger_batch_single(NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0);
54+
secp256k1_ec_commit_verify(NULL, NULL, NULL, NULL, 0);
55+
secp256k1_ecmult_multi_var(NULL, NULL, NULL, NULL, NULL, NULL, 0);
56+
secp256k1_ecmult_strauss_batch_single(NULL, NULL, NULL, NULL, NULL, NULL, 0);
57+
secp256k1_ecmult_pippenger_batch_single(NULL, NULL, NULL, NULL, NULL, NULL, 0);
5358
secp256k1_pippenger_scratch_size(0, 0);
5459
secp256k1_scalar_chacha20(NULL, NULL, NULL, 0);
5560
secp256k1_sha256_initialize_tagged(NULL, NULL, 0);

tools/msvc/build.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ if "%ELEMENTS_BUILD%" == "elements" (
2121
REM Compile everything (wally, ccan, libsecp256k) in one lump.
2222
REM Define USE_ECMULT_STATIC_PRECOMPUTATION to pick up the
2323
REM ecmult_static_context.h file generated previously
24-
cl /utf-8 /DUSE_ECMULT_STATIC_PRECOMPUTATION /DECMULT_WINDOW_SIZE=16 /DWALLY_CORE_BUILD %ELEMENTS_OPT% /DHAVE_CONFIG_H /DSECP256K1_BUILD /I%LIBWALLY_DIR%\src\wrap_js\windows_config /I%LIBWALLY_DIR% /I%LIBWALLY_DIR%\src /I%LIBWALLY_DIR%\include /I%LIBWALLY_DIR%\src\ccan /I%LIBWALLY_DIR%\src\ccan\base64 /I%LIBWALLY_DIR%\src\secp256k1 /Zi /LD src/aes.c src/anti_exfil.c src/base58.c src/base64.c src/bech32.c src/bip32.c src/bip38.c src/bip39.c src/blech32.c src/ecdh.c src/elements.c src/hex.c src/hmac.c src/internal.c src/mnemonic.c src/pbkdf2.c src/psbt.c src/script.c src/scrypt.c src/sign.c src/symmetric.c src/transaction.c src/wif.c src/wordlist.c src/ccan/ccan/crypto/ripemd160/ripemd160.c src/ccan/ccan/crypto/sha256/sha256.c src/ccan/ccan/crypto/sha512/sha512.c src/ccan/ccan/base64/base64_.c src\ccan\ccan\str\hex\hex_.c src/secp256k1/src/secp256k1.c /Fewally.dll
24+
cl /utf-8 /DUSE_ECMULT_STATIC_PRECOMPUTATION /DECMULT_WINDOW_SIZE=16 /DWALLY_CORE_BUILD %ELEMENTS_OPT% /DHAVE_CONFIG_H /DSECP256K1_BUILD /I%LIBWALLY_DIR%\src\wrap_js\windows_config /I%LIBWALLY_DIR% /I%LIBWALLY_DIR%\src /I%LIBWALLY_DIR%\include /I%LIBWALLY_DIR%\src\ccan /I%LIBWALLY_DIR%\src\ccan\base64 /I%LIBWALLY_DIR%\src\secp256k1 /Zi /LD src/aes.c src/anti_exfil.c src/base58.c src/base64.c src/bech32.c src/bip32.c src/bip38.c src/bip39.c src/blech32.c src/ecdh.c src/elements.c src/hex.c src/hmac.c src/internal.c src/mnemonic.c src/pbkdf2.c src/psbt.c src/script.c src/scrypt.c src/sign.c src/symmetric.c src/transaction.c src/wif.c src/wordlist.c src/ccan/ccan/crypto/ripemd160/ripemd160.c src/ccan/ccan/crypto/sha256/sha256.c src/ccan/ccan/crypto/sha512/sha512.c src/ccan/ccan/base64/base64_.c src\ccan\ccan\str\hex\hex_.c src/secp256k1/src/secp256k1.c src/secp256k1/src/precomputed_ecmult_gen.c src/secp256k1/src/precomputed_ecmult.c /Fewally.dll

0 commit comments

Comments
 (0)