Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/silkpre/precompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ SilkpreOutput silkpre_ecrec_run(const uint8_t* input, size_t len) {
}

std::memset(out, 0, 12);
static secp256k1_context* context{secp256k1_context_create(SILKPRE_SECP256K1_CONTEXT_FLAGS)};
thread_local secp256k1_context* context{secp256k1_context_create(SILKPRE_SECP256K1_CONTEXT_FLAGS)};
if (!silkpre_recover_address(out + 12, &d[0], &d[64], v != 27, context)) {
return {out, 0};
}
Expand Down