Verify messages signed with the PolkadotJS extension or any Substrate keypair.
npm install
npm run build- Loose format (each line is
[message,signature,ss58], no quotes required):
node dist/cli.js --file ./examples/sample_loose.txt > output/results.json- Strict JSON format (array of triplets):
node dist/cli.js --file ./examples/sample_json.json > output/results.jsonNotes
- Output: printed to stdout as JSON. Redirect to a file as shown above.
- Exit codes:
0all valid,2some invalid,1errors (parse, missing file, etc.). - Default: running with no args uses
examples/sample_json.json.
node dist/cli.js <message> <signature> <ss58>That’s it. Use the loose file for easy copy-paste, or JSON if you prefer strict formatting.