Skip to content

Commit

Permalink
js: exclude header defines from constants
Browse files Browse the repository at this point in the history
  • Loading branch information
jgriffiths committed Aug 30, 2023
1 parent 5afdad3 commit 2032311
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/wasm_package/src/const.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export const EC_XONLY_PUBLIC_KEY_LEN = 32;
export const HASH160_LEN = 20;
export const HMAC_SHA256_LEN = 32;
export const HMAC_SHA512_LEN = 64;
export const LIBWALLY_CORE_PSBT_MEMBERS_H = 1;
export const PBKDF2_HMAC_SHA256_LEN = 32;
export const PBKDF2_HMAC_SHA512_LEN = 64;
export const RIPEMD160_LEN = 20;
Expand Down
1 change: 1 addition & 0 deletions tools/update_wasm_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Extract WALLY_ constants into const.js
(echo '// AUTOGENERATED by update_wasm_package.sh' \
&& egrep -r '#define [^ (]* ' include/*.h \
| grep -v '#define LIBWALLY_CORE_' \
| grep -v '#define OP_' \
| sed -r 's~.*#define ([^ ]*) *~export const \1 = ~; s~( /\*)| *$~;\1~' \
| LC_ALL=C sort \
Expand Down

0 comments on commit 2032311

Please sign in to comment.