ax(ueps): use full variable name in TagHMAC and TagPayload comments

AX Principle 1 — predictable names over short names. Comments showing
usage examples must use the same full names as the implementation:
'buffer' not 'buf'.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 08:58:53 +01:00
parent 315d052b15
commit ddb62cb269
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -24,8 +24,8 @@ const (
TagTargetLayer = 0x03
TagIntent = 0x04
TagThreatScore = 0x05
TagHMAC = 0x06 // writeTLV(buf, TagHMAC, hmacSignature) — covers all preceding header TLVs + payload
TagPayload = 0xFF // buf.WriteByte(TagPayload); buf.Write(rawPayload) — no length prefix
TagHMAC = 0x06 // writeTLV(buffer, TagHMAC, hmacSignature) — covers all preceding header TLVs + payload
TagPayload = 0xFF // buffer.WriteByte(TagPayload); buffer.Write(rawPayload) — no length prefix
)
// header := ueps.UEPSHeader{Version: 0x09, CurrentLayer: 5, TargetLayer: 3, IntentID: 0x01, ThreatScore: 0}