ax(ueps): replace prose comment on ParsedPacket with usage example
AX Principle 2 requires comments to show concrete usage, not describe behaviour. The old comment restated when fields are populated; the new comment shows the dispatch call an agent would make after ReadAndVerify. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
9394bbd768
commit
d54d576546
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ var errMissingHMAC = packetError("UEPS packet missing HMAC signature")
|
|||
// if err == errIntegrityViolation { /* HMAC mismatch — threat score incremented */ }
|
||||
var errIntegrityViolation = packetError("integrity violation: HMAC mismatch (ThreatScore +100)")
|
||||
|
||||
// packet.Header.IntentID, packet.Header.ThreatScore, packet.Payload — fields populated after successful ReadAndVerify
|
||||
// dispatch(packet.Header.IntentID, packet.Header.ThreatScore, packet.Payload)
|
||||
type ParsedPacket struct {
|
||||
Header UEPSHeader
|
||||
Payload []byte
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue