Skip to content

Update recommendations for CBOR container types#145

Merged
CZDanol merged 1 commit into
OpenPrintTag:mainfrom
cjbearman:cbor-container-type-adjustment
Jun 15, 2026
Merged

Update recommendations for CBOR container types#145
CZDanol merged 1 commit into
OpenPrintTag:mainfrom
cjbearman:cbor-container-type-adjustment

Conversation

@cjbearman

Copy link
Copy Markdown
Contributor

ref: #144

Current recommendation to use indefinite form for all CBOR containers is excessive.

The intent of use of CBOR indefinite containers is to facilitate updates to the tag on a block-centric basis without the necessity to re-write the entire tag for each change.

As such, this recommendation only really applies for the AUX container root map with extremely limited potential utility in other situations and the cost of (typically) one extra byte of memory being wasted per container.

Update specification to recommend indefinite container use only for the AUX root map.

Comment thread docs_src/nfc_data_format.md Outdated
Comment thread docs_src/nfc_data_format.md Outdated
@CZDanol

CZDanol commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

The reasoning to reduce the indefinite requirement to only aux region sounds reasonable to me - no objections on this point.

… is excessive.

The intent of use of CBOR indefinite containers is to facilitate updates to the tag on a block-centric basis without the necessity to re-write the entire tag for each change.

As such, this recommendation only really applies for the AUX container root map with extremely limited potential utility in other situations and the cost of (typically) one extra byte of memory being wasted per container.

Update specification to recommend indefinite container use only for the AUX root map.
@cjbearman cjbearman force-pushed the cbor-container-type-adjustment branch from 355cc4b to 51d78d2 Compare June 15, 2026 15:56
@CZDanol CZDanol merged commit e5ae637 into OpenPrintTag:main Jun 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants