From e72b6959488c23c4eea2c20e415d01504594a272 Mon Sep 17 00:00:00 2001 From: maclane Date: Fri, 22 May 2026 18:32:53 -0500 Subject: [PATCH] fix(frost/signing): gate RFC-21 Phase 1B binding with frost_native build tag The Phase 1B helpers and tests reference the three protocol-message structs (nativeFROSTRoundOneCommitmentMessage, nativeFROSTRoundTwoSignatureShareMessage, buildTaggedTBTCSignerRoundContributionMessage) which are themselves declared in files with //go:build frost_native. Without a matching build tag, the untagged staticcheck pass on the integration branch reports "undefined: nativeFROSTRoundOneCommitmentMessage" etc., and the lint job fails. Add //go:build frost_native to both the binding implementation file and its test. The helpers were only ever exercised from gated code paths, so the gate is the correct locus. Verified locally: * go build ./... * go build -tags 'frost_native frost_tbtc_signer' ./pkg/frost/... * go test -tags 'frost_native frost_tbtc_signer' ./pkg/frost/signing/ * staticcheck -checks "-SA1019" ./... (silent) This is a forward-fix for #3866 CI after the rapid merge train of #3963 and #3964. --- pkg/frost/signing/attempt_context_binding.go | 2 ++ pkg/frost/signing/attempt_context_binding_test.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pkg/frost/signing/attempt_context_binding.go b/pkg/frost/signing/attempt_context_binding.go index d185839878..5bb01b2cb9 100644 --- a/pkg/frost/signing/attempt_context_binding.go +++ b/pkg/frost/signing/attempt_context_binding.go @@ -1,3 +1,5 @@ +//go:build frost_native + package signing import ( diff --git a/pkg/frost/signing/attempt_context_binding_test.go b/pkg/frost/signing/attempt_context_binding_test.go index f6152f185e..659a32e275 100644 --- a/pkg/frost/signing/attempt_context_binding_test.go +++ b/pkg/frost/signing/attempt_context_binding_test.go @@ -1,3 +1,5 @@ +//go:build frost_native + package signing import (