Mining/pkg
Claude 89e70a4449
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
ax(ueps): eliminate duplicated HMAC buffer writes in ReadAndVerify switch
The switch in ReadAndVerify duplicated the same three hmacInputBuffer.WriteByte/Write
calls across five cases plus default. Extracted to a single conditional after the switch:
all tags except TagHMAC feed the authenticated input buffer. Behaviour is identical;
declarative intent is now clear (AX principle 5 — declarative over imperative).

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 14:15:06 +01:00
..
database ax(database): replace prose comment with usage example on GetHashrateHistory 2026-04-02 14:14:18 +01:00
logging ax(logging): replace prose comments with usage examples on global functions 2026-04-02 14:14:21 +01:00
mining ax(mining): replace prose comment with usage example on parseVersion 2026-04-02 14:14:41 +01:00
node ax(node): rename Transport receiver from t to transport 2026-04-02 14:14:26 +01:00
ueps ax(ueps): eliminate duplicated HMAC buffer writes in ReadAndVerify switch 2026-04-02 14:15:06 +01:00