Skip to content

Commit 45f6f0f

Browse files
committed
Merge #363: Upstream PRs 1846, 1848, 1849
8479eaf musig: always clear out secret key in `secp256k1_musig_nonce_gen_counter` (Sebastian Falbesoner) 3cca645 ci: Bump GCC snapshot major version to 17 (Hennadii Stepanov) 285cb78 ci: Replace `ilammy/msvc-dev-cmd` with manual MSVC setup (Hennadii Stepanov) Pull request description: This PR has been created by a GitHub Actions workflow without human involvement. [bitcoin-core/secp256k1#1846]: ci: Replace `ilammy/msvc-dev-cmd` with manual MSVC setup [bitcoin-core/secp256k1#1848]: ci: Bump GCC snapshot major version to 17 [bitcoin-core/secp256k1#1849]: musig: always clear out secret key in `secp256k1_musig_nonce_gen_counter` Tips: * Use `git show --remerge-diff <pr-branch>` to show the conflict resolution in the merge commit. * Use `git read-tree --reset -u <pr-branch>` to replay these resolutions during the conflict resolution stage when recreating the PR branch locally. Be aware that this may discard your index as well as the uncommitted changes and untracked files in your worktree. ACKs for top commit: mllwchrry: ACK b11340b. This sync PR can be merged as-is. DarkWindman: ACK b11340b Tree-SHA512: 4b311e9bfa21f00b4780202c08af9d00380f5b3df40704641764d706cfc3408615b6206c7c82ca915b56c27a354bdf24680674269a28eefe7d4e93adc06cbaa5
2 parents 99fab52 + b11340b commit 45f6f0f

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,11 +693,10 @@ jobs:
693693
steps:
694694
- *CHECKOUT
695695

696-
- name: Add cl.exe to PATH
697-
uses: ilammy/msvc-dev-cmd@v1
698-
699696
- name: C++ (public headers)
697+
shell: cmd
700698
run: |
699+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
701700
cl.exe -c -WX -TP include/*.h
702701
703702
cxx_fpermissive_debian:

ci/linux-debian.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-instal
4040
apt-get clean && rm -rf /var/lib/apt/lists/*
4141

4242
# Build and install gcc snapshot
43-
ARG GCC_SNAPSHOT_MAJOR=16
43+
ARG GCC_SNAPSHOT_MAJOR=17
4444
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
4545
wget libgmp-dev libmpfr-dev libmpc-dev flex && \
4646
mkdir gcc && cd gcc && \

src/modules/musig/session_impl.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,9 @@ int secp256k1_musig_nonce_gen_counter(const secp256k1_context* ctx, secp256k1_mu
483483
(void) ret;
484484
#endif
485485

486-
if (!secp256k1_musig_nonce_gen_internal(ctx, secnonce, pubnonce, buf, seckey, &pubkey, msg32, keyagg_cache, extra_input32)) {
487-
return 0;
488-
}
486+
ret = secp256k1_musig_nonce_gen_internal(ctx, secnonce, pubnonce, buf, seckey, &pubkey, msg32, keyagg_cache, extra_input32);
489487
secp256k1_memclear_explicit(seckey, sizeof(seckey));
490-
return 1;
488+
return ret;
491489
}
492490

493491
static int secp256k1_musig_sum_pubnonces(const secp256k1_context* ctx, secp256k1_gej *summed_pubnonces, const secp256k1_musig_pubnonce * const* pubnonces, size_t n_pubnonces) {

0 commit comments

Comments
 (0)