From bd11abb7df9ccf0b6b03095ab25db985c6ff2efb Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 12:04:30 +0100 Subject: [PATCH] ax(node): replace prose constant comment with usage example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ChallengeSize comment restated the name ("is the size of the challenge in bytes") — violating AX Principle 2. Replace with a concrete usage example showing how the constant is used at call sites. Co-Authored-By: Charon --- pkg/node/identity.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/node/identity.go b/pkg/node/identity.go index 20215c2..7a20fd9 100644 --- a/pkg/node/identity.go +++ b/pkg/node/identity.go @@ -18,7 +18,8 @@ import ( "github.com/adrg/xdg" ) -// ChallengeSize is the size of the challenge in bytes +// challenge := make([]byte, ChallengeSize) +// rand.Read(challenge) const ChallengeSize = 32 // challenge, err := node.GenerateChallenge()