From 0994696e9bc86e402c16642c9dbd6f8672cfc757 Mon Sep 17 00:00:00 2001 From: Robin Bryce Date: Thu, 28 Nov 2024 12:13:10 +0000 Subject: [PATCH] feat: support MMRIVER 02 Notice: this changes the expected VDS from 2 to 3. This change must not be released until the corresponding datatrails production release has shipped. --- .gitignore | 1 + Taskfile.yml | 1 + datatrails_scitt_samples/cbor_header_labels.py | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 01977d6..4378949 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ build/ dist/ payload.json +metadata.json scitt/artifacts/_manifest/* datatrails_scitt_samples/__pycache__/* datatrails_scitt_samples/scripts/__pycache__/* diff --git a/Taskfile.yml b/Taskfile.yml index 558c03e..9384d37 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -126,6 +126,7 @@ tasks: cmds: - | set -e + source {{ .VENV_DIR }}/bin/activate echo "DATATRAILS_ xxx var value char counts" echo "$DATATRAILS_URL" | wc -c diff --git a/datatrails_scitt_samples/cbor_header_labels.py b/datatrails_scitt_samples/cbor_header_labels.py index 3e7ae8d..869673e 100644 --- a/datatrails_scitt_samples/cbor_header_labels.py +++ b/datatrails_scitt_samples/cbor_header_labels.py @@ -52,7 +52,8 @@ # MMRIVER headers # https://robinbryce.github.io/draft-bryce-cose-merkle-mountain-range-proofs/draft-bryce-cose-merkle-mountain-range-proofs.html#name-receipt-of-inclusion -HEADER_LABEL_MMRIVER_VDS_TREE_ALG = 2 +HEADER_LABEL_MMRIVER_VDS_TREE_ALG_DRAFT_00 = 2 +HEADER_LABEL_MMRIVER_VDS_TREE_ALG = 3 HEADER_LABEL_MMRIVER_INCLUSION_PROOF_INDEX = 1 HEADER_LABEL_MMRIVER_INCLUSION_PROOF_PATH = 2