Repository navigation
Fix TRTL PoW profile (use Argon2/Chukwa v2) - #149
Merged
MoneroOcean merged 1 commit intoMay 21, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
11898with thecn-pico/trtlalgorithm andcryptonight_picoverifier, which caused share verification to trust the wrong PoW and allowed invalid TRTL work to be credited.11898are validated against the correct algorithm and cannot be abused to dilute payout accounting.Description
lib/coins/trtl.jsto setalgo: "argon2/chukwav2"andpow: pow.argon2({ variant: 2 })while preserving existing pool submit and blob settings in the profile viapreset.cryptonoteHeader.perfaliases to["argon2/chukwav2", "chukwav2"]so performance mapping aligns with the restored algorithm.tests/pool/coin/basics.jsthat asserts the TRTL profile resolves to Argon2/Chukwa variant 2 and invokesargon2rather thancryptonight_picowhen calling the profilepow.hashBuff.Testing
node --check lib/coins/trtl.jswhich succeeded.node --check tests/pool/coin/basics.jsand executed a focused Node assertion that invoked the registry/profilepow.hashBuffto confirm it callsargon2withvariant: 2, which succeeded.node --require ./tests/common/test_output_buffer.js --test ... tests/pool/coin/basics.js) but the full harness could not complete due to missing native test dependencies (node-powhash,protocol-buffers) becausenpm installwas blocked by a registry403, preventing a full test run in this environment.Codex Task