lf keri: refuse values the frame can't carry, print the sim id

clone took negative FC and CN, and MS values above 5 and 22 bits,
without a word: MS FC 40 wrote the card of FC 8. sim let ids of 32
bits or more change the fixed bits, so --id 2147483648 simulated id 0,
and printed the shifted frame as Internal Id. The sim help example
used --cn, the option is --id, and the clone hint named lf keri read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Gabriele GristinaandClaude Opus 5.5 committed 2026-11-07 00:25:21 +01:00
1 parent f90d0d0bf9
commit 49e5b502f5
4 files changed
+30 -8

No files matched your search

+2 -2
View File
@@ -13773,7 +13773,7 @@
"command": "lf keri sim",
"description": "Enables simulation of KERI card with internal ID. You supply a KERI card id and it will converted to a KERI internal ID.",
"notes": [
"lf keri sim --cn 112233"
"lf keri sim --id 112233"
],
"offline": false,
"options": [
@@ -16812,6 +16812,6 @@
"metadata": {
"commands_extracted": 936,
"extracted_by": "PM3Help2JSON v1.00",
"extracted_on": "2026-10-23T22:15:17+00:00"
"extracted_on": "2026-11-06T23:18:49+00:00"
}
}