|
|
// Generated by tool/formats_go_vectors.go: every eighth case of each
|
|
|
// section of test/vectors/formats_*.json, for the tests that also run
|
|
|
// compiled to JavaScript, where no file can be read. Do not edit.
|
|
|
|
|
|
/// Part of test/vectors/formats_framing.json.
|
|
|
const formatsFramingJson = r'''
|
|
|
{
|
|
|
"spec": "0.15",
|
|
|
"generator": "tool/formats_go_vectors.go",
|
|
|
"description": "The PRELUDE of a .dkc (capsule.ParsePrelude), the steps 1 to 3 of capsule.Inspect on truncated and edited fixtures (with the step that fails, 0 when steps 1 to 8 pass), and whole .dkk files (accesskey.Decode), with the result, the code and the text of the Go reference.",
|
|
|
"prelude": [
|
|
|
{"hex":"","result":"ERR_INVALID_MAGIC","text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"hex":"444b4b3101000000000000790000","result":"ERR_INVALID_MAGIC","text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"hex":"444b43310180000000000079000001be","result":"ERR_INVALID_FLAGS","text":"capsule: flags 0x80, reserved 0x0000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b43310100800000000079000001be","result":"ERR_INVALID_FLAGS","text":"capsule: flags 0x0, reserved 0x8000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b43310100008000000079000001be","result":"ERR_INVALID_FLAGS","text":"capsule: flags 0x0, reserved 0x0080: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b433103000000551e1a8a00100001","result":"ERR_INTEGRITY","text":"capsule: PUBLIC_HEADER_LEN 1428036234 outside 1..1048576: ERR_INTEGRITY"},
|
|
|
{"hex":"444b4331007f0000522449dc80000007","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: framing version 0: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"444b433101000043c289e71600000079","result":"ERR_INVALID_FLAGS","text":"capsule: flags 0x0, reserved 0x0043: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4331000000a180000007f0c9c9bb","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: framing version 0: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"44214331010000000010000100100000","result":"ERR_INVALID_MAGIC","text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"hex":"44654331010000000400000000100000","result":"ERR_INVALID_MAGIC","text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"hex":"444b4331010000370000007900000079","result":"ERR_INVALID_FLAGS","text":"capsule: flags 0x0, reserved 0x0037: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b43310100b6000000000100000001","result":"ERR_INVALID_FLAGS","text":"capsule: flags 0x0, reserved 0xb600: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4331019c007b00100001ffffffff","result":"ERR_INVALID_FLAGS","text":"capsule: flags 0x9c, reserved 0x007b: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b43310100e5000000000100000000","result":"ERR_INVALID_FLAGS","text":"capsule: flags 0x0, reserved 0xe500: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4331ff0000009930ac0300000002","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: framing version 255: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"444b4331040000000400000004000001","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: framing version 4: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"f44b4331ff0047000400000000000079","result":"ERR_INVALID_MAGIC","text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"hex":"444b43310404920000100000572f36e4","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: framing version 4: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"444b4331020089000000007904000001","result":"ERR_INVALID_FLAGS","text":"capsule: flags 0x0, reserved 0x8900: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b433101bd00008000000700000001","result":"ERR_INVALID_FLAGS","text":"capsule: flags 0xbd, reserved 0x0000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444bf931ff0000000010000180000007","result":"ERR_INVALID_MAGIC","text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"hex":"444b4331007b00630400000004000000","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: framing version 0: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"444b4331000000000400000000000079","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: framing version 0: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"444b4331030000000000000000100000","result":"ERR_INTEGRITY","text":"capsule: PUBLIC_HEADER_LEN 0 outside 1..1048576: ERR_INTEGRITY"},
|
|
|
{"hex":"444b4331010000003134af5400000000","result":"ERR_INTEGRITY","text":"capsule: PUBLIC_HEADER_LEN 825536340 outside 1..1048576: ERR_INTEGRITY"},
|
|
|
{"hex":"444b4331040000000400000080000007","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: framing version 4: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"444b43310400000000000001cfaa7faa","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: framing version 4: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"444b4331000000000000000180000007","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: framing version 0: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"444b43310100000000000002ffffffff","result":"ERR_INTEGRITY","text":"capsule: SEALED_CONTROL_LEN 4294967295 outside 1..67108864: ERR_INTEGRITY"},
|
|
|
{"hex":"444b43310300000d04000000a12e2f13","result":"ERR_INVALID_FLAGS","text":"capsule: flags 0x0, reserved 0x000d: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4331010000000400000000000079","result":"ERR_INTEGRITY","text":"capsule: PUBLIC_HEADER_LEN 67108864 outside 1..1048576: ERR_INTEGRITY"}
|
|
|
],
|
|
|
"split": [
|
|
|
{"cut":0,"fixture":"empty_payload","result":"ERR_INVALID_MAGIC","step":1,"text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"cut":138,"fixture":"empty_payload","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":783,"edits":[[12,4,"03ffffff"]],"fixture":"empty_payload","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":15,"fixture":"format2_empty_payload","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":1051,"fixture":"format2_empty_payload","result":"ok","step":0},
|
|
|
{"cut":0,"fixture":"format2_time_and_key_portable","result":"ERR_INVALID_MAGIC","step":1,"text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"cut":138,"fixture":"format2_time_and_key_portable","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":2721,"edits":[[12,4,"03ffffff"]],"fixture":"format2_time_and_key_portable","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":15,"fixture":"format2_time_and_key_recipients","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":2721,"fixture":"format2_time_and_key_recipients","result":"ok","step":0},
|
|
|
{"cut":0,"fixture":"format2_time_and_key_sixteen","result":"ERR_INVALID_MAGIC","step":1,"text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"cut":138,"fixture":"format2_time_and_key_sixteen","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":2721,"edits":[[12,4,"03ffffff"]],"fixture":"format2_time_and_key_sixteen","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":15,"fixture":"format2_time_only","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":80683,"fixture":"format2_time_only","result":"ok","step":0},
|
|
|
{"cut":0,"fixture":"format2_time_only_bloque256","result":"ERR_INVALID_MAGIC","step":1,"text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"cut":138,"fixture":"format2_time_only_bloque256","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":78891,"edits":[[12,4,"03ffffff"]],"fixture":"format2_time_only_bloque256","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":15,"fixture":"format2_time_only_extensions","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":1125,"fixture":"format2_time_only_extensions","result":"ok","step":0},
|
|
|
{"cut":0,"fixture":"format3_area_1024","result":"ERR_INVALID_MAGIC","step":1,"text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"cut":138,"fixture":"format3_area_1024","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":2075,"edits":[[12,4,"03ffffff"]],"fixture":"format3_area_1024","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":15,"fixture":"format3_bloque256","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":21531,"fixture":"format3_bloque256","result":"ok","step":0},
|
|
|
{"cut":0,"fixture":"format3_comment_only","result":"ERR_INVALID_MAGIC","step":1,"text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"cut":138,"fixture":"format3_comment_only","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":1563,"edits":[[12,4,"03ffffff"]],"fixture":"format3_comment_only","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":15,"fixture":"format3_note","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":35659,"fixture":"format3_note","result":"ok","step":0},
|
|
|
{"cut":0,"fixture":"format3_seal_unsupported","result":"ERR_INVALID_MAGIC","step":1,"text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"cut":138,"fixture":"format3_seal_unsupported","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":1563,"edits":[[12,4,"03ffffff"]],"fixture":"format3_seal_unsupported","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":15,"fixture":"format3_sealed","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":35611,"fixture":"format3_sealed","result":"ok","step":0},
|
|
|
{"cut":0,"fixture":"format3_security_v2","result":"ERR_INVALID_MAGIC","step":1,"text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"cut":138,"fixture":"format3_security_v2","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":1563,"edits":[[12,4,"03ffffff"]],"fixture":"format3_security_v2","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":15,"fixture":"format3_signature_unsupported","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":1563,"fixture":"format3_signature_unsupported","result":"ok","step":0},
|
|
|
{"cut":0,"fixture":"format3_signed","result":"ERR_INVALID_MAGIC","step":1,"text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"cut":138,"fixture":"format3_signed","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":35611,"edits":[[12,4,"03ffffff"]],"fixture":"format3_signed","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":15,"fixture":"format3_signed_cms","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":35611,"fixture":"format3_signed_cms","result":"ok","step":0},
|
|
|
{"cut":0,"fixture":"format3_single","result":"ERR_INVALID_MAGIC","step":1,"text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"cut":138,"fixture":"format3_single","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":43,"fixture":"format3_single","result":"ERR_INTEGRITY","step":3,"text":"capsule: truncated PUBLIC_HEADER: ERR_INTEGRITY"},
|
|
|
{"cut":1563,"edits":[[4,1,"07"]],"fixture":"format3_single","result":"ERR_UNSUPPORTED_VERSION","step":2,"text":"capsule: framing version 7: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"cut":136,"fixture":"format3_time_and_key_portable","result":"ERR_INTEGRITY","step":3,"text":"capsule: truncated PUBLIC_HEADER: ERR_INTEGRITY"},
|
|
|
{"cut":3233,"edits":[[8,4,"000fffff"]],"fixture":"format3_time_and_key_portable","result":"ERR_INTEGRITY","step":3,"text":"capsule: truncated PUBLIC_HEADER: ERR_INTEGRITY"},
|
|
|
{"cut":4,"fixture":"format3_tree","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":595,"fixture":"format3_tree","result":"ERR_INTEGRITY","step":6,"text":"capsule: PAYLOAD_AGE: agewrap: not an age v1 header: malformed, truncated or beyond the parser limits: ERR_INTEGRITY"},
|
|
|
{"cut":86827,"edits":[[4,1,"07"]],"fixture":"format3_tree","result":"ERR_UNSUPPORTED_VERSION","step":2,"text":"capsule: framing version 7: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"cut":136,"fixture":"format3_unsigned","result":"ERR_INTEGRITY","step":3,"text":"capsule: truncated PUBLIC_HEADER: ERR_INTEGRITY"},
|
|
|
{"cut":35611,"edits":[[8,4,"000fffff"]],"fixture":"format3_unsigned","result":"ERR_INTEGRITY","step":3,"text":"capsule: truncated PUBLIC_HEADER: ERR_INTEGRITY"},
|
|
|
{"cut":4,"fixture":"time_and_key_portable","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":783,"fixture":"time_and_key_portable","result":"ERR_INTEGRITY","step":6,"text":"capsule: PAYLOAD_AGE: agewrap: not an age v1 header: malformed, truncated or beyond the parser limits: ERR_INTEGRITY"},
|
|
|
{"cut":1029,"edits":[[4,1,"07"]],"fixture":"time_and_key_portable","result":"ERR_UNSUPPORTED_VERSION","step":2,"text":"capsule: framing version 7: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"cut":136,"fixture":"time_and_key_recipients","result":"ERR_INTEGRITY","step":3,"text":"capsule: truncated PUBLIC_HEADER: ERR_INTEGRITY"},
|
|
|
{"cut":1220,"edits":[[8,4,"000fffff"]],"fixture":"time_and_key_recipients","result":"ERR_INTEGRITY","step":3,"text":"capsule: truncated PUBLIC_HEADER: ERR_INTEGRITY"},
|
|
|
{"cut":4,"fixture":"time_only","result":"ERR_INTEGRITY","step":1,"text":"capsule: truncated prelude: ERR_INTEGRITY"},
|
|
|
{"cut":583,"fixture":"time_only","result":"ERR_INTEGRITY","step":6,"text":"capsule: PAYLOAD_AGE: agewrap: not an age v1 header: malformed, truncated or beyond the parser limits: ERR_INTEGRITY"},
|
|
|
{"cut":108,"fixture":"time_only","result":"ERR_INTEGRITY","step":3,"text":"capsule: truncated PUBLIC_HEADER: ERR_INTEGRITY"},
|
|
|
{"cut":0,"fixture":"time_only_extensions","result":"ERR_INVALID_MAGIC","step":1,"text":"capsule: ERR_INVALID_MAGIC"},
|
|
|
{"cut":176,"fixture":"time_only_extensions","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"},
|
|
|
{"cut":891,"edits":[[12,4,"03ffffff"]],"fixture":"time_only_extensions","result":"ERR_INTEGRITY","step":5,"text":"capsule: truncated SEALED_CONTROL: ERR_INTEGRITY"}
|
|
|
],
|
|
|
"dkk": [
|
|
|
{"capsule_digest":"600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","capsule_id":"fe68d3b3bb59db0c14b7ef57d8d6cb5e","credential_id":"e3c7be83cbf1fbd6b115c96411b3bd01","critical":[],"hex":"444b4b31010000000000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bb59db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c365780106a1005820600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","material":"9c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c3657801","noncritical":[],"result":"ok","type":"x25519"},
|
|
|
{"hex":"444b4b","result":"ERR_INVALID_MAGIC","text":"accesskey: ERR_INVALID_MAGIC"},
|
|
|
{"hex":"444b4b31010100000000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bb59db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c365780106a1005820600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b31010001000000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bb59db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c365780106a1005820600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x0, reserved 0x100: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b31010000010000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bb59db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c365780106a1005820600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x0, reserved 0x001: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b31019500000000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bb59db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c365780106a1005820600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x95, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"574b4b31010000000000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bb59db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c365780106a1005820600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","result":"ERR_INVALID_MAGIC","text":"accesskey: ERR_INVALID_MAGIC"},
|
|
|
{"hex":"444b4b41010000000000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bb59db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c365780106a1005820600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","result":"ERR_INVALID_MAGIC","text":"accesskey: ERR_INVALID_MAGIC"},
|
|
|
{"hex":"444b4b31030000000000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bb59db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c365780106a1005820600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","result":"ERR_UNSUPPORTED_VERSION","text":"accesskey: framing version 3: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"784b4b31010000000000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bb59db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c365780106a1005820600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","result":"ERR_INVALID_MAGIC","text":"accesskey: ERR_INVALID_MAGIC"},
|
|
|
{"hex":"444b4b31010000000000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bb59db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0","result":"ERR_INTEGRITY","text":"accesskey: truncated body: ERR_INTEGRITY"},
|
|
|
{"hex":"444b4b31010000eb0000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bb59db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c365780106a1005820600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x0, reserved 0x0eb: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b31010000000000008ca70073646174656b6579732d6163636573732d6b657901010250e3c7be83cbf1fbd6b115c96411b3bd010350fe68d3b3bbe3db0c14b7ef57d8d6cb5e04667832353531390558209c09aeda759a8664a98120435fe0f6bf850000ac5ef0f9853ff46144c365780106a1005864600892659fe4890223e895876275f656995d170fda42b07fb2bec0ca51ce4b43","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: key 6: capsule_digest: codec: offset 108: truncated input: a byte string of 100 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"444b4b31010000000000002ea70073646174656b6579732d6163636573732d6b65790101025093cedf68421710e83908ec683b1044360350ca3e","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: key 3: codec: offset 44: truncated input: a byte string of 16 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"444b4b31010000000000008da70073646174656b6579732d6163636573738b6b65790101025093cedf68421710e83908ec683b1044360350ca3e8bfcae3ee19717fe3129ec9830b60466783235353139055820272884826b037b4bc98cfe4d578388b307b6da906ff8704e810f975111dd3cbfda06a10058201a44fd8708c92e2e0a10cfcb1d864a71331ea9af25d97e1a42e969dc898959e3","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: codec: offset 2: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"444b4b31010000000000006da70073646174656b6579732d6163636573732d6b657901010250bdb483fba42daf0b409f44d23033f362035029737cb54ad5310734ecf20720c217046678323535313905582042e50b6ae3b2f00b79f08609f7fe11fba1256c54c6faa0c9ec9258b5f6f4c05906a1005820680d","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: codec: offset 60: a text string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"444b4b310100000000000020a70073816174656b6579732d6163636573732d6b6579010c02503955e944a3c6","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: codec: offset 2: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"444b4b310100000000000049a70073646174656b6579732d6163636573732d6b6579010102503955e944a3c60cfa1fd6485e9693c77d0350448e134a13457c319cab7fceaf7ffa1f04667832353531390558203d5e","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: key 5: codec: offset 71: truncated input: a byte string of 32 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"444b4b3101000000000000b0a80073646174656b6579732d6163636573732d6b6579010102503955e944a3c60cfa1fd6485e9693c77d0350448e134a13457c319cab7fceaf7ffa1f046678323535313905a9203d5e4d51f21236ecff40d89c0adcf9aa325a24b91b46fd9d1afa482f54b2d2c606a10058202e97878078bae6358037a9c264f379a3cbe839f767d69836b0343f35657b29720881a300746f72672e6578616d706c652e64656c69763d727901010247a1006468616e64","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: key 5: codec: offset 69: a map where a byte string was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"444b4b31010000000000008da70073646174656b6579732d6163639a6573732d6b657901010250b89292aedf6d05d584cec9a871ce87350350c75dfc8e9c576d1369910664df93693a04667832ae35313905582042d6d897097fd5af2772e058db17920afe1390e2856139bc2f800232564dd7ac06a100582069ac110380f5d768b5b6afaa157a50ed17d8ceccfbd4604ffa5b6da38539b635","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: codec: offset 2: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"444b4b31010000000000008c5d0073646174656b6579732d6163636573732d6b657901010250b89292aedf6d05d584cec9a871ce87350350c75dfc8e9c576d1369910664df93693a046678323535313905582042d6d897097fd5af2772e058db17920afe1390e2856139bc2f800294564dd7ac06a100582069ac110380f5d768b5b6afaa157a50ed17d8ceccfbd4604ffa5b6da38539b635","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: codec: offset 0: reserved additional information (initial byte 0x5d): ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"444b4b310100000000000069a60073646174656b6579732d6163636573732d6b65790101025093d4b16c99c225f1374ab9e0f67a264904667832353531390782a20067782e792d7a5f310100a200617a0101055820b7bf3f84a478d290168852e18ca9851ac76ddf5d9a5b6d9463ab600daca481b4","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: codec: offset 70: map key 5 after key 7: keys must be strictly ascending: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"444b4b31010000000000005ea70073646174656b6579732d6163636573732d6b6579025096a01de677a7926f197297abc82afb7501010350fac74daa1ce567575b8be0ddefbe53cb046678323535313905686d6174657269616c0781a300616201000246e7803e80d6d8","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: codec: offset 23: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_digest":"0cbffd0ebc3a46f498aac653a420ec675db338bb140c17f53f518041e3fc02bb","capsule_id":"d623392a0e1168c3d88cf31a8d245a6a","credential_id":"471e83e123a1607fffc54ea211f1e8bb","critical":[],"hex":"444b4b31010000000000008ca70073646174656b6579732d6163636573732d6b657901010250471e83e123a1607fffc54ea211f1e8bb0350d623392a0e1168c3d88cf31a8d245a6a0466783235353139055820ac1eabe6f883c9d510bfc6d912845d16521e905ee51872471c128e409404073806a10058200cbffd0ebc3a46f498aac653a420ec675db338bb140c17f53f518041e3fc02bb","material":"ac1eabe6f883c9d510bfc6d912845d16521e905ee51872471c128e4094040738","noncritical":[],"result":"ok","type":"x25519"},
|
|
|
{"capsule_id":"9805b265cef441ec51b833683a3cf9ce","credential_id":"b9474583db6c7c94d11d9ef31e4ed473","critical":[],"hex":"444b4b310100000000000067a60073646174656b6579732d6163636573732d6b657901010250b9474583db6c7c94d11d9ef31e4ed47303509805b265cef441ec51b833683a3cf9ce04667832353531390558209dbbe0e276cea5a075376eb0ebc917d5c86923998d373d7d2a222b4b08dc3782","material":"9dbbe0e276cea5a075376eb0ebc917d5c86923998d373d7d2a222b4b08dc3782","noncritical":[],"result":"ok","type":"x25519"},
|
|
|
{"capsule_id":"5a704622fa339086a2e1163d8a932c42","credential_id":"2e6cb234af3456000f9bd6ac214d5651","critical":[],"hex":"444b4b310100000000000067a60073646174656b6579732d6163636573732d6b6579010102502e6cb234af3456000f9bd6ac214d565103505a704622fa339086a2e1163d8a932c4204667832353531390558209a17350baaf428ece78c1033fa00ebd7125d8c63da0cdbe365d131be4c67a488","material":"9a17350baaf428ece78c1033fa00ebd7125d8c63da0cdbe365d131be4c67a488","noncritical":[],"result":"ok","type":"x25519"},
|
|
|
{"capsule_id":"11787f4503ab64780182e09f9ef1ab19","credential_id":"9fa88c5ce75564e6eeec683798055221","critical":[["datekeys.note",0,"d0"],["x.y-z_1",0,null]],"hex":"444b4b31010000000000008aa70073646174656b6579732d6163636573732d6b6579010102509fa88c5ce75564e6eeec683798055221035011787f4503ab64780182e09f9ef1ab190466783235353139055820b367245c2fa7f804e796a7c4d389114a164695b1757f9ee8a3899aa9bf891d3d0782a3006d646174656b6579732e6e6f746501000241d0a20067782e792d7a5f310100","material":"b367245c2fa7f804e796a7c4d389114a164695b1757f9ee8a3899aa9bf891d3d","noncritical":[],"result":"ok","type":"x25519"},
|
|
|
{"hex":"444b4b310100000000000087a90073646174656b6579732d6163636573732d6b657901010250385d66c3abf68b417ba9e8cc843abb8d035039ea8baaa25e96ff12cd65b8613fb6c50466783235353139054006a1005820660fccc021747ec7d45ff45760fee0d8210ae4f73de749c52b48549c66664fe50782a2006d646174656b6579732e6e6f74650100a20063efbda10101","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: codec: offset 135: truncated input: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_digest":"814e3d9d028c6254655691510c4518c71d0cadd4e582d3a9bab7940a0f0e2160","capsule_id":"8a637fef690beaf330fef0659d3140a9","credential_id":"bf45e24d07d83ed61f8e14685321be4b","critical":[],"hex":"444b4b31010000000000008ca70073646174656b6579732d6163636573732d6b657901010250bf45e24d07d83ed61f8e14685321be4b03508a637fef690beaf330fef0659d3140a904667832353531390558209274b61db30e76338e9131cacd41b9a12de6b87c79ee35cacb6d6d78b327475306a1005820814e3d9d028c6254655691510c4518c71d0cadd4e582d3a9bab7940a0f0e2160","material":"9274b61db30e76338e9131cacd41b9a12de6b87c79ee35cacb6d6d78b3274753","noncritical":[],"result":"ok","type":"x25519"},
|
|
|
{"capsule_digest":"a04ccbc844ed4ade8c604224eaf12e2ae2cad6605bc51724262c2f3156f9083b","capsule_id":"881b41c964492d4dd9cca1c98a077314","credential_id":"832a4237374e7bb31d8384b97e9a20bd","critical":[],"hex":"444b4b31010000000000008ca70073646174656b6579732d6163636573732d6b657901010250832a4237374e7bb31d8384b97e9a20bd0350881b41c964492d4dd9cca1c98a0773140466783235353139055820dc61115b104d08349b333bd900c84fcb2f5660888dc333aef7307ebd48ebed3c06a1005820a04ccbc844ed4ade8c604224eaf12e2ae2cad6605bc51724262c2f3156f9083b","material":"dc61115b104d08349b333bd900c84fcb2f5660888dc333aef7307ebd48ebed3c","noncritical":[],"result":"ok","type":"x25519"},
|
|
|
{"hex":"444b4b31010000000000007ca70073646174656b6579732d6163636573732d6b657901010250c078feec03aee290a30966df95a1858a04667832353531390558204ef506285fe28783096ec6a18736e886e66980ba459c12f6c1e638b8ff5dba500782a2006261000100a200616201000882a3006161010202433ef3d5a300616201010243f87bf3","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: key 3 is missing: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"7ab8e70d89a5e53326a27952502c609f","credential_id":"1ab48c8c6f16a41bc71ad9134b94fcff","critical":[],"hex":"444b4b310100000000000067a60073646174656b6579732d6163636573732d6b6579010102501ab48c8c6f16a41bc71ad9134b94fcff03507ab8e70d89a5e53326a27952502c609f046678323535313905582074b3d88aabedc85d822b5f2590948e705f5c5563ee72f01700369d4132d65a05","material":"74b3d88aabedc85d822b5f2590948e705f5c5563ee72f01700369d4132d65a05","noncritical":[],"result":"ok","type":"x25519"},
|
|
|
{"hex":"444b4b310100000000000091a7006001010250bd29d63561456f7cfbfd9e35976fe3d603507091943a624c866f4c94c1641370de8c046678323535313905582062c48a8c26e31f17383405535eab60ad951976cf48b31842d80761b9a5c838b90883a3006d6f72672e6578616d706c652e61011affffffff0243e3c7eaa20062c3a9011affffffffa20070efbbbf6f72672e6578616d706c652e610107","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: codec: type \"\", want \"datekeys-access-key\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"a9625466ccdcfe688e9b8e260f4958f6","credential_id":"f67168149315daaa50c9be574ba5ff9c","critical":[["a",4294967295,"96aab7f9"],["a\u0000",1,null]],"hex":"444b4b310100000000000080a70073646174656b6579732d6163636573732d6b657901010250f67168149315daaa50c9be574ba5ff9c0350a9625466ccdcfe688e9b8e260f4958f60466783235353139055820054908ad58995f016f74d7f11998c0015c5f9e5504bb08f0784f090878fc50bc0782a3006161011affffffff024496aab7f9a2006261000101","material":"054908ad58995f016f74d7f11998c0015c5f9e5504bb08f0784f090878fc50bc","noncritical":[],"result":"ok","type":"x25519"},
|
|
|
{"capsule_id":"94dd3041063a08606018799442457731","credential_id":"7f7900998a1b8d9c46266cd28786f8cf","critical":[],"hex":"444b4b31010000000000007ba70073646174656b6579732d6163636573732d6b6579010102507f7900998a1b8d9c46266cd28786f8cf035094dd3041063a086060187994424577310466783235353139055820b38719b2eaf0c0eb040f644630d51ec9619b979b7df4f1bbe24416b313a707c00881a2006d646174656b6579732e6e6f74650102","material":"b38719b2eaf0c0eb040f644630d51ec9619b979b7df4f1bbe24416b313a707c0","noncritical":[["datekeys.note",2,null]],"result":"ok","type":"x25519"},
|
|
|
{"capsule_digest":"de275cdaf8affca199be86e5f7553b854aecbb7c3002237f51cea2e1b872488c","capsule_id":"a4573c34f280ca028e0ae7e6aed52902","credential_id":"96e955f238f1b7d019d2fa57d3fea67d","critical":[["org.example.label",0,"7a0d234632c7"],["𐀀",0,"22fba6"]],"hex":"444b4b3101000000000000cda90073646174656b6579732d6163636573732d6b65790101025096e955f238f1b7d019d2fa57d3fea67d0350a4573c34f280ca028e0ae7e6aed5290204667832353531390558206dff0d8f9f7d6aeee18c7f8004f94726e5604e7dc953a1fa0560e09630b8fcc006a1005820de275cdaf8affca199be86e5f7553b854aecbb7c3002237f51cea2e1b872488c0782a300716f72672e6578616d706c652e6c6162656c010002467a0d234632c7a30064f09080800100024322fba60882a2006161011affffffffa20062c3a90107","material":"6dff0d8f9f7d6aeee18c7f8004f94726e5604e7dc953a1fa0560e09630b8fcc0","noncritical":[["a",4294967295,null],["é",7,null]],"result":"ok","type":"x25519"},
|
|
|
{"hex":"444b4b310100000000000028a60073646174656b6579732d6163636573732d6b6579010102507ec83d27d3758181cba4f2874af9","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: key 2: codec: offset 26: truncated input: a byte string of 16 bytes: ERR_NON_CANONICAL_CBOR"}
|
|
|
],
|
|
|
"dkk_precedence": [
|
|
|
{"hex":"444b4b31010000000000005ea6006a646174656b6579636170010102500101010101010101010101010101010103500202020202020202020202020202020204667832353531390558200303030303030303030303030303030303030303030303030303030303030303","name":"the type tag of PUBLIC_HEADER","result":"ERR_NON_CANONICAL_CBOR","text":"accesskey: codec: type \"datekeycap\", want \"datekeys-access-key\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"444b4b310101000000000045a6006a646174656b65796361700101025001010101010101010101010101010101035002020202020202020202020202020202046678323535313905686d6174657269616c","name":"the type tag of PUBLIC_HEADER, and access_material as a text string, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000060a7006a646174656b65796361700101025001010101010101010101010101010101035002020202020202020202020202020202046678323535313905582003030303030303030303030303030303030303030303030303030303030303031400","name":"the type tag of PUBLIC_HEADER, and an unknown key, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000069a60073646174656b6579732d6163636573732d6b6579010202500101010101010101010101010101010103500202020202020202020202020202020204686d6c6b656d3736380558200303030303030303030303030303030303030303030303030303030303030303","name":"schema version 2, and access_type mlkem768, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000077a80073646174656b6579732d6163636573732d6b65790102025001010101010101010101010101010101035002020202020202020202020202020202046678323535313905582003030303030303030303030303030303030303030303030303030303030303030781a200616101010881a20061610101","name":"schema version 2, and an extension_id in both arrays, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000067a60073646174656b6579732d6163636573732d6b6579025001010101010101010101010101010101010203500202020202020202020202020202020204667832353531390558200303030303030303030303030303030303030303030303030303030303030303","name":"schema version 2, and keys 1 and 2 swapped, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000068a70073646174656b6579732d6163636573732d6b65790101024f0101010101010101010101010101010350020202020202020202020202020202020466783235353139055820030303030303030303030303030303030303030303030303030303030303030306a0","name":"a credential_id of 15 bytes, and an empty verification_metadata, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000067a60073646174656b6579732d6163636573732d6b65790101024f0101010101010101010101010101010350020202020202020202020202020202020466783235353139055820030303030303030303030303030303030303030303030303030303030303030300","name":"a credential_id of 15 bytes, and a trailing byte, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000050a60073646174656b6579732d6163636573732d6b6579010102500101010101010101010101010101010103500202020202020202020202020202020204686d6c6b656d37363805686d6174657269616c","name":"access_type mlkem768, and access_material as a text string, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b31010100000000006ba70073646174656b6579732d6163636573732d6b6579010102500101010101010101010101010101010103500202020202020202020202020202020204686d6c6b656d37363805582003030303030303030303030303030303030303030303030303030303030303031400","name":"access_type mlkem768, and an unknown key, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000048a60073646174656b6579732d6163636573732d6b65790101025001010101010101010101010101010101035002020202020202020202020202020202040105686d6174657269616c","name":"access_type as an unsigned integer, and access_material as a text string, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000063a70073646174656b6579732d6163636573732d6b65790101025001010101010101010101010101010101035002020202020202020202020202020202040105582003030303030303030303030303030303030303030303030303030303030303031400","name":"access_type as an unsigned integer, and an unknown key, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000068a70073646174656b6579732d6163636573732d6b65790101025001010101010101010101010101010101035002020202020202020202020202020202046678323535313905581f0303030303030303030303030303030303030303030303030303030303030306a0","name":"access_material of 31 bytes, and an empty verification_metadata, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000067a60073646174656b6579732d6163636573732d6b65790101025001010101010101010101010101010101035002020202020202020202020202020202046678323535313905581f0303030303030303030303030303030303030303030303030303030303030300","name":"access_material of 31 bytes, and a trailing byte, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b31010100000000005ea80073646174656b6579732d6163636573732d6b65790101025001010101010101010101010101010101035002020202020202020202020202020202046678323535313905686d6174657269616c0781a200616101010881a20061610101","name":"access_material as a text string, and an extension_id in both arrays, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b31010100000000004ea60073646174656b6579732d6163636573732d6b65790250010101010101010101010101010101010101035002020202020202020202020202020202046678323535313905686d6174657269616c","name":"access_material as a text string, and keys 1 and 2 swapped, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b31010100000000006ba80073646174656b6579732d6163636573732d6b657901010250010101010101010101010101010101010350020202020202020202020202020202020466783235353139055820030303030303030303030303030303030303030303030303030303030303030306a01400","name":"an empty verification_metadata, and an unknown key, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b31010100000000009da80073646174656b6579732d6163636573732d6b657901010250010101010101010101010101010101010350020202020202020202020202020202020466783235353139055820030303030303030303030303030303030303030303030303030303030303030306a100581f000000000000000000000000000000000000000000000000000000000000000781a2006b6f72672e756e6b6e6f776e0101","name":"a capsule_digest of 31 bytes, and an unknown critical extension, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000077a80073646174656b6579732d6163636573732d6b65790101025001010101010101010101010101010101035002020202020202020202020202020202046678323535313905582003030303030303030303030303030303030303030303030303030303030303030781a200616101010881a20061610101","name":"an extension_id in both arrays, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000077a80073646174656b6579732d6163636573732d6b65790250010101010101010101010101010101010101035002020202020202020202020202020202046678323535313905582003030303030303030303030303030303030303030303030303030303030303030781a200616101010881a20061610101","name":"an extension_id in both arrays, and keys 1 and 2 swapped, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000079a70073646174656b6579732d6163636573732d6b65790250010101010101010101010101010101010101035002020202020202020202020202020202046678323535313905582003030303030303030303030303030303030303030303030303030303030303030781a2006b6f72672e756e6b6e6f776e0101","name":"an unknown critical extension, and keys 1 and 2 swapped, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000069a70073646174656b6579732d6163636573732d6b65790101025001010101010101010101010101010101035002020202020202020202020202020202046678323535313905582003030303030303030303030303030303030303030303030303030303030303031400","name":"an unknown key, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"},
|
|
|
{"hex":"444b4b310101000000000068a60073646174656b6579732d6163636573732d6b657902500101010101010101010101010101010101010350020202020202020202020202020202020466783235353139055820030303030303030303030303030303030303030303030303030303030303030300","name":"a trailing byte, and keys 1 and 2 swapped, and FLAGS 1","result":"ERR_INVALID_FLAGS","text":"accesskey: flags 0x1, reserved 0x000: ERR_INVALID_FLAGS"}
|
|
|
]
|
|
|
}
|
|
|
''';
|
|
|
|
|
|
/// Part of test/vectors/formats_header.json.
|
|
|
const formatsHeaderJson = r'''
|
|
|
{
|
|
|
"spec": "0.15",
|
|
|
"generator": "tool/formats_go_vectors.go",
|
|
|
"description": "PUBLIC_HEADER (capsule.DecodeHeader) of the fixtures, edited, and built field by field.",
|
|
|
"header": [
|
|
|
{"capsule_id":"ab10174561a9a19a6d9dc9ab1ef59c66","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMX0","hex":"a5006a646174656b657963617001010250ab10174561a9a19a6d9dc9ab1ef59c66037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d58300400","noncritical":[],"policy":"time_only","result":"ok"},
|
|
|
{"hex":"a5006a646174656b657963617001010250ab10174561a9a19a6d9dc1ab1ef59c66037819646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d58300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 61: a byte string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006b6a646174656b6579636170010173501a6c88f0fa7408f649cf64b929cb9289037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d58300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: type \"jdatekeycap\", want \"datekeycap\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b6579636170010102501a6c88f0fa7408f649cf64b929cb9289037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 36: truncated input: a text string of 83 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250fe68d3b3bb59db0c14b7ef57d8d6cb5e03785364e8315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c104a79623356755a4349364d5441774d48300401","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250fe68d3b3bb59db0c14b7ef57d8d6cb5e037853ab6b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d545d77","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 36: truncated input: a text string of 83 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250ca3e8bfcae3ee19717fe3129ec9830b6037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a725f6a6f695a4746305a57746c65584d3663585670593274755a585136646a3d694c434a79623356755a4349364d5441774d58300401","result":"ERR_DATEKEY_INVALID","text":"capsule: PUBLIC_HEADER: datekey: payload is not Base64URL: ERR_DATEKEY_INVALID"},
|
|
|
{"hex":"a5006a646174656b657963617001010250ca3e8bfcae3ee19717fe3129ec9830b6037853646b315f65794a325a584a7a61573975496a6f784c434a755a58520e3362334a72496a6f695a4746305a57746c65584d3663585670593274755a5851646a45694c434a79623356755a4349364d5441774d58300401","result":"ERR_DATEKEY_INVALID","text":"capsule: PUBLIC_HEADER: datekey: payload is not Base64URL: ERR_DATEKEY_INVALID"},
|
|
|
{"hex":"a5006a646174656b6579636170010102500e53b85a2f9201e2b3368ae122540da7037853646b315f65794a325a584a7a61573975496a6f784c434a75","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 36: truncated input: a text string of 83 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b6579636170010102500e53b85a2f9201e2b3368ae122540da7037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a47465a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d6a41774d48300401","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 119: map key 1 after key 3: keys must be strictly ascending: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250c8cfc53de7c879da916edddf71f3bddd037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585170646a45694c434a79623356755a4349364d5441774d48300400","result":"ERR_DATEKEY_INVALID","text":"capsule: PUBLIC_HEADER: datekey: invalid network datekeys:quicknet)v1: ERR_DATEKEY_INVALID"},
|
|
|
{"hex":"a5006a646174656b657963617001010250c8ecc53d45c879da916edddf71f3bddd037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 36: truncated input: a text string of 83 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b65796361700101025010157a2ba032f78e23d8035e368345c8037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c2265584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 119: a negative integer (initial byte 0x30) is outside the CBOR profile: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b65796361700101025010157a2ba032f78e23d8035e368345c8037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a4583694c434a79623356755a4349364d5441774d48300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b6579636170010102503ab2c06d482609a9c7ae92f672599883037853646b315f65794a325a584a7a61b63975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d6a41774d483004000681a300366f72672e6578616d706c652e6c6162656c0101024c7075626c696320e36c6162656c","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"f85bb40402b3348b4d1918b8aebde114","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMH0","hex":"a5006a646174656b657963617001010250f85bb40402b3348b4d1918b8aebde114037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300400","noncritical":[],"policy":"time_only","result":"ok"},
|
|
|
{"hex":"a5007564617465ec657963617001010250f85bb40402b3348b4d1918b8aebde114037853646b315f65794a325a584a7a61573975496a6f784c43755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 2: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b6579636170010102500e8e97dd76a6d6e77583fcf14a73849d037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a793c623356755a4349364d5441774d48300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 119: a negative integer (initial byte 0x30) is outside the CBOR profile: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b6579636170010102500e8e97dd76a6d6e77583fcf14a73849d2a7853646b315f65794a325a584a7a","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 33: a negative integer (initial byte 0x2a) is outside the CBOR profile: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250d4d92a78eb71cb4616bf193a8b66572703a053646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a796233755a4349364d5441774e48300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: a map where a text string was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174236b657963617001010250d4d92a78eb71a94616bf193a8b665727037853646b315f65794a325a584a7a61573975496a6f784c43a5755a585262334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774e48300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: type \"dat#keycap\", want \"datekeycap\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b6579636170010102501999a39e1beae60b2fc9b157d11dab5a037853646b315f651c4a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d483004000681a3006d646174656b6579732e6e6f74650101e758194361727461732064656c207669616a652061204c6973626f61","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 6: extension: codec: offset 141: a float or simple value (initial byte 0xe7) is outside the CBOR profile: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a60048646174656b6579636170010102501999a39e1beae6172fc9b157d11dab","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 2: a byte string where a text string was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b6579636170010102508e2f648c77bd659a89ca95f96f213780037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362331372496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d6a41774d48300400","result":"ERR_DATEKEY_INVALID","text":"capsule: PUBLIC_HEADER: datekey: payload is not Base64URL: ERR_DATEKEY_INVALID"},
|
|
|
{"hex":"a5006a646174656b6579636170010102508e2f648c77bd659a89ca95f96f213780037853646b315f65794a325a584a7a61573975496a6f784c424a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274705a585136646a45694c434a79623356755a4349364d6a41774d48300400","result":"ERR_DATEKEY_INVALID","text":"capsule: PUBLIC_HEADER: datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"hex":"a5006a646174656b657963617001010250b32e5bb6c74cda4e014c65e3d2f43a69037853646b315f65794a325a584a7a61573975496a784c434a755a58523362334a72496a6f695a4746305a57746c6558b94d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250b3d25bb6c74cda4e014c65e3d2f43a69037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d7448300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 119: a negative integer (initial byte 0x30) is outside the CBOR profile: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b65796361700101025059cebdfca727d22d1eb5ae0b8828f438037853646b315f65794a325a584a7a6157397b75496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a43493c4d5441774d48300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 119: a negative integer (initial byte 0x30) is outside the CBOR profile: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b65796361700101025059ce66fca727d22d1eb5ae0b8828f438037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663595670593274755a585136646a45694c434a79623356755a4349364d5441774d48300400","result":"ERR_DATEKEY_INVALID","text":"capsule: PUBLIC_HEADER: datekey: payload is not valid UTF-8: ERR_DATEKEY_INVALID"},
|
|
|
{"hex":"a5006a646174656b65","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 1: truncated input: map of 5 entries: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"681476c1bfa81dd12fec810ee44fe7f7","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMH0","hex":"a5006a646174656b657963617001010250681476c1bfa81dd12fec810ee44fe7f7037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300400","noncritical":[],"policy":"time_only","result":"ok"},
|
|
|
{"hex":"a5006a646174656b657963617001010250681476c1bfa81dd12fec810ee44fe7f7037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364df541774d48300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250fb1b4917149f996c9c956199","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 2: codec: offset 17: truncated input: a byte string of 16 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250fb1b4917149f996c9c9561997593d37d037853646b315f6579b3325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 36: truncated input: a text string of 83 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250ff23599acbe9b0a742792dcb7cb1bc4c0378536428315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f69","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 36: truncated input: a text string of 83 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250ff23599acbe9b0a742792dcb7cb1bc4c037853646b315f6579","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 36: truncated input: a text string of 83 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b65796361700101025029737cb54ad5310734ecf20720c2d317037853646b315f65793c325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57cc746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300401","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"29737cb54ad5310734ecf24020c2d317","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMH0","hex":"a5006a646174656b65796361700101025029737cb54ad5310734ecf24020c2d317037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300401","noncritical":[],"policy":"time_and_key","result":"ok"},
|
|
|
{"hex":"a5006a646174656b6579636170010102500911","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 2: codec: offset 17: truncated input: a byte string of 16 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250091119676ec081409c666846153ba7eb037853646b315f65794a925a584a7a613975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 36: truncated input: a text string of 83 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b6579636170010102500cced8e8b035d6dd70f38823b407a96c037853646b31395f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646abc694c434a79623356755a4349364d5441774d48300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b6579636170010102500cced8e8","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 2: codec: offset 17: truncated input: a byte string of 16 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250448e134a13457c319cab69ceaf7ffa1f037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305ab857746c65584d3663585670593274755a745136646a45694c434a79623356755a4349364d5441774d48300401","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250448e134a13457c319cab7fceaf7ffa1f037853646b315f65794a325a584a7a61573975496a6f784c434a755a523362334a72496a6f695a474630e357746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300401","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250c75dfc8e9c576d1369910664df93693a037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d36635856705932745a585136646a45694c434a79623356755a4349364d5441774d58300401","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 119: map key 1 after key 3: keys must be strictly ascending: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"ad4d676812b134ff8a3de263f77018b4","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMH0","hex":"a5006a646174656b657963617001010250ad4d676812b134ff8a3de263f77018b4037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300400","noncritical":[],"policy":"time_only","result":"ok"},
|
|
|
{"hex":"a5006a646174656b657963617001010250ad4d676812b134ff8a3de263f77018b4037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4796305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b6579636170010102504286085c21ca34d1a71e649326a4a0f6037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a9b57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d6a41774d483004000681a300716f72672e6578616d706c652e6c6162656c012c01024c7075626c6963206c6162656c","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b6579636170010140504286085c21ca34d1a71e649326a4a0f6037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a584236646a45694c434a79623356755a4349364d6a41774d483004000681a300716f72672e6578616d706c652e6c6162656c0101024c7075626c6963206c6162656c","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 15: a byte string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a7006a646174656b657963617001010250cf3b0bcdbbd030f7bfcf7f54fd5418c70378e0646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f69595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595745694c434a79623356755a4349364d7a5a3904000581a3006161010102400684a3006d646174656b6579732e6e6f7465010202444db1151ba300716f72672e6578616d706c652e6c6162656c010202417aa300617a011affffffff0242f068a30064f0908080011affffffff0243cd2ddb","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 5: extension \"a\": data is present but empty; an extension without data omits key 2: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b657963617001010250bbca2034d4d2","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 2: codec: offset 17: truncated input: a byte string of 16 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"f2d99010d054f9aaf33bc8ec15cf377f","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6Mjc1Nzk0NzM1MzE3NjY1MH0","hex":"a6006a646174656b657963617001010250f2d99010d054f9aaf33bc8ec15cf377f037863646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d6a63314e7a6b304e7a4d314d7a45334e6a59314d483004000681a3006d646174656b6579732e6e6f74650100024524e1a8e1c0","noncritical":[["datekeys.note",0,"24e1a8e1c0"]],"policy":"time_only","result":"ok"},
|
|
|
{"capsule_id":"b0a4128de2fc9da8c96d442da754f63a","critical":[["a",7,"9aa0"],["org.example.label",2,"b02b224088c2"]],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSIsInJvdW5kIjo0Mzk1NjY3MzQ5NTUzNDE3fQ","hex":"a6006a646174656b657963617001010250b0a4128de2fc9da8c96d442da754f63a03784a646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f6959534973496e4a766457356b496a6f304d7a6b314e6a59334d7a51354e54557a4e444533665104010582a3006161010702429aa0a300716f72672e6578616d706c652e6c6162656c01020246b02b224088c2","noncritical":[],"policy":"time_and_key","result":"ok"},
|
|
|
{"capsule_id":"ae67717bb4e7a881c44baf7dd5a746d5","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoieC55X3otdzoxIiwicm91bmQiOjI1MjkxNzE5Mzk1NDQ1OH0","hex":"a5006a646174656b657963617001010250ae67717bb4e7a881c44baf7dd5a746d5037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f696543353558336f74647a6f7849697769636d3931626d51694f6a49314d6a6b784e7a45354d7a6b314e4451314f48300400","noncritical":[],"policy":"time_only","result":"ok"},
|
|
|
{"capsule_id":"1e13352a87e744aa1603a68810426bc5","critical":[["org.example.a",1,null],["。",7,"d2c320"]],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6NjY4ODQyMTJ9","hex":"a6006a646174656b6579636170010102501e13352a87e744aa1603a68810426bc5037858646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364e6a59344f4451794d544a3904000582a2006d6f72672e6578616d706c652e610101a30063efbda101070243d2c320","noncritical":[],"policy":"time_only","result":"ok"},
|
|
|
{"capsule_id":"64b0ec109dcc977be17a9e0c4eeb4068","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWEiLCJyb3VuZCI6MjMzNTQ1MzQ1ODE5NzU4Mn0","hex":"a6006a646174656b65796361700101025064b0ec109dcc977be17a9e0c4eeb40680378f3646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f69595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595745694c434a79623356755a4349364d6a4d7a4e5451314d7a51314f4445354e7a55344d6e3004010684a3006d646174656b6579732e6e6f746501010243021b8ba3006d6f72672e6578616d706c652e61010002444ed3a012a2006d6f72672e6578616d706c652e620101a30063efbda101000242f809","noncritical":[["datekeys.note",1,"021b8b"],["org.example.a",0,"4ed3a012"],["org.example.b",1,null],["。",0,"f809"]],"policy":"time_and_key","result":"ok"},
|
|
|
{"capsule_id":"f6740a9175aa3cee0598b0abcf4d2ca5","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoieC55X3otdzoxIiwicm91bmQiOjY2ODg0MjEyfQ","hex":"a5006a646174656b657963617001010250f6740a9175aa3cee0598b0abcf4d2ca503784a646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f696543353558336f74647a6f7849697769636d3931626d51694f6a59324f4467304d6a457966510400","noncritical":[],"policy":"time_only","result":"ok"},
|
|
|
{"capsule_id":"3f8349e412a502b3fa3aa6bafb38d7bc","critical":[["Z",1,null]],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MjI4MzQwMDgwMDI4NTA3Nn0","hex":"a6006a646174656b6579636170010102503f8349e412a502b3fa3aa6bafb38d7bc037863646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d6a49344d7a51774d4467774d4449344e5441334e6e3004000581a200615a0101","noncritical":[],"policy":"time_only","result":"ok"},
|
|
|
{"capsule_id":"c3a43c5e618776c4b9163d091af74873","critical":[["a\u0000",0,"a87ffa11"]],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MjU4MTI0OTIyMjQxMzc1Nn0","hex":"a6006a646174656b657963617001010250c3a43c5e618776c4b9163d091af74873037863646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d6a55344d5449304f5449794d6a51784d7a63314e6e3004000581a30062610001000244a87ffa11","noncritical":[],"policy":"time_only","result":"ok"},
|
|
|
{"capsule_id":"889a1643065d80d7f57cbcad61992ab3","critical":[["Z",2,"d9cf"],["é",0,"2b9f"]],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWEiLCJyb3VuZCI6NTE1MDg0ODg4NDE3NzF9","hex":"a7006a646174656b657963617001010250889a1643065d80d7f57cbcad61992ab30378f0646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f69595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595745694c434a79623356755a4349364e5445314d4467304f4467344e4445334e7a463904000582a300615a01020242d9cfa30062c3a9010002422b9f0684a3006162011affffffff0246360707fb40dca3006d6f72672e6578616d706c652e62011affffffff02423ea8a300617a01000242a429a20063efbda10102","noncritical":[["b",4294967295,"360707fb40dc"],["org.example.b",4294967295,"3ea8"],["z",0,"a429"],["。",2,null]],"policy":"time_only","result":"ok"},
|
|
|
{"capsule_id":"8ccf10d384b5907527bdab74e6e07b4c","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMCIsInJvdW5kIjozNn0","hex":"a5006a646174656b6579636170010102508ccf10d384b5907527bdab74e6e07b4c037837646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f694d434973496e4a766457356b496a6f7a4e6e300401","noncritical":[],"policy":"time_and_key","result":"ok"},
|
|
|
{"capsule_id":"172bdba2da2a01b7cc6dc5e1c70b76a1","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMCIsInJvdW5kIjo4MzkwMzE2NTgxMX0","hex":"a5006a646174656b657963617001010250172bdba2da2a01b7cc6dc5e1c70b76a1037843646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f694d434973496e4a766457356b496a6f344d7a6b774d7a45324e5467784d58300401","noncritical":[],"policy":"time_and_key","result":"ok"},
|
|
|
{"capsule_id":"9fc69fd204e93488711aea426af06a43","critical":[["ab",4294967295,null]],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWEiLCJyb3VuZCI6Mn0","hex":"a7006a646174656b6579636170010102509fc69fd204e93488711aea426af06a430378df646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f69595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595745694c434a79623356755a4349364d6e3004010581a200626162011affffffff0682a30062c3a90100024124a30070efbbbf6f72672e6578616d706c652e610107024483577b85","noncritical":[["é",0,"24"],["org.example.a",7,"83577b85"]],"policy":"time_and_key","result":"ok"},
|
|
|
{"hex":"a8006a646174656b6579636170010102508ea791e2c022cbde5ab42bcb929eba540378e0646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f69595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595745694c434a79623356755a4349364e444a3904010581a20064f090808001010681a30064f090808001010241010681a30064f09080800101024101","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 1: map of 8 entries, at most 7: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"36633d84281c6a2f4918d04bc1c7ea19","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoieC55X3otdzoxIiwicm91bmQiOjMwMTUyOTQwODc3ODkzMzF9","hex":"a6006a646174656b65796361700101025036633d84281c6a2f4918d04bc1c7ea19037854646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f696543353558336f74647a6f7849697769636d3931626d51694f6a4d774d5455794f5451774f4463334f446b7a4d7a463904010683a300615a010202455d3eed8769a300626100010702445b18c2eaa20067782e792d7a5f310101","noncritical":[["Z",2,"5d3eed8769"],["a\u0000",7,"5b18c2ea"],["x.y-z_1",1,null]],"policy":"time_and_key","result":"ok"},
|
|
|
{"capsule_id":"63b0c2c1c1de35213605dd0f26a7fa9a","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWEiLCJyb3VuZCI6ODk1NjIwOTMxMDI1MDI3fQ","hex":"a6006a646174656b65796361700101025063b0c2c1c1de35213605dd0f26a7fa9a0378f2646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f69595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595746685957466859574668595745694c434a79623356755a4349364f446b314e6a49774f544d784d4449314d444933665104010681a200617a0101","noncritical":[["z",1,null]],"policy":"time_and_key","result":"ok"},
|
|
|
{"capsule_id":"916b619ff399ac49e6949d5b6e63af4e","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSIsInJvdW5kIjo4MDgxNTU4NDcyOTE1OTM0fQ","hex":"a6006a646174656b657963617001010250916b619ff399ac49e6949d5b6e63af4e03784a646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f6959534973496e4a766457356b496a6f344d4467784e5455344e4463794f5445314f544d30665104000683a3006161011affffffff02444261b03ea3006d6f72672e6578616d706c652e62010202456ef76cb548a30062c3a901000245f090811ad0","noncritical":[["a",4294967295,"4261b03e"],["org.example.b",2,"6ef76cb548"],["é",0,"f090811ad0"]],"policy":"time_only","result":"ok"},
|
|
|
{"hex":"a6006a646174656b65796361700101025000a80d6ed67c7286a9c101b861ad6d36037837646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f694d434973496e4a766457356b496a6f794e483004000581a400616101010241010300","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 5: extension: codec: offset 96: map of 4 entries, at most 3: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a7006a646174656b6579636170010102502e20cd94c78179aa2681f58549d20af303784a646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f6959534973496e4a766457356b496a6f314f44557a4d7a6b7a4e4441334d7a41784d544933665104000581a3006161010102401b002000000000000000","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 5: extension \"a\": data is present but empty; an extension without data omits key 2: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b65796361700101025033991d1b7fb536e6649f4300931fad63037837646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f694d434973496e4a766457356b496a6f784e483004001b002000000000000000","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 9007199254740992 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"7da263ddf7f86ae8515510cca8a502d6","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMCIsInJvdW5kIjoxNDY4OTMyNTY2MjEwMDcxfQ","hex":"a5006a646174656b6579636170010102507da263ddf7f86ae8515510cca8a502d603784a646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f694d434973496e4a766457356b496a6f784e4459344f544d794e5459324d6a45774d44637866510401","noncritical":[],"policy":"time_and_key","result":"ok"},
|
|
|
{"hex":"a7006a646174656b657963617001180102507703a8f2b6f9da6f35f502607f9418d7036004010581a20070efbbbf6f72672e6578616d706c652e6101070682a30061610102024214e3a2006d646174656b6579732e6e6f74650101","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 14: 1 is not in its shortest form (initial byte 0x18): ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"5f975c6ddd2bd2ae325f3db9501c2900","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6NTUwNDE5ODg0Njk2ODA4NH0","hex":"a6006a646174656b6579636170010102505f975c6ddd2bd2ae325f3db9501c2900037863646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364e5455774e4445354f4467304e6a6b324f4441344e483004000682a300716f72672e6578616d706c652e6c6162656c011affffffff024553bb15eecca30064f0908080011affffffff024121","noncritical":[["org.example.label",4294967295,"53bb15eecc"],["𐀀",4294967295,"21"]],"policy":"time_only","result":"ok"},
|
|
|
{"capsule_id":"a6e53a3d2744aa19416a30455400c22d","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMCIsInJvdW5kIjo3MDY0NTQ0MjI3NTEyMzE0fQ","hex":"a5006a646174656b657963617001010250a6e53a3d2744aa19416a30455400c22d03784a646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f694d434973496e4a766457356b496a6f334d4459304e5451304d6a49334e5445794d7a453066510401","noncritical":[],"policy":"time_and_key","result":"ok"},
|
|
|
{"capsule_id":"e4a77fd9cee80f40b14bd7a4ec33b125","critical":[["org.example.b",4294967295,"ec1a46db3f"]],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTkxOTIyNjkwODQ0Nzc3OH0","hex":"a6006a646174656b657963617001010250e4a77fd9cee80f40b14bd7a4ec33b125037863646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d546b784f5449794e6a6b774f4451304e7a63334f483004010581a3006d6f72672e6578616d706c652e62011affffffff0245ec1a46db3f","noncritical":[],"policy":"time_and_key","result":"ok"},
|
|
|
{"hex":"a5006a646174656b65796361700161310250491bd48d0124464e026a98aaf23ed3660366646b315f21210400","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 14: a text string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a7006a646174656b657963617001010250b70cbce892fcc88f032410e78ad99c3f03784a646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f6959534973496e4a766457356b496a6f334e446b354f5441314e7a67794f4445324f446379665104000581a3006161010103000684a2006261000100a300626162010702457efea4b841a2006d646174656b6579732e6e6f74650101a300716f72672e6578616d706c652e6c6162656c01020242c085","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 5: extension \"a\": unknown key 3: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a7006a646174656b6579636170010102507ea2f1e845553bbb9f0bcf70c6c330ae03783f646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f694d434973496e4a766457356b496a6f324e6a67344e4449784d6e3004000581a3006161010102400681a30070646174656b6579732e63617073756c650101024101","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 5: extension \"a\": data is present but empty; an extension without data omits key 2: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a8006a646174656b657963617001010250131b8ba442eb45d64d673f2e2d54d23b037863646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364e7a4d354e5451354d4459794d7a63774e6a4d314e483004000581a30070646174656b6579732e63617073756c65010202443cfddc5b0684a300615a01020245241cc1ce7fa300616101020246d2bcd3780a8ea3006261620107024528bc2ad4b0a3006d6f72672e6578616d706c652e61011affffffff0244a463570f","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 1: map of 8 entries, at most 7: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"5f54507140727a2bfc3cfdf720540cab","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSIsInJvdW5kIjozNzU1MzcxODYyMDIxMTYwfQ","hex":"a5006a646174656b6579636170010102505f54507140727a2bfc3cfdf720540cab03784a646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f6959534973496e4a766457356b496a6f7a4e7a55314d7a63784f4459794d4449784d54597766510401","noncritical":[],"policy":"time_and_key","result":"ok"},
|
|
|
{"hex":"a6006a646174656b6579636170010102505186a05ec1500df2814944a51c96bb5b03783a646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f694d434973496e4a766457356b496a6f784d44417766510400617800","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 96: a text string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"capsule_id":"2c6bf910c311381e5d0e9e5b7f46bb45","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSIsInJvdW5kIjoxfQ","hex":"a5006a646174656b6579636170010102502c6bf910c311381e5d0e9e5b7f46bb45037836646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f6959534973496e4a766457356b496a6f7866510400","noncritical":[],"policy":"time_only","result":"ok"},
|
|
|
{"capsule_id":"d949b568af94b49e8ef78a1c15008ce1","critical":[["x.y-z_1",7,"c94e"]],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSIsInJvdW5kIjo0OTgxMTgwMzI2OTA1ODgyfQ","hex":"a7006a646174656b657963617001010250d949b568af94b49e8ef78a1c15008ce103784a646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f6959534973496e4a766457356b496a6f304f5467784d5467774d7a49324f5441314f446779665104010581a30067782e792d7a5f3101070242c94e0682a300615a01070242cde5a300626162011affffffff024398a944","noncritical":[["Z",7,"cde5"],["ab",4294967295,"98a944"]],"policy":"time_and_key","result":"ok"},
|
|
|
{"capsule_id":"cd6501d0c509d86098c9b8dfd4f0badd","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMCIsInJvdW5kIjo4N30","hex":"a5006a646174656b657963617001010250cd6501d0c509d86098c9b8dfd4f0badd037837646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f694d434973496e4a766457356b496a6f344e33300400","noncritical":[],"policy":"time_only","result":"ok"},
|
|
|
{"capsule_id":"c62aaf40029f9eef04984694f6dcb425","critical":[],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSIsInJvdW5kIjoxOTIwODI2MjA3NjgxMzQ2fQ","hex":"a6006a646174656b657963617001010250c62aaf40029f9eef04984694f6dcb42503784a646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f6959534973496e4a766457356b496a6f784f5449774f4449324d6a41334e6a67784d7a5132665104000683a300615a01000243a51f9da3006d646174656b6579732e6e6f746501010243e95417a30067782e792d7a5f31010102443c49261e","noncritical":[["Z",0,"a51f9d"],["datekeys.note",1,"e95417"],["x.y-z_1",1,"3c49261e"]],"policy":"time_only","result":"ok"},
|
|
|
{"capsule_id":"5456142e0025dee5c8e8df9100b2bd94","critical":[["org.example.label",4294967295,"80278c71"],["𐀀",1,null]],"datekey":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoieC55X3otdzoxIiwicm91bmQiOjg4MDI1NzM0MzU4Mjc2MX0","hex":"a7006a646174656b6579636170010102505456142e0025dee5c8e8df9100b2bd94037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f696543353558336f74647a6f7849697769636d3931626d51694f6a67344d4449314e7a4d304d7a55344d6a63324d583004010582a300716f72672e6578616d706c652e6c6162656c011affffffff024480278c71a20064f090808001010684a2006261000107a20070646174656b6579732e63617073756c650102a30067782e792d7a5f31010702443504be43a30062c3a901010241bd","noncritical":[["a\u0000",7,null],["datekeys.capsule",2,null],["x.y-z_1",7,"3504be43"],["é",1,"bd"]],"policy":"time_and_key","result":"ok"},
|
|
|
{"hex":"a40101025081b8400ac5b5b6ceaaa92c91a96830fc037837646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f6959534973496e4a766457356b496a6f354e33300401","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 2: map key 1 where key 0 was expected: ERR_NON_CANONICAL_CBOR"}
|
|
|
],
|
|
|
"precedence": [
|
|
|
{"hex":"a50070646174656b6579732d636f6e74726f6c0101025009090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300401","name":"the type tag of CONTROL_CBOR","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: type \"datekeys-control\", want \"datekeycap\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a60070646174656b6579732d636f6e74726f6c0101025009090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d483004010580","name":"the type tag of CONTROL_CBOR, and an empty critical array","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: type \"datekeys-control\", want \"datekeycap\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a50070646174656b6579732d636f6e74726f6c0250090909090909090909090909090909090101037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300401","name":"the type tag of CONTROL_CBOR, and keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 20: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b65796361700102025009090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d483004010580","name":"schema version 2, and an empty critical array","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: PUBLIC_HEADER: codec: datekeycap schema version 2, want 1: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"a5006a646174656b65796361700250090909090909090909090909090909090102037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300401","name":"schema version 2, and keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 14: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a7006a646174656b65796361700101024f090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d483004010581a200616101010681a20061610102","name":"a capsule_id of 15 bytes, and an extension_id in both arrays","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 2: codec: offset 17: a byte string of 15 bytes outside 16..16: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b657963617001010250090909090909090909090909090909090365646b315f780401","name":"the DateKey dk1_x","result":"ERR_DATEKEY_INVALID","text":"capsule: PUBLIC_HEADER: datekey: payload is not Base64URL: ERR_DATEKEY_INVALID"},
|
|
|
{"hex":"a6006a646174656b657963617001010250090909090909090909090909090909090365646b315f7804010581a2006b6f72672e756e6b6e6f776e0101","name":"the DateKey dk1_x, and an unknown critical extension","result":"ERR_DATEKEY_INVALID","text":"capsule: PUBLIC_HEADER: datekey: payload is not Base64URL: ERR_DATEKEY_INVALID"},
|
|
|
{"hex":"a5006a646174656b65796361700101025009090909090909090909090909090909037854646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5334775a544e390402","name":"a DateKey of round 1.0e3, and access_policy 2","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 4: access_policy 2 is not defined in V1: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b65796361700101025009090909090909090909090909090909037854646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5334775a544e39040100","name":"a DateKey of round 1.0e3, and a trailing byte","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 122: 1 trailing bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b657963617001010250090909090909090909090909090909090345646b315f7804010682a20061620101a20061610101","name":"a DateKey as a byte string, and noncritical extensions out of order","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 3: codec: offset 34: a byte string where a text string was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b65796361700101025009090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d4830041b0020000000000000","name":"access_policy 2, and access_policy 2^53","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 4: codec: offset 129: unsigned integer 9007199254740992 above 9007199254740991: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b65796361700101025009090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300402","name":"access_policy 2, and a head of one entry more","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 4: access_policy 2 is not defined in V1: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b65796361700101025009090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d4830041b00200000000000001400","name":"access_policy 2^53, and an unknown key","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 4: codec: offset 129: unsigned integer 9007199254740992 above 9007199254740991: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b65796361700101025009090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300580","name":"an empty critical array, and no key 4","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 5: extension: empty array; an absent array omits its key: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b65796361700101025009090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300581a200616101010681a20061610102","name":"an extension_id in both arrays, and no key 4","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 4 is missing: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a7006a646174656b65796361700101025009090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d483004010682a20061620101a200616101011400","name":"noncritical extensions out of order, and an unknown key","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 6: extension a: array is not in canonical order: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a7006a646174656b65796361700101025009090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d483004010581a2006b6f72672e756e6b6e6f776e0101","name":"an unknown critical extension, and a head of one entry more","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 139: truncated input: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a6006a646174656b65796361700101025009090909090909090909090909090909037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300401140000","name":"an unknown key, and a trailing byte","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: key 20 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a5006a646174656b65796361700250090909090909090909090909090909090101037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300401","name":"keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 14: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"}
|
|
|
]
|
|
|
}
|
|
|
''';
|
|
|
|
|
|
/// Part of test/vectors/formats_control.json.
|
|
|
const formatsControlJson = r'''
|
|
|
{
|
|
|
"spec": "0.15",
|
|
|
"generator": "tool/formats_go_vectors.go",
|
|
|
"description": "CONTROL_CBOR of the three formats (capsule.DecodeControl) of the fixtures, in their format and in another, edited, and built field by field.",
|
|
|
"control": [
|
|
|
{"critical":[],"format":1,"header_binding":"33186a4f03d79eb8e28dbb82d2538ada45b68cd4f2ed6d17fa87b211e54f4d58","hex":"a40070646174656b6579732d636f6e74726f6c010102582033186a4f03d79eb8e28dbb82d2538ada45b68cd4f2ed6d17fa87b211e54f4d58035820cd5ca142d51386860bf4ae4ae16740d498ef70ff534084acf5f4005b74f278c3","noncritical":[],"payload_identity":"cd5ca142d51386860bf4ae4ae16740d498ef70ff534084acf5f4005b74f278c3","result":"ok"},
|
|
|
{"critical":[],"format":1,"header_binding":"33186a4f03d79eb8e28dbb82d2538ada45638cd4f2ed6d17fa87b211e54f4d58","hex":"a40070646174656b6579732d636f6e74726f6c010102582033186a4f03d79eb8e28dbb82d2538ada45638cd4f2ed6d17fa87b211e54f4d58035820cd5ca142d51386860bf4ae4ae16740d498ef70ff534084acf5f4005b74f278c3","noncritical":[],"payload_identity":"cd5ca142d51386860bf4ae4ae16740d498ef70ff534084acf5f4005b74f278c3","result":"ok"},
|
|
|
{"format":2,"hex":"a60070646174656b6579732d636f6e726f6c0102025820ed6829f4e14eb6fd5545e0dfda3157d990b0834d389e4f24c1cf4ccf8d92770a035820f912fef00856ede6bfe4931376ae8108ebfcb3fd7c9b0e0c2cd15d8be3b2dfaf064800000000000000000702","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 20: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":2,"header_binding":"3e26d39a327a9d7b7f504d6e4fb71489174cffb6360361bdf3349887eba25904","hex":"a60070646174656b6579732d636f6e74726f6c01020258203e26d39a327a9d7b7f504d6e4fb71489174cffb6360361bdf3349887eba259040358207c14feee8d88bb9c7c3fa7d22e1e8ba13887a6111718d2ca13da7c5e944421bf0648000000000000002e0702","noncritical":[],"padding":2,"payload_identity":"7c14feee8d88bb9c7c3fa7d22e1e8ba13887a6111718d2ca13da7c5e944421bf","payload_length":46,"result":"ok"},
|
|
|
{"format":2,"hex":"a60070646174656b6579732d636f6e7472e56f6c01020258203e26d39a327a9d7b7f504d6e4fb7148917","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 2: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":2,"header_binding":"d58f5020ab127df307927bba6186ec6708edb3e26234803ac76f082c2d10751f","hex":"a60070646174656b6579732d636f6e74726f6c0102025820d58f5020ab127df307927bba6186ec6708edb3e26234803ac76f082c2d10751f0358206cff50465e2f76ee0452d5f4ba9f942d54edbf8a6c42fb70f85cc75bc52d8e54064800000000000000290702","noncritical":[],"padding":2,"payload_identity":"6cff50465e2f76ee0452d5f4ba9f942d54edbf8a6c42fb70f85cc75bc52d8e54","payload_length":41,"result":"ok"},
|
|
|
{"critical":[],"format":2,"header_binding":"2af8b1b2850f2085448fe79c48394a78a70e8f9bbab6ff1a100d127dce42569d","hex":"a60070646174656b6579732d636f6e74726f6c01020258202af8b1b2850f2085448fe79c48394a78a70e8f9bbab6ff1a100d127dce42569d035820f8d40151d6d05c4ad0afed2e4a0df44c4b93eadcefdaa4ae7e85b493b0a569cc064800000000000000290702","noncritical":[],"padding":2,"payload_identity":"f8d40151d6d05c4ad0afed2e4a0df44c4b93eadcefdaa4ae7e85b493b0a569cc","payload_length":41,"result":"ok"},
|
|
|
{"format":2,"hex":"a60070646174656b6579732d636f6e74726f01020258202af8b1b2850f2085448fe79c48394a78a70e8f9bbab6ff1a100d12ba7dce42569d035820f8d40151d6d05c4ad0afed2e4a0df44c4b93","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 20: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a60070646174656b6579732df2636f6e74726f6c0102025820f916dc2cadb85b0426cc7caafdd01ebab7b27911ba1b4ed13fa48e74cdd452d1a103582069","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 2: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":2,"header_binding":"85b1f94357df0448246f91ec0d8c1026eb1bab870236b1069e9592c16aecd5ff","hex":"a60070646174656b6579732d636f6e74726f6c010202582085b1f94357df0448246f91ec0d8c1026eb1bab870236b1069e9592c16aecd5ff035820aa6d542f56c5026c229f3742ea84a9a5fbc5641951c61bf4383b9b25ce6b368a064800000000000130b00701","noncritical":[],"padding":1,"payload_identity":"aa6d542f56c5026c229f3742ea84a9a5fbc5641951c61bf4383b9b25ce6b368a","payload_length":78000,"result":"ok"},
|
|
|
{"format":2,"hex":"a60070646174656b6579732d636f74726f6c010202582085b1f94357df0448246f91ec0d8c1026eb1bab870236b1","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 20: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":2,"header_binding":"92c5e87f3a1012e617bd28e4962ad15954bf85d1a1937a59cb6d8e79e459bd64","hex":"a70070646174656b6579732d636f6e74726f6c010202582092c5e87f3a1012e617bd28e4962ad15954bf85d1a1937a59cb6d8e79e459bd64035820d9e066526400e9f580b79411524c5f3ac77ce1d9ba13e0ae4ec7e7fbed6619ff0581a300706f72672e6578616d706c652e6e6f74650102024ba2000701667365616c6564064800000000000000220702","noncritical":[["org.example.note",2,"a2000701667365616c6564"]],"padding":2,"payload_identity":"d9e066526400e9f580b79411524c5f3ac77ce1d9ba13e0ae4ec7e7fbed6619ff","payload_length":34,"result":"ok"},
|
|
|
{"critical":[],"format":3,"header_binding":"5b04303d9dd9d2d18a4077ff3c979ba69bd4d66eeba325cb670209372f689501","hex":"a60070646174656b6579732d636f6e74726f6c01030258205b04303d9dd9d2d18a4077ff3c979ba69bd4d66eeba325cb670209372f6895010358209a78a7cff5a06b6727cd487fae0fe114b8aa01b0625e21e98f80e14a2aecb08c064800000000000004930702","noncritical":[],"padding":2,"payload_identity":"9a78a7cff5a06b6727cd487fae0fe114b8aa01b0625e21e98f80e14a2aecb08c","payload_length":1171,"result":"ok"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c01030258205b04303d9dd9d2d18a4077ff3c979ba69bd4d66eeba325cb670209372f6895010358209a78a7cff5a06b6727cd487fae0fe114b8aa01b0625e21e98f80","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 3: codec: offset 59: truncated input: a byte string of 32 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c0103025820a100f55b12fd68d6613fd72e1fbe413e531c0fcce877e9ffa70e918cec47381a035820794a0d44f2b052ad8a6c15d0","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 3: codec: offset 59: truncated input: a byte string of 32 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":3,"header_binding":"a051aa2f17d521fcbf46d9c11de99d8013a1f34a29b59edc52b873734df45315","hex":"a60070646174656b6579732d636f6e74726f6c0103025820a051aa2f17d521fcbf46d9c11de99d8013a1f34a29b59edc52b873734df45315035820c439fa70ee755bfa49db4a61db3ccd29c983959884eb07ce0f120692038509a20648000000000000027c0702","noncritical":[],"padding":2,"payload_identity":"c439fa70ee755bfa49db4a61db3ccd29c983959884eb07ce0f120692038509a2","payload_length":636,"result":"ok"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c0103025820a051aa2f17d531fcbf46d9c11de99d80a1f34a29b59edc52b873734df45315035820c439fa70ee755bfa49db4a61db3ccd29c983959884eb07ce0f12069203850a09a20648000000000000027c0702","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 56: a byte string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c01030258208047b0f6ccb6fe5b29380750f350d51ce6a28f85602358ac4beae0fd2d57c7035820e605364fc937c07d590a7fdaea14a2f0f6be6f8cd4b327b5a7c4b5f0054798d328064800000000000080930702","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 56: a byte string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":3,"header_binding":"c6518ed7bd02c8f121493170776eb6c43e2c8162e97a9a6225b310a1836da612","hex":"a60070646174656b6579732d636f6e74726f6c0103025820c6518ed7bd02c8f121493170776eb6c43e2c8162e97a9a6225b310a1836da6120358204b0e0832574c11b161d7bab4d37582fde331eabb027f7d26c23cf11113fd5cc8064800000000000002930702","noncritical":[],"padding":2,"payload_identity":"4b0e0832574c11b161d7bab4d37582fde331eabb027f7d26c23cf11113fd5cc8","payload_length":659,"result":"ok"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c0103025820c6518ed7bd02","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 2: codec: offset 24: truncated input: a byte string of 32 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a60070646174656b65732d636f6e74726f6c0103025820c108d8b34eb0a4237e6aff192364a28d544cb79c84ac5c80d88c26f8bd5560d803582087351091f87f94f2c1155e","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 20: map key 3 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":3,"header_binding":"5f0d601c5a56438b7a4e73e1825530e12ca139f9a6da010951722998be646700","hex":"a60070646174656b6579732d636f6e74726f6c01030258205f0d601c5a56438b7a4e73e1825530e12ca139f9a6da010951722998be646700035820f6aae749a56d00f91e9c29e0e43ea1e7fd8ed9883f7e48c59315acb2b169bfbf064800000000000002930702","noncritical":[],"padding":2,"payload_identity":"f6aae749a56d00f91e9c29e0e43ea1e7fd8ed9883f7e48c59315acb2b169bfbf","payload_length":659,"result":"ok"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c01030258205f0d601c5a56438b7a4e73e1825530e12ca139f9a6da010951722998be646700035820f6aae749a56d00f91e9c29e0e43ea1e7fd8ed9883f7e48c59315acb2b169bfbf06","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 6: codec: offset 92: truncated input: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c0103020320bc6877680d44462fd92546d3f860eaea2234505721c3b588dd7676a2eb7fc7a70358200d50b7c8f4aa63f49c590f417b410dc3c71941e6827f407ee7921c99aba3ccdd064800000000000002930702","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 2: codec: offset 22: an unsigned integer where a byte string was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":3,"header_binding":"10c269d7fcc8ae1f92c9854b8d01b23781fd6c615474c018b5e75c8620d476eb","hex":"a60070646174656b6579732d636f6e74726f6c010302582010c269d7fcc8ae1f92c9854b8d01b23781fd6c615474c018b5e75c8620d476eb0358203ffe484f443014980f2b2ee8bb66095f6ea418d4c2fce2ae6ad74c550bbefc21064800000000000080930702","noncritical":[],"padding":2,"payload_identity":"3ffe484f443014980f2b2ee8bb66095f6ea418d4c2fce2ae6ad74c550bbefc21","payload_length":32915,"result":"ok"},
|
|
|
{"format":3,"hex":"a60070646174656b4f79732d636f6e74726f6c010302582010c269d7fcc8ae1f92c9854b8d01b23781fd6c615474c018b5e75c8620d476eb0358203ffe484f443014980f2b2ee8bb66095f6ea418d4c2fce2ae6ad74c550bbefc21064800000000000080930702","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: type \"datekOys-control\", want \"datekeys-control\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a6001a646174656b6579732d636f6e74726f6c01030258202e91168b24ae6fa37bbf6c4514b30cb5961779fb50e5a6cd49622969b9d291e50358208d26d67eb6ffa0d2aed0a32ecfbddd6e48ab6f2b6e73dc36cff0a74a36f87e820648000000000000a2930702","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 2: an unsigned integer where a text string was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":3,"header_binding":"067f57ec4c218fb70270ef9c5b34bfc16d1a1e97e8ffb8bcb330c604976055ac","hex":"a60070646174656b6579732d636f6e74726f6c0103025820067f57ec4c218fb70270ef9c5b34bfc16d1a1e97e8ffb8bcb330c604976055ac0358209f20218af25245877dce5780c309f83f47b15fd9fdd6dd49175c36e70b53f9c5064800000000000002930702","noncritical":[],"padding":2,"payload_identity":"9f20218af25245877dce5780c309f83f47b15fd9fdd6dd49175c36e70b53f9c5","payload_length":659,"result":"ok"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c0103025820067f57ec218fb70270ef9c5b34bfc16d1a1e97e8ffb8bcb330c604976055ac0358029f20218af25245877dce5780c309023f47b15fd9fdd6dd49175c36e70b53f9c5064800000000000002930702","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 56: 2 is not in its shortest form (initial byte 0x58): ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c0103025818b7519c210ffd04c4a8c9b1db2e2986909218de3194b9d4492ebdb103ff30f19403582004d52390973dcd4b72881f7faf77891850b0c33c0201aca2798e75de865ca85f064800000000000002b00702","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 2: codec: offset 24: a byte string of 24 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":3,"header_binding":"a369edff0cde0c948ccf0be811991b5f466f3128e2d76ab5f2604741cbcd7eb9","hex":"a60070646174656b6579732d636f6e74726f6c0103025820a369edff0cde0c948ccf0be811991b5f466f3128e2d76ab5f2604741cbcd7eb90358206084cf489493da67e85e71b3ef5c2e6e17db1a11795fce9be601c062db4f7c8d0648000000000001486e0702","noncritical":[],"padding":2,"payload_identity":"6084cf489493da67e85e71b3ef5c2e6e17db1a11795fce9be601c062db4f7c8d","payload_length":84078,"result":"ok"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c0103025820a369edff0cde0c948ccf0be811991b5f466f3128e2d76ab5f2604741cbcd7eb90358206084cf489493da67e85e71b3ef5c2e6e17db1a11795fce9be601c062db4f7c8d06480000000000ab48bd6e0702","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 101: a text string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":3,"header_binding":"36fac05bdec31225c4249bbdf14381b72c28e9dc8d6eec8af2500ec83c03ea8c","hex":"a60070646174656b6579732d636f6e74726f6c010302582036fac05bdec31225c4249bbdf14381b72c28e9dc8d6eec8af2500ec83c03ea8c0358204207790feb87ae42795751d6a28f032af78359aeef98f1dc9faef32e9c7ddba4064800000000000080930702","noncritical":[],"padding":2,"payload_identity":"4207790feb87ae42795751d6a28f032af78359aeef98f1dc9faef32e9c7ddba4","payload_length":32915,"result":"ok"},
|
|
|
{"critical":[],"format":1,"header_binding":"841fe789895abdd0ffecb0eb7562f4c4b4dfd0d1f8ec6fd251adbe1a89d5ab5f","hex":"a40070646174656b6579732d636f6e74726f6c0101025820841fe789895abdd0ffecb0eb7562f4c4b4dfd0d1f8ec6fd251adbe1a89d5ab5f0358202536e99b16373ca8d118695c600fd652541367b0198dbfaba9362a98f9fa70cb","noncritical":[],"payload_identity":"2536e99b16373ca8d118695c600fd652541367b0198dbfaba9362a98f9fa70cb","result":"ok"},
|
|
|
{"format":1,"hex":"a400706461746b6579732d636f6e74726f6c01010258841fe789895abdd0ffecb0eb7562f4c4b4dfd0d1f8ec6fd251adbe1a89d5ab5f0358202536e9a216373ca8d118695c600fd652541367b0198dbfaba9362a98f9fa70cb","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: type \"datkeys-control\\x01\", want \"datekeys-control\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a4007064617465ea65792d636f6e74726f6c01010258205d789b4bde52beecba","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 2: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":1,"header_binding":"8e1d05df55bc626a579759d54d436b512b7bfc71039d3c12c1875a5b475f2417","hex":"a40070646174656b6579732d636f6e74726f6c01010258208e1d05df55bc626a579759d54d436b512b7bfc71039d3c12c1875a5b475f2417035820e63d28ff1a6d1975263db49ff80c3bf949737d20aeedcc9539e648ffd330082b","noncritical":[],"payload_identity":"e63d28ff1a6d1975263db49ff80c3bf949737d20aeedcc9539e648ffd330082b","result":"ok"},
|
|
|
{"format":1,"hex":"a40070646174656b6579732d636f6e74726f6c01010258208e1d05df55bc626a579759d54d436b512b7bfc71039d3c12c1875a5b475f2417035820e63d28ff1a6d1975263db49ff80c3bf9497d20aeedcc9539e648ffd330082b","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 3: codec: offset 59: truncated input: a byte string of 32 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a50070646174656b6579732d636f6e74726f6c0101025820cf647fac3ba7849b217d9bb358d6d7b5b6f6722e2e383a32057fc725ba0280700358422094edebc71acf1c5743d80ec5d14922253a1325edda65d56d7e33642edb92ab6d0581a300706f72672e6578616d706c652e6e6f74650102ac4ba2000701667365616c6564","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 3: codec: offset 59: a byte string of 66 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a90070646174656b6579732d636f6e74726f6c01020258209e40a22f2d63d10204eefe9874e413ea995fba1dd9a17b525134515a048a5913035820f84a29f7e12c04110c52a66add8c021ec1e516b45a09a7727c35a86217b99dfa035820f84a29f7e12c04110c52a66add8c021ec1e516b45a09a7727c35a86217b99dfa0581a2006d646174656b6579732e6e6f7465010706480008b435df579ada0701617800","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 1: map of 9 entries, at most 8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a7006a646174656b657963617001020258204390b6d1ddccd9a4f376b35c940db4d4a180c7bb2922f4a40be5bd9781a125a8035820268f7f1b27f3c34232e6c71382c78080d68507a926ee94f39856e63241cf11810648000000000000000107011b002000000000000000","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: type \"datekeycap\", want \"datekeys-control\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":2,"header_binding":"f93c91736d65e6accd081e7b54777f926d7f9d59d8ffded3029ce27643cc1359","hex":"a60070646174656b6579732d636f6e74726f6c0102025820f93c91736d65e6accd081e7b54777f926d7f9d59d8ffded3029ce27643cc1359035820efbc6261f9d066fc60542652042678a477b602be299f1d9e7f0975cb75b1c0c7064800000000000000000701","noncritical":[],"padding":1,"payload_identity":"efbc6261f9d066fc60542652042678a477b602be299f1d9e7f0975cb75b1c0c7","payload_length":0,"result":"ok"},
|
|
|
{"critical":[],"format":2,"header_binding":"ce8d9b81b202b13cbc0aef303fca15a2f6fb4f2824e9d32c6afe1f055229f613","hex":"a70070646174656b6579732d636f6e74726f6c0102025820ce8d9b81b202b13cbc0aef303fca15a2f6fb4f2824e9d32c6afe1f055229f613035820b2c76a63e328e756e40c4d11713c329fbf208f6d853fe8b15af83b3cf3eea3450581a20063efbda10102064800030036193e50c60701","noncritical":[["。",2,null]],"padding":1,"payload_identity":"b2c76a63e328e756e40c4d11713c329fbf208f6d853fe8b15af83b3cf3eea345","payload_length":844657281880262,"result":"ok"},
|
|
|
{"format":2,"hex":"a70070646174656b6579732d636f6e74726f6c0102025820e8f7f3aee21a3583229bb1ee6614c040c49698ad97ab403d49ea5d5a830a8179035820cf1b37a9015916fbb5893a497297743a211535c8f0b5c19d7506399c744526360583a300615a01000245e80a28b2b7a2006161011affffffffa300617a011affffffff024200840648000000000004126507015d","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 142: 1 trailing bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a6006a646174656b6579636170010102582069f4533b752b4566b060a57f2a5751a0b7df6929225e5f99773d9ecac9308b080358204f5b59aa70aae8e3ae41cd676e4ee3f37954c82dba554802b7c4d747d3cbeabe0482a30070646174656b6579732e63617073756c6501020245f9aabefbeda30063efbda10101024280140900","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: type \"datekeycap\", want \"datekeys-control\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a40070646174656b6579732d636f6e74726f6c01010258206982d48313e066650b97","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 2: codec: offset 24: truncated input: a byte string of 32 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[["datekeys.note",7,null]],"format":2,"header_binding":"053578b6bbe23f518011a553c9c2babff51780504f2873b224c509c447147967","hex":"a80070646174656b6579732d636f6e74726f6c0102025820053578b6bbe23f518011a553c9c2babff51780504f2873b224c509c4471479670358209a697a15b74e87e42356c5331c048ab3a6d7fd6ee3e86163532cc32bd92cf0f90481a2006d646174656b6579732e6e6f746501070583a3006161010702418aa3006162010202439f3e42a20062c3a9011affffffff0648000b0556404b84fe0701","noncritical":[["a",7,"8a"],["b",2,"9f3e42"],["é",4294967295,null]],"padding":1,"payload_identity":"9a697a15b74e87e42356c5331c048ab3a6d7fd6ee3e86163532cc32bd92cf0f9","payload_length":3102092747834622,"result":"ok"},
|
|
|
{"critical":[["é",2,null]],"format":2,"header_binding":"54f6d2c690835003531a2468d7cae0f4f60d6bea06db6dcf63da4348999eacab","hex":"a70070646174656b6579732d636f6e74726f6c010202582054f6d2c690835003531a2468d7cae0f4f60d6bea06db6dcf63da4348999eacab035820e0de9cad8bfb1f222389bce9b739b9a9a3f47811784e5c3c1424d5f2e7e09e790481a20062c3a901020648000ba39bd56911a10701","noncritical":[],"padding":1,"payload_identity":"e0de9cad8bfb1f222389bce9b739b9a9a3f47811784e5c3c1424d5f2e7e09e79","payload_length":3276114439508385,"result":"ok"},
|
|
|
{"format":1,"hex":"a40070646174656b6579732d636f6e74726f6c010102582111823d04c5449fb1dfcf008a5e34baae9ee4df3271cba514bf9a569330c03256db0358214eac65f097cda2e358db74a730653108f93f8550e1d7151561361d32a83969067b","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 2: codec: offset 24: a byte string of 33 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":1,"header_binding":"ff0cb1b4dc252d358c876778d963176acdf62ddb08d64eca1bc5f63ea045c8cd","hex":"a40070646174656b6579732d636f6e74726f6c0101025820ff0cb1b4dc252d358c876778d963176acdf62ddb08d64eca1bc5f63ea045c8cd035820cbb5e12aad282c220166b564a9be54e68b617ebcac62691e1d5e6f7aa895a99c","noncritical":[],"payload_identity":"cbb5e12aad282c220166b564a9be54e68b617ebcac62691e1d5e6f7aa895a99c","result":"ok"},
|
|
|
{"critical":[],"format":2,"header_binding":"9142ce72ec7feb2a084b8566a373c096b74346fd40f174d9a7349b745f1c1862","hex":"a70070646174656b6579732d636f6e74726f6c01020258209142ce72ec7feb2a084b8566a373c096b74346fd40f174d9a7349b745f1c18620358205ee59a204df4988f75180c92529253e1f073de7a9dbc645478568154b0dfab930583a300615a01020243cbe9bfa2006d6f72672e6578616d706c652e61011affffffffa30070efbbbf6f72672e6578616d706c652e6101020243991bb4064800000000000ce7080702","noncritical":[["Z",2,"cbe9bf"],["org.example.a",4294967295,null],["org.example.a",2,"991bb4"]],"padding":2,"payload_identity":"5ee59a204df4988f75180c92529253e1f073de7a9dbc645478568154b0dfab93","payload_length":845576,"result":"ok"},
|
|
|
{"critical":[],"format":3,"header_binding":"b66d381446266ad896407f8d0fe55637e7bb9572bf0697836dade9dca5bfc06c","hex":"a60070646174656b6579732d636f6e74726f6c0103025820b66d381446266ad896407f8d0fe55637e7bb9572bf0697836dade9dca5bfc06c0358209512ec0899587849612ec6fb47d3cf24ed0e2aed56562c674478a6a55bb53b84064800008476f73ba1210702","noncritical":[],"padding":2,"payload_identity":"9512ec0899587849612ec6fb47d3cf24ed0e2aed56562c674478a6a55bb53b84","payload_length":145646488887585,"result":"ok"},
|
|
|
{"critical":[],"format":2,"header_binding":"f1ca116909c4946f66faadc84883eb57e632d0913269e9294e690cab3af54be5","hex":"a70070646174656b6579732d636f6e74726f6c0102025820f1ca116909c4946f66faadc84883eb57e632d0913269e9294e690cab3af54be5035820b83e21c5411aea87e648ff6e1e96ce569a1a1affa6b3a7e1e295c766d562c66c0583a3006261000102024168a30070646174656b6579732e63617073756c65010102454e25a7bf92a3006d6f72672e6578616d706c652e6201020241fe0648000287e819ae819e0701","noncritical":[["a\u0000",2,"68"],["datekeys.capsule",1,"4e25a7bf92"],["org.example.b",2,"fe"]],"padding":1,"payload_identity":"b83e21c5411aea87e648ff6e1e96ce569a1a1affa6b3a7e1e295c766d562c66c","payload_length":712380886450590,"result":"ok"},
|
|
|
{"critical":[],"format":2,"header_binding":"79f2f44749df6dc8d003977d477f84cbdbb979c97655738558a4b397878d7c54","hex":"a70070646174656b6579732d636f6e74726f6c010202582079f2f44749df6dc8d003977d477f84cbdbb979c97655738558a4b397878d7c54035820331242ca12d665b71af4dde0f931275171aca571cde352e798e909d211691e6c0581a300615a01000246c613ba2434fa06480000000000056b050701","noncritical":[["Z",0,"c613ba2434fa"]],"padding":1,"payload_identity":"331242ca12d665b71af4dde0f931275171aca571cde352e798e909d211691e6c","payload_length":355077,"result":"ok"},
|
|
|
{"format":2,"hex":"a70070646174656b6579732d636f6e74726f6c0102025820fb14ece516c7beace3a973e0aef6497282b1c136249deb0a8c378e18664c4a8d0358206777dbd2f5b8dfe7fcbdbb755ee8fc7da14bd0951b2d3a21a7f01351a8a142120648000bedf0291496050701617800","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 103: a text string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":1,"header_binding":"503b2d7aacd1779978bd5d8aa7569f07fd1826c976b9097d458b4511837d2760","hex":"a40070646174656b6579732d636f6e74726f6c0101025820503b2d7aacd1779978bd5d8aa7569f07fd1826c976b9097d458b4511837d27600358202a81a15229865a7b468cd91d730a0acc50e25f639c186eb26fa177c934832687","noncritical":[],"payload_identity":"2a81a15229865a7b468cd91d730a0acc50e25f639c186eb26fa177c934832687","result":"ok"},
|
|
|
{"critical":[],"format":3,"header_binding":"f8d374438398096ce6b575fc4cb4c4a4310661e481579e99bd8425073437c7af","hex":"a70070646174656b6579732d636f6e74726f6c0103025820f8d374438398096ce6b575fc4cb4c4a4310661e481579e99bd8425073437c7af035820fc8eca8f6b8ee56f42072a12cff389615dbe1ddbb95ebdd710a7978afa4a2e8b0581a3006d646174656b6579732e6e6f746501010246cd377de83f5b0648000c7939993313710702","noncritical":[["datekeys.note",1,"cd377de83f5b"]],"padding":2,"payload_identity":"fc8eca8f6b8ee56f42072a12cff389615dbe1ddbb95ebdd710a7978afa4a2e8b","payload_length":3510988010886001,"result":"ok"},
|
|
|
{"format":1,"hex":"a60070646174656b6579732d636f6e74726f6c01010258203c2687adb5bb79ae000e04ae4ef74f906f0e4204d2e9788d9db4a1cde36334b40358202e3f5331e2d452970125ce616d5a090ea0e0468b22adfe5eb386348d8bc816f30481a20062c3a901030581a20062c3a90104","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: extension é: both critical and noncritical: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":3,"header_binding":"ef33036f20a5cd72fefa870595e4f8de42f5fc8d2dd0a2d4d26f3cf85eecdb09","hex":"a60070646174656b6579732d636f6e74726f6c0103025820ef33036f20a5cd72fefa870595e4f8de42f5fc8d2dd0a2d4d26f3cf85eecdb09035820de31147e318b5bf0b239b401b3c27c73d84c30df9562b8c38cceafd39ef45a06064800006add06dbc56b0701","noncritical":[],"padding":1,"payload_identity":"de31147e318b5bf0b239b401b3c27c73d84c30df9562b8c38cceafd39ef45a06","payload_length":117497535382891,"result":"ok"},
|
|
|
{"format":3,"hex":"b8250070646174656b6579732d636f6e74726f6c0103025820cd4a024ea3be5a2abc57698dd5e1f97b973c289a6154cdd81ae9677e2f65c656035820b35bf6622c7d3c9ef544969dc1e51ccd79bb9d5b263d805d7ada242fcb28d3080482a20067782e792d7a5f31011affffffffa20070efbbbf6f72672e6578616d706c652e610102064800142f7cb4fa2a260701","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 2: map of 37 entries, at most 8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":3,"header_binding":"962c80fd84422d675e23bd50c9a6f7d33a82bcde764d6ee7e7eb146197e52d25","hex":"a70070646174656b6579732d636f6e74726f6c0103025820962c80fd84422d675e23bd50c9a6f7d33a82bcde764d6ee7e7eb146197e52d25035820886589ffc72b4544db6fa56562794d2cf115079e62b65f602cc366c28d7d3b0a0581a300617a011affffffff02437150fc06480011169c50748b750702","noncritical":[["z",4294967295,"7150fc"]],"padding":2,"payload_identity":"886589ffc72b4544db6fa56562794d2cf115079e62b65f602cc366c28d7d3b0a","payload_length":4809935224605557,"result":"ok"},
|
|
|
{"critical":[],"format":2,"header_binding":"cbf639d8b8e3dee46d4f2a957d8bb1ef7b958993d0d6d1973c088e05f8347abd","hex":"a70070646174656b6579732d636f6e74726f6c0102025820cbf639d8b8e3dee46d4f2a957d8bb1ef7b958993d0d6d1973c088e05f8347abd0358203bddf8d4995d2ff406874a0f461e022df690dad15c11746fe034d901ce98b6980581a30062c3a9010702419e0648000bd3d66acd4e650701","noncritical":[["é",7,"9e"]],"padding":1,"payload_identity":"3bddf8d4995d2ff406874a0f461e022df690dad15c11746fe034d901ce98b698","payload_length":3329142612119141,"result":"ok"},
|
|
|
{"critical":[["a",1,"95ff"],["z",2,"604bc0"]],"format":2,"header_binding":"0807add3f25ff1e177de97800fbfc552fa47bf309d1aefe12f56a910542d4289","hex":"a70070646174656b6579732d636f6e74726f6c01020258200807add3f25ff1e177de97800fbfc552fa47bf309d1aefe12f56a910542d4289035820cba769287fcd30d0e59591b81fe8ffcffc7bc690212275ab272599ff248ce6b20482a30061610101024295ffa300617a01020243604bc006480014cbe9bcc779d30702","noncritical":[],"padding":2,"payload_identity":"cba769287fcd30d0e59591b81fe8ffcffc7bc690212275ab272599ff248ce6b2","payload_length":5853704289221075,"result":"ok"},
|
|
|
{"format":1,"hex":"a50070646174656b6579732d636f6e74726f6c016131025820a3787fe49882b53cd83e65121798cb7febaa9dc202e9556176099304702863b60358207621644a56d415db4d1687c199b8610e7f6d006ed7ff38ca6c044e6d9e752d5a0482a300616101000246cb2096b8b22fa30067782e792d7a5f310102024420f0ea51","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 20: a text string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e7472","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 3: truncated input: a text string of 16 bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":3,"header_binding":"888f393004fbd0345648a3c3ceaab84ccbd77b2093406c5b804980219f8a910c","hex":"a70070646174656b6579732d636f6e74726f6c0103025820888f393004fbd0345648a3c3ceaab84ccbd77b2093406c5b804980219f8a910c0358209609dc40528154887ac3f6b179a98fef92353d4e133a9953595fb5ad2ab25d4a0582a300626162010002437c3b85a20070efbbbf6f72672e6578616d706c652e6101010648000e1d53ba23c5580702","noncritical":[["ab",0,"7c3b85"],["org.example.a",1,null]],"padding":2,"payload_identity":"9609dc40528154887ac3f6b179a98fef92353d4e133a9953595fb5ad2ab25d4a","payload_length":3972895116346712,"result":"ok"},
|
|
|
{"critical":[],"format":1,"header_binding":"ec269743dcd02ba4a0f3f50bdb48ed9861a0ff8b293fe63f7ad575fab062a93a","hex":"a40070646174656b6579732d636f6e74726f6c0101025820ec269743dcd02ba4a0f3f50bdb48ed9861a0ff8b293fe63f7ad575fab062a93a035820c3f6b3712afc8a72c1c46ebe6e3560c5f83bc3b1f9f76d5b13055682652ac1d9","noncritical":[],"payload_identity":"c3f6b3712afc8a72c1c46ebe6e3560c5f83bc3b1f9f76d5b13055682652ac1d9","result":"ok"},
|
|
|
{"format":1,"hex":"a40070646174656b6579732d636f6e74726f6c01010258208f132e471739eaee9c493ad02fad8f4851d6356ec361d6c1a6ee30241efdf10006480000000000000000","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 6 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a6","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 1: truncated input: map of 6 entries: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":1,"header_binding":"19852a1db053f0b71dd6652eab6c16a188a95d2ae6a5d627bc9d85434e2351f0","hex":"a50070646174656b6579732d636f6e74726f6c010102582019852a1db053f0b71dd6652eab6c16a188a95d2ae6a5d627bc9d85434e2351f0035820d50f9ccf8146137520bd276847e34233979a7ffd0a58f1a5ee43e57166177bc70583a2006d646174656b6579732e6e6f74650107a30070efbbbf6f72672e6578616d706c652e610102024581f445c932a30064f0908080011affffffff02424bd2","noncritical":[["datekeys.note",7,null],["org.example.a",2,"81f445c932"],["𐀀",4294967295,"4bd2"]],"payload_identity":"d50f9ccf8146137520bd276847e34233979a7ffd0a58f1a5ee43e57166177bc7","result":"ok"},
|
|
|
{"format":1,"hex":"a60070646174656b6579732d636f6e74726f6c0101025820593c02e700e295dc7423542d1a4f42a312f9227b58ac966f369a96c7687a1904035820fa22aed67a6cfde5b271756b5b945873454baec8343ad4124cbfa296d9dd30320481a20063efbda101030581a20063efbda10104","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: extension 。: both critical and noncritical: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c0103025820431ffec2a3d9b1b1766093647b430f530094609f1a10debc8dcdaea2f1b438eb03582031b3a2ecde6da561e080dbeee3e0ac809911a5cf571fd4e0d450bbd2db53bb5b064800046950e3c4e0d90700","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 7: padding code 0 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":1,"header_binding":"0aa563ef0cff8694ccedc74d8ad11852a793ce4b92d669140ec2d507f67cba9c","hex":"a40070646174656b6579732d636f6e74726f6c01010258200aa563ef0cff8694ccedc74d8ad11852a793ce4b92d669140ec2d507f67cba9c035820a64d6eac732df86d300fa3b702a086bd172cd63357c41127fe9fa0501bc90fd4","noncritical":[],"payload_identity":"a64d6eac732df86d300fa3b702a086bd172cd63357c41127fe9fa0501bc90fd4","result":"ok"},
|
|
|
{"critical":[],"format":3,"header_binding":"d7f22a6c4ae18d6affce296f567ef01f349a964883b0415a430d5febad2dae55","hex":"a70070646174656b6579732d636f6e74726f6c0103025820d7f22a6c4ae18d6affce296f567ef01f349a964883b0415a430d5febad2dae55035820cbe199cb161df38eccb510133edced5f6dc3e3b904e63950e9d7de92f287d0590581a200617a011affffffff0648001fc000000000000701","noncritical":[["z",4294967295,null]],"padding":1,"payload_identity":"cbe199cb161df38eccb510133edced5f6dc3e3b904e63950e9d7de92f287d059","payload_length":8936830510563328,"result":"ok"},
|
|
|
{"format":1,"hex":"a5006a646174656b65796361700101025820e8c5239b3d64905f27fd389cf8f504cc4e407b7b1555d48b6ebf902568fd65560358203c9954c2227ee30f483b2deac22e35111cdc899ef44f4c871c71266fd8c704fb0481a30062610001020241f4","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: type \"datekeycap\", want \"datekeys-control\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 19: truncated input: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[],"format":1,"header_binding":"e15f268284f39b48e0c6b0eed298049b762e6f2456d1676bd7e0048cfd3a4e3e","hex":"a40070646174656b6579732d636f6e74726f6c0101025820e15f268284f39b48e0c6b0eed298049b762e6f2456d1676bd7e0048cfd3a4e3e035820a7c1e5632af7a5834d245263b37db6230603960e1dfe1aea329633e722741284","noncritical":[],"payload_identity":"a7c1e5632af7a5834d245263b37db6230603960e1dfe1aea329633e722741284","result":"ok"},
|
|
|
{"format":2,"hex":"a60070646174656b6579732d636f6e74726f6c0102025820894b00ccd3032c52537f1a1754bf837df1549e25638f82484e555c6de3729ad203582063c4ced4edb35b86972959ae1b6e5f2a35cdde9689ed3db3b3f89722ca319a4d06480019a2bc91b72d1b07017c","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 103: 1 trailing bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a80070646174656b6579732d636f6e74726f6c01020258204acae886f134988c41e0dadaa2f8ef2091784bdb38a3041c13c87027a23975bd03582015ea9b69514c2c246411fdbabfa8e3d75496188e581f19ce139b030abeb458190483a3006161011b001fffffffffffff024460d9671aa2006261000101a30064f090808001000241c706480009ea2165edb5c807010800","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 4: extension \"a\": key 1: codec: offset 107: unsigned integer 9007199254740991 above 4294967295: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[["x.y-z_1",4294967295,"3dc045466f24"]],"format":3,"header_binding":"d442141d1c0d374a2ea3df711d30a26ab988b39a2f7c3b696548d3bc636293e3","hex":"a80070646174656b6579732d636f6e74726f6c0103025820d442141d1c0d374a2ea3df711d30a26ab988b39a2f7c3b696548d3bc636293e3035820bc67c2a67e000cf305184320cb98600167e8eb1bfcb538f31ab944f2e55c2b020481a30067782e792d7a5f31011affffffff02463dc045466f240582a30062610001010245dd8b9fea7ea300617a010102452f7e1614e7064800000000000001000701","noncritical":[["a\u0000",1,"dd8b9fea7e"],["z",1,"2f7e1614e7"]],"padding":1,"payload_identity":"bc67c2a67e000cf305184320cb98600167e8eb1bfcb538f31ab944f2e55c2b02","payload_length":256,"result":"ok"},
|
|
|
{"format":2,"hex":"b8240070646174656b6579732d636f6e74726f6c01020258206ed2807a13ab7079de1cf04529ba7a45cc1047f8fe5ba432a8f615726d1af857035820e334ada92d728f944b74681c2e1786159fecb84983fb786d3dd43d16f6a16fa406480017238cf01a91530701","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 2: map of 36 entries, at most 8: ERR_NON_CANONICAL_CBOR"}
|
|
|
],
|
|
|
"precedence": [
|
|
|
{"format":1,"hex":"a4006a646174656b6579636170010102582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202","name":"the type tag of PUBLIC_HEADER","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: type \"datekeycap\", want \"datekeys-control\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a5006a646174656b6579636170010102582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064700000000000000","name":"the type tag of PUBLIC_HEADER, and payload_length of 7 bytes","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: type \"datekeycap\", want \"datekeys-control\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a40070646174656b6579732d636f6e74726f6c010202581f010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202","name":"the schema version of another format, and a header_binding of 31 bytes","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: CONTROL_CBOR: codec: datekeys-control schema version 2, want 1: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"format":1,"hex":"a40070646174656b6579732d636f6e74726f6c010202582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202","name":"the schema version of another format, and no key 7","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: CONTROL_CBOR: codec: datekeys-control schema version 2, want 1: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"format":1,"hex":"a50070646174656b6579732d636f6e74726f6c010102581f0101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020580","name":"a header_binding of 31 bytes, and an empty noncritical array","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 2: codec: offset 24: a byte string of 31 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a50070646174656b6579732d636f6e74726f6c010102581f010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202","name":"a header_binding of 31 bytes, and a head of one entry more","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 2: codec: offset 24: a byte string of 31 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a40070646174656b6579732d636f6e74726f6c010102582001010101010101010101010101010101010101010101010101010101010101010703","name":"no key 3, and padding code 3","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 7 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a60070646174656b6579732d636f6e74726f6c0101025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020481a2006b6f72672e756e6b6e6f776e01010581a20061610101","name":"an extension_id in both arrays, and an unknown critical extension","result":"ok"},
|
|
|
{"format":1,"hex":"a60070646174656b6579732d636f6e74726f6c0258200101010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020481a200616101010581a20061610101","name":"an extension_id in both arrays, and keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 20: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a50070646174656b6579732d636f6e74726f6c010102582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202058000","name":"an empty noncritical array, and a trailing byte","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 5: extension: empty array; an absent array omits its key: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a60070646174656b6579732d636f6e74726f6c0101025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020481a2006b6f72672e756e6b6e6f776e01011400","name":"an unknown critical extension, and an unknown key","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 20 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a60070646174656b6579732d636f6e74726f6c0101025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020648001fc000000000011400","name":"payload_length L_MAX + 1, and an unknown key","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 6 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a50070646174656b6579732d636f6e74726f6c01010258200101010101010101010101010101010101010101010101010101010101010101035820020202020202020202020202020202020202020202020202020202020202020206470000000000000000","name":"payload_length of 7 bytes, and a trailing byte","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 6 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a50070646174656b6579732d636f6e74726f6c0258200101010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020703","name":"padding code 3, and keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 20: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":1,"hex":"a60070646174656b6579732d636f6e74726f6c0101025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202021400","name":"an unknown key, and a head of one entry more","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 20 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a6006a646174656b6579636170010202582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b00702","name":"the type tag of PUBLIC_HEADER","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: type \"datekeycap\", want \"datekeys-control\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a6006a646174656b65796361700102025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020647000000000000000702","name":"the type tag of PUBLIC_HEADER, and payload_length of 7 bytes","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: type \"datekeycap\", want \"datekeys-control\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a60070646174656b6579732d636f6e74726f6c010302581f010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b00702","name":"the schema version of another format, and a header_binding of 31 bytes","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: CONTROL_CBOR: codec: datekeys-control schema version 3, want 2: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"format":2,"hex":"a50070646174656b6579732d636f6e74726f6c010302582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b0","name":"the schema version of another format, and no key 7","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: CONTROL_CBOR: codec: datekeys-control schema version 3, want 2: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"format":2,"hex":"a70070646174656b6579732d636f6e74726f6c010202581f0101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020580064800000000000130b00702","name":"a header_binding of 31 bytes, and an empty noncritical array","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 2: codec: offset 24: a byte string of 31 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a70070646174656b6579732d636f6e74726f6c010202581f010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b00702","name":"a header_binding of 31 bytes, and a head of one entry more","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 2: codec: offset 24: a byte string of 31 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a50070646174656b6579732d636f6e74726f6c01020258200101010101010101010101010101010101010101010101010101010101010101064800000000000130b00703","name":"no key 3, and padding code 3","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 7: padding code 3 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a80070646174656b6579732d636f6e74726f6c0102025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020481a2006b6f72672e756e6b6e6f776e01010581a20061610101064800000000000130b00702","name":"an extension_id in both arrays, and an unknown critical extension","result":"ok"},
|
|
|
{"format":2,"hex":"a80070646174656b6579732d636f6e74726f6c0258200101010101010101010101010101010101010101010101010101010101010101010203582002020202020202020202020202020202020202020202020202020202020202020481a200616101010581a20061610101064800000000000130b00702","name":"an extension_id in both arrays, and keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 20: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a70070646174656b6579732d636f6e74726f6c0102025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020580064800000000000130b0070200","name":"an empty noncritical array, and a trailing byte","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 5: extension: empty array; an absent array omits its key: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a80070646174656b6579732d636f6e74726f6c0102025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020481a2006b6f72672e756e6b6e6f776e0101064800000000000130b007021400","name":"an unknown critical extension, and an unknown key","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 20 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a70070646174656b6579732d636f6e74726f6c0102025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020648001fc0000000000107021400","name":"payload_length L_MAX + 1, and an unknown key","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 6: payload_length 8936830510563329 exceeds L_MAX = 8936830510563328: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a60070646174656b6579732d636f6e74726f6c010202582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064700000000000000070200","name":"payload_length of 7 bytes, and a trailing byte","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 6: codec: offset 93: a byte string of 7 bytes outside 8..8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a60070646174656b6579732d636f6e74726f6c025820010101010101010101010101010101010101010101010101010101010101010101020358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b00703","name":"padding code 3, and keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 20: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":2,"hex":"a80070646174656b6579732d636f6e74726f6c010202582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b007021400","name":"an unknown key, and a head of one entry more","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 20 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a6006a646174656b6579636170010302582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b00702","name":"the type tag of PUBLIC_HEADER","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: type \"datekeycap\", want \"datekeys-control\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a6006a646174656b65796361700103025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020647000000000000000702","name":"the type tag of PUBLIC_HEADER, and payload_length of 7 bytes","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: type \"datekeycap\", want \"datekeys-control\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c010102581f010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b00702","name":"the schema version of another format, and a header_binding of 31 bytes","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: CONTROL_CBOR: codec: datekeys-control schema version 1, want 3: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"format":3,"hex":"a50070646174656b6579732d636f6e74726f6c010102582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b0","name":"the schema version of another format, and no key 7","result":"ERR_UNSUPPORTED_VERSION","text":"capsule: CONTROL_CBOR: codec: datekeys-control schema version 1, want 3: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"format":3,"hex":"a70070646174656b6579732d636f6e74726f6c010302581f0101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020580064800000000000130b00702","name":"a header_binding of 31 bytes, and an empty noncritical array","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 2: codec: offset 24: a byte string of 31 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a70070646174656b6579732d636f6e74726f6c010302581f010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b00702","name":"a header_binding of 31 bytes, and a head of one entry more","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 2: codec: offset 24: a byte string of 31 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a50070646174656b6579732d636f6e74726f6c01030258200101010101010101010101010101010101010101010101010101010101010101064800000000000130b00703","name":"no key 3, and padding code 3","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 7: padding code 3 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a80070646174656b6579732d636f6e74726f6c0103025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020481a2006b6f72672e756e6b6e6f776e01010581a20061610101064800000000000130b00702","name":"an extension_id in both arrays, and an unknown critical extension","result":"ok"},
|
|
|
{"format":3,"hex":"a80070646174656b6579732d636f6e74726f6c0258200101010101010101010101010101010101010101010101010101010101010101010303582002020202020202020202020202020202020202020202020202020202020202020481a200616101010581a20061610101064800000000000130b00702","name":"an extension_id in both arrays, and keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 20: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a70070646174656b6579732d636f6e74726f6c0103025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020580064800000000000130b0070200","name":"an empty noncritical array, and a trailing byte","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 5: extension: empty array; an absent array omits its key: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a80070646174656b6579732d636f6e74726f6c0103025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020481a2006b6f72672e756e6b6e6f776e0101064800000000000130b007021400","name":"an unknown critical extension, and an unknown key","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 20 is not defined: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a70070646174656b6579732d636f6e74726f6c0103025820010101010101010101010101010101010101010101010101010101010101010103582002020202020202020202020202020202020202020202020202020202020202020648001fc0000000000107021400","name":"payload_length L_MAX + 1, and an unknown key","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 6: payload_length 8936830510563329 exceeds L_MAX = 8936830510563328: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c010302582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064700000000000000070200","name":"payload_length of 7 bytes, and a trailing byte","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 6: codec: offset 93: a byte string of 7 bytes outside 8..8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c025820010101010101010101010101010101010101010101010101010101010101010101030358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b00703","name":"padding code 3, and keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: codec: offset 20: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"format":3,"hex":"a80070646174656b6579732d636f6e74726f6c010302582001010101010101010101010101010101010101010101010101010101010101010358200202020202020202020202020202020202020202020202020202020202020202064800000000000130b007021400","name":"an unknown key, and a head of one entry more","result":"ERR_NON_CANONICAL_CBOR","text":"capsule: CONTROL_CBOR: key 20 is not defined: ERR_NON_CANONICAL_CBOR"}
|
|
|
]
|
|
|
}
|
|
|
''';
|
|
|
|
|
|
/// Part of test/vectors/formats_profile.json.
|
|
|
const formatsProfileJson = r'''
|
|
|
{
|
|
|
"spec": "0.15",
|
|
|
"generator": "tool/formats_go_vectors.go",
|
|
|
"description": "Provider Profiles: profile.Decode of the Quicknet profile, edited and with fields replaced, and Profile.Validate of values.",
|
|
|
"decode": [
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","profile":{"chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":1692803367,"id":"datekeys:quicknet:v1","max_round":83903165811,"network":"quicknet","period":3,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"bls-unchained-g1-rfc9380"},"result":"ok"},
|
|
|
{"hex":"ab00781964","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 1: truncated input: map of 11 entries: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e91ed1fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081ae62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 204: a byte string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c650101027464b26174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_NON_CANONICAL_CBOR","text":"profile: key 2: codec: offset 32: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e6861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 204: map key 3 after key 6: keys must be strictly ascending: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c11c6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e6861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 239: a byte string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e64046871756769636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9c0a09bd274ca73bab4af5a6e9c76a4bc0","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 70: a text string where an unsigned integer was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e64047841616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616105582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a071b001fffffffffffff081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_NON_CANONICAL_CBOR","text":"profile: period 9007199254740991 s out of range: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e65740558208ef8ef7e8cf0becda163760fe01c2d2eeef1e18951dac1ed86232d255945014f06586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_PROFILE_MISMATCH","text":"profile datekeys:quicknet:v1: parameters hash to chain 52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971, not the pinned 8ef8ef7e8cf0becda163760fe01c2d2eeef1e18951dac1ed86232d255945014f: ERR_PROFILE_MISMATCH"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5821a0e415e215f38e8426ce6ec6f652d4c6e534686e038bab82d8aac9dda0c30520ea","result":"ERR_NON_CANONICAL_CBOR","text":"profile: key 10: codec: offset 242: a byte string of 33 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e6574055820c11da7002fbe7b2ab5db749677c90aed2afdf497830e0b1ffecb743c823b288806586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a071a00015180081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","profile":{"chain_hash":"c11da7002fbe7b2ab5db749677c90aed2afdf497830e0b1ffecb743c823b2888","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":1692803367,"id":"datekeys:quicknet:v1","max_round":2913305,"network":"quicknet","period":86400,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"bls-unchained-g1-rfc9380"},"result":"ok"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e64046864656661756c747305582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5821217aa09977a3480747135167fed84f5cb4ab0debe134bee98d7d60931729064532","result":"ERR_NON_CANONICAL_CBOR","text":"profile: key 10: codec: offset 242: a byte string of 33 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e6574055820ff9f6f94cd48e35f3cfe2ad23b5b256c0e64cc0685b8a1923565ac3e1252d0cd06586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e6212709600a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: invalid provider, network or scheme name: ERR_UNKNOWN_PROFILE"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103654472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: invalid provider, network or scheme name: ERR_UNKNOWN_PROFILE"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e65740558206889aad9dcb373aed5873d336eba3f07c5b06b3934126e49377534cbd2219582065860c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: public key is the identity element: ERR_UNKNOWN_PROFILE"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c65010102788161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616103656472616e640468717569636b6e6574055820cde8a1a106a6945de3af76386b03cba576aec53a2178e7fe55d8362db78b8d8706586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081b001fffffffffffff097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_UNKNOWN_PROFILE","text":"profile: invalid profile_id \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\": ERR_UNKNOWN_PROFILE"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e6574055820a6638745be1ca99f80d51041f6e3273c9bdbb9e25012deb60fc70fe6c111eac306583097f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: public key is not the canonical encoding of a point of the key group of bls-unchained-g1-rfc9380: ERR_UNKNOWN_PROFILE"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e6574055820a8ba473bd294be6712f4bb185ded6ced901fdd6f99d9c5b83310b510062e72a306586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_PROFILE_MISMATCH","text":"profile datekeys:quicknet:v1: parameters hash to chain 52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971, not the pinned a8ba473bd294be6712f4bb185ded6ced901fdd6f99d9c5b83310b510062e72a3: ERR_PROFILE_MISMATCH"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763203656472616e64046864656661756c747305582098cc48189f58aadf24efb12e0b68df95f034b1282408f2056cae1d799c5e431306586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","profile":{"chain_hash":"98cc48189f58aadf24efb12e0b68df95f034b1282408f2056cae1d799c5e4313","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":1692803367,"id":"datekeys:quicknet:v2","max_round":83903165811,"network":"defaults","period":3,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"bls-unchained-g1-rfc9380"},"result":"ok"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e64046864656661756c747305582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a581f1450c3147441a1a99f45f9af8af36522e8ead02f81698c54c5ad62e197e8a9","result":"ERR_NON_CANONICAL_CBOR","text":"profile: key 10: codec: offset 242: a byte string of 31 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e65740558204aa4595edb8fd7fa3e98d503b2d2c8fe20f06f428fb43700686ba2af394eeeae06583097f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb0703081a5f18588a097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: public key is not the canonical encoding of a point of the key group of bls-unchained-g1-rfc9380: ERR_UNKNOWN_PROFILE"}
|
|
|
],
|
|
|
"validate": [
|
|
|
{"profile":{"chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":1692803367,"id":"datekeys:quicknet:v1","max_round":83903165811,"network":"Q","period":3,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"bls-unchained-g1-rfc9380"},"result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: invalid provider, network or scheme name: ERR_UNKNOWN_PROFILE"},
|
|
|
{"profile":{"chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":0,"id":"datekeys:quicknet:v1","max_round":84467433600,"network":"quicknet","period":3,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"bls-unchained-g1-rfc9380"},"result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: invalid genesis time 0: ERR_UNKNOWN_PROFILE"},
|
|
|
{"profile":{"chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":1692803367,"id":"datekeys:quicknet:v1","max_round":83903165811,"network":"default","period":3,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"bls-unchained-g1-rfc9380"},"result":"ERR_PROFILE_MISMATCH","text":"profile datekeys:quicknet:v1: parameters hash to chain bb53bd3c1f404463b224d27e22872c4754f7d4f5549693d349f616c3ac27d4a9, not the pinned 52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971: ERR_PROFILE_MISMATCH"},
|
|
|
{"profile":{"chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":1692803367,"id":"datekeys:quicknet:v1","max_round":83903165811,"network":"quicknet","period":3,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"pedersen-bls-chained"},"result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: scheme \"pedersen-bls-chained\" is not bls-unchained-g1-rfc9380, the only scheme of V1: ERR_UNKNOWN_PROFILE"},
|
|
|
{"profile":{"chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":1692803367,"id":"datekeys:quicknet:v1","max_round":2913271,"network":"quicknet","period":86401,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"bls-unchained-g1-rfc9380"},"result":"ERR_NON_CANONICAL_CBOR","text":"profile \"datekeys:quicknet:v1\": period 24h0m1s is not a whole number of seconds in 1..86400: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"profile":{"chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":1692803367,"id":"datekeys:quicknet:v1","max_round":2913271,"network":"quicknet","period":86401,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"bls-unchained-g1-rfc9380"},"result":"ERR_NON_CANONICAL_CBOR","text":"profile \"datekeys:quicknet:v1\": period 24h0m1s is not a whole number of seconds in 1..86400: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"profile":{"chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":1692803367,"id":"datekeys:quicknet:v1","max_round":2913305,"network":"quicknet","period":86400,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"bls-unchained-g1-rfc9380"},"result":"ERR_PROFILE_MISMATCH","text":"profile datekeys:quicknet:v1: parameters hash to chain c11da7002fbe7b2ab5db749677c90aed2afdf497830e0b1ffecb743c823b2888, not the pinned 52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971: ERR_PROFILE_MISMATCH"},
|
|
|
{"profile":{"chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":1692803367,"id":"datekeys:quicknet:v1","max_round":83903165811,"network":"quicknet","period":3,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"nope"},"result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: \"nope\" is not a drand scheme: ERR_UNKNOWN_PROFILE"}
|
|
|
],
|
|
|
"precedence": [
|
|
|
{"hex":"ab006a646174656b657963617001010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"the type tag of PUBLIC_HEADER","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: type \"datekeycap\", want \"datekeys-provider-profile\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab006a646174656b657963617001010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0700081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"the type tag of PUBLIC_HEADER, and period 0","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: type \"datekeycap\", want \"datekeys-provider-profile\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab006a646174656b65796361700274646174656b6579733a717569636b6e65743a7631010103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"the type tag of PUBLIC_HEADER, and keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 14: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501020274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0700081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"schema version 2, and period 0","result":"ERR_UNSUPPORTED_VERSION","text":"profile: codec: datekeys-provider-profile schema version 2, want 1: ERR_UNSUPPORTED_VERSION"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c650274646174656b6579733a717569636b6e65743a7631010203656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"schema version 2, and keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 30: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c65010102615803656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a071a00015181081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"the profile_id X, and period 86401","result":"ERR_NON_CANONICAL_CBOR","text":"profile: period 86401 s out of range: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103654472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"the provider Drand","result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: invalid provider, network or scheme name: ERR_UNKNOWN_PROFILE"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103654472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e621270974706564657273656e2d626c732d636861696e65640a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"the provider Drand, and the scheme pedersen-bls-chained","result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: invalid provider, network or scheme name: ERR_UNKNOWN_PROFILE"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640469717569636b206e6574055820000000000000000000000000000000000000000000000000000000000000000006586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"the network quick net, and another chain_hash","result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: invalid provider, network or scheme name: ERR_UNKNOWN_PROFILE"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640469717569636b206e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e00","name":"the network quick net, and a trailing byte","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 275: 1 trailing bytes: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405581f0000000000000000000000000000000000000000000000000000000000000006586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a07030800097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"a chain_hash of 31 bytes, and genesis_time 0","result":"ERR_NON_CANONICAL_CBOR","text":"profile: key 5: codec: offset 73: a byte string of 31 bytes outside 32..32: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e6574055820000000000000000000000000000000000000000000000000000000000000000006583097f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"another chain_hash, and the public key of G1","result":"ERR_UNKNOWN_PROFILE","text":"profile datekeys:quicknet:v1: public key is not the canonical encoding of a point of the key group of bls-unchained-g1-rfc9380: ERR_UNKNOWN_PROFILE"},
|
|
|
{"hex":"ac007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e6574055820000000000000000000000000000000000000000000000000000000000000000006586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"another chain_hash, and a head of one entry more","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 1: map of 12 entries, at most 11: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ac007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106583097f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e1400","name":"the public key of G1, and an unknown key","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 1: map of 12 entries, at most 11: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"aa007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0700081a64e62127097818626c732d756e636861696e65642d67312d72666339333830","name":"period 0, and no key 10","result":"ERR_NON_CANONICAL_CBOR","text":"profile: 10 keys, want all 11: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"aa007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a071a00015181081a64e62127097818626c732d756e636861696e65642d67312d72666339333830","name":"period 86401, and no key 10","result":"ERR_NON_CANONICAL_CBOR","text":"profile: 10 keys, want all 11: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ac007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a07030800097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e1400","name":"genesis_time 0, and an unknown key","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 1: map of 12 entries, at most 11: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ac007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e621270974706564657273656e2d626c732d636861696e65640a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"the scheme pedersen-bls-chained, and a head of one entry more","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 1: map of 12 entries, at most 11: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ac007819646174656b6579732d70726f76696465722d70726f66696c6501010274646174656b6579733a717569636b6e65743a763103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e140000","name":"an unknown key, and a trailing byte","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 1: map of 12 entries, at most 11: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"ab007819646174656b6579732d70726f76696465722d70726f66696c650274646174656b6579733a717569636b6e65743a7631010103656472616e640468717569636b6e657405582052db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e97106586083cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a0703081a64e62127097818626c732d756e636861696e65642d67312d726663393338300a5820f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","name":"keys 1 and 2 swapped","result":"ERR_NON_CANONICAL_CBOR","text":"profile: codec: offset 30: map key 2 where key 1 was expected: ERR_NON_CANONICAL_CBOR"}
|
|
|
]
|
|
|
}
|
|
|
''';
|
|
|
|
|
|
/// Part of test/vectors/formats_extension.json.
|
|
|
const formatsExtensionJson = r'''
|
|
|
{
|
|
|
"spec": "0.15",
|
|
|
"generator": "tool/formats_go_vectors.go",
|
|
|
"description": "Extension arrays through codec.Unmarshal with extension.DecodeArray and EncodeArray, Canonical, CheckDisjoint, CheckCriticalIn and CheckNoncriticalIn with the registry placed of the generator (or CheckCritical and CheckNoncritical when object is empty, and no registry when registry is none), and CheckWrite with extension.Standard.",
|
|
|
"array": [
|
|
|
{"hex":"80","result":"ERR_NON_CANONICAL_CBOR","text":"extension: empty array; an absent array omits its key: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a10101","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"\": extension_id and extension_version are required: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a2006161011801","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"a\": key 1: codec: offset 6: 1 is not in its shortest form (initial byte 0x18): ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a2","result":"ERR_NON_CANONICAL_CBOR","text":"extension: codec: offset 0: a map where an array was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a20101006161","result":"ERR_NON_CANONICAL_CBOR","text":"extension: codec: offset 4: map key 0 after key 1: keys must be strictly ascending: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"a200","result":"ERR_NON_CANONICAL_CBOR","text":"extension: codec: offset 0: a map where an array was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"82a200600107a20067782e792d7a5f310107","result":"ERR_NON_CANONICAL_CBOR","text":"extension: invalid extension_id \"\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a300616101010280","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"a\": key 2: codec: offset 8: an array where a byte string was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"82a200626162011b001fffffffffffffa3006d6f72672e6578616d706c652e6101020241e3","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"ab\": key 1: codec: offset 16: unsigned integer 9007199254740991 above 4294967295: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"9841a200666530303030300101a200666530303030310101a200666530303030320101a200666530303030330101a200666530303030340101a200666530303030350101a200666530303030360101a200666530303030370101a200666530303030380101a200666530303030390101a200666530303031300101a200666530303031310101a200666530303031320101a200666530303031330101a200666530303031340101a200666530303031350101a200666530303031360101a200666530303031370101a200666530303031380101a200666530303031390101a200666530303032300101a200666530303032310101a200666530303032320101a200666530303032330101a200666530303032340101a200666530303032350101a200666530303032360101a200666530303032370101a200666530303032380101a200666530303032390101a200666530303033300101a200666530303033310101a200666530303033320101a200666530303033330101a200666530303033340101a200666530303033350101a200666530303033360101a200666530303033370101a200666530303033380101a200666530303033390101a200666530303034300101a200666530303034310101a200666530303034320101a200666530303034330101a200666530303034340101a200666530303034350101a200666530303034360101a200666530303034370101a200666530303034380101a200666530303034390101a200666530303035300101a200666530303035310101a200666530303035320101a200666530303035330101a200666530303035340101a200666530303035350101a200666530303035360101a200666530303035370101a200666530303035380101a200666530303035390101a200666530303036300101a200666530303036310101a200666530303036320101a200666530303036330101a200666530303036340101","result":"ERR_NON_CANONICAL_CBOR","text":"extension: codec: offset 2: array of 65 items, at most 64: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"83a30070efbbbf6f72672e6578616d706c652e610102024625b6bf7133e4a30064f0908080010702426342a20064f09080800109","result":"ERR_NON_CANONICAL_CBOR","text":"extension 𐀀: appears more than once: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"83a30062610001010243da92e4a300716f72672e6578616d706c652e6c6162656c010202440e59672fa200716f72672e6578616d706c652e6c6162656c0109","result":"ERR_NON_CANONICAL_CBOR","text":"extension org.example.label: appears more than once: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a300616101010300","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"a\": unknown key 3: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a300616101010240","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"a\": data is present but empty; an extension without data omits key 2: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a20063ebff620101","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"\": key 0: codec: offset 3: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"82a3006161011b001fffffffffffff024144a300617a01000245ce22a2f0c6","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"a\": key 1: codec: offset 15: unsigned integer 9007199254740991 above 4294967295: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"82a300790101616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616101010241cba3006d646174656b6579732e6e6f74650107024667d15d3a259e","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"\": key 0: codec: offset 6: a text string of 257 bytes outside 0..256: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a20101006161","result":"ERR_NON_CANONICAL_CBOR","text":"extension: codec: offset 4: map key 0 after key 1: keys must be strictly ascending: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"82a200600100a30062c3a9011affffffff0241ac","result":"ERR_NON_CANONICAL_CBOR","text":"extension: invalid extension_id \"\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a2006361ff620101","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"\": key 0: codec: offset 3: text string is not valid UTF-8: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a200050101","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"\": key 0: codec: offset 3: an unsigned integer where a text string was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"5f","result":"ERR_NON_CANONICAL_CBOR","text":"extension: codec: offset 0: indefinite length (initial byte 0x5f): ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a300600100024483b9cdd0","result":"ERR_NON_CANONICAL_CBOR","text":"extension: invalid extension_id \"\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"82a3006162011b00000001000000000242693fa30067782e792d7a5f3101000242f967","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"b\": key 1: codec: offset 15: unsigned integer 4294967296 above 4294967295: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a1006161","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"a\": extension_id and extension_version are required: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a300616101010280","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"a\": key 2: codec: offset 8: an array where a byte string was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a30070646174656b6579732e63617073756c65011b00000001000000000243e19c22","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"datekeys.capsule\": key 1: codec: offset 30: unsigned integer 4294967296 above 4294967295: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a20101006161","result":"ERR_NON_CANONICAL_CBOR","text":"extension: codec: offset 4: map key 0 after key 1: keys must be strictly ascending: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"85a300626162011affffffff0242fd68a30070646174656b6579732e63617073756c650101024245fda3006d646174656b6579732e6e6f7465010102467ba2de77bd3ca300716f72672e6578616d706c652e6c6162656c010202456ec4b37890a200716f72672e6578616d706c652e6c6162656c0109","result":"ERR_NON_CANONICAL_CBOR","text":"extension org.example.label: appears more than once: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a30061610101026178","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"a\": key 2: codec: offset 8: a text string where a byte string was expected: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a2006161011801","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"a\": key 1: codec: offset 6: 1 is not in its shortest form (initial byte 0x18): ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"84a3006001000245e089bb036aa3006d6f72672e6578616d706c652e61011affffffff02410ba300716f72672e6578616d706c652e6c6162656c0107024217e5a20067782e792d7a5f310100","result":"ERR_NON_CANONICAL_CBOR","text":"extension: invalid extension_id \"\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"hex":"81a10101","result":"ERR_NON_CANONICAL_CBOR","text":"extension \"\": extension_id and extension_version are required: ERR_NON_CANONICAL_CBOR"}
|
|
|
],
|
|
|
"canonical": [
|
|
|
{"extensions":[["b",2,"ba90"],["datekeys.capsule",1,"90"],["a\u0000",0,"2aca427436"],["Z",4294967296,null]],"result":"ERR_NON_CANONICAL_CBOR","text":"extension Z: extension_version 4294967296 exceeds 4294967295: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"extensions":[["o.000",1,null],["o.001",1,null],["o.002",1,null],["o.003",1,null],["o.004",1,null],["o.005",1,null],["o.006",1,null],["o.007",1,null],["o.008",1,null],["o.009",1,null],["o.010",1,null],["o.011",1,null],["o.012",1,null],["o.013",1,null],["o.014",1,null],["o.015",1,null],["o.016",1,null],["o.017",1,null],["o.018",1,null],["o.019",1,null],["o.020",1,null],["o.021",1,null],["o.022",1,null],["o.023",1,null],["o.024",1,null],["o.025",1,null],["o.026",1,null],["o.027",1,null],["o.028",1,null],["o.029",1,null],["o.030",1,null],["o.031",1,null],["o.032",1,null],["o.033",1,null],["o.034",1,null],["o.035",1,null],["o.036",1,null],["o.037",1,null],["o.038",1,null],["o.039",1,null],["o.040",1,null],["o.041",1,null],["o.042",1,null],["o.043",1,null],["o.044",1,null],["o.045",1,null],["o.046",1,null],["o.047",1,null],["o.048",1,null],["o.049",1,null],["o.050",1,null],["o.051",1,null],["o.052",1,null],["o.053",1,null],["o.054",1,null],["o.055",1,null],["o.056",1,null],["o.057",1,null],["o.058",1,null],["o.059",1,null],["o.060",1,null],["o.061",1,null],["o.062",1,null],["o.063",1,null],["o.064",1,null]],"result":"ERR_NON_CANONICAL_CBOR","text":"extension: 65 extensions in one array, at most 64: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"extensions":[["",7,"608754"],["é",1,"78c418fb4a27"]],"result":"ERR_NON_CANONICAL_CBOR","text":"extension: invalid extension_id \"\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"extensions":[["。",2,null],["",1,null],["Z",0,null],["b",0,null],["datekeys.note",1,"5b7a"]],"result":"ERR_NON_CANONICAL_CBOR","text":"extension: invalid extension_id \"\": ERR_NON_CANONICAL_CBOR"},
|
|
|
{"extensions":[["o.000",1,null],["o.001",1,null],["o.002",1,null],["o.003",1,null],["o.004",1,null],["o.005",1,null],["o.006",1,null],["o.007",1,null],["o.008",1,null],["o.009",1,null],["o.010",1,null],["o.011",1,null],["o.012",1,null],["o.013",1,null],["o.014",1,null],["o.015",1,null],["o.016",1,null],["o.017",1,null],["o.018",1,null],["o.019",1,null],["o.020",1,null],["o.021",1,null],["o.022",1,null],["o.023",1,null],["o.024",1,null],["o.025",1,null],["o.026",1,null],["o.027",1,null],["o.028",1,null],["o.029",1,null],["o.030",1,null],["o.031",1,null],["o.032",1,null],["o.033",1,null],["o.034",1,null],["o.035",1,null],["o.036",1,null],["o.037",1,null],["o.038",1,null],["o.039",1,null],["o.040",1,null],["o.041",1,null],["o.042",1,null],["o.043",1,null],["o.044",1,null],["o.045",1,null],["o.046",1,null],["o.047",1,null],["o.048",1,null],["o.049",1,null],["o.050",1,null],["o.051",1,null],["o.052",1,null],["o.053",1,null],["o.054",1,null],["o.055",1,null],["o.056",1,null],["o.057",1,null],["o.058",1,null],["o.059",1,null],["o.060",1,null],["o.061",1,null],["o.062",1,null],["o.063",1,null],["o.064",1,null]],"result":"ERR_NON_CANONICAL_CBOR","text":"extension: 65 extensions in one array, at most 64: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"extensions":[["o.000",1,null],["o.001",1,null],["o.002",1,null],["o.003",1,null],["o.004",1,null],["o.005",1,null],["o.006",1,null],["o.007",1,null],["o.008",1,null],["o.009",1,null],["o.010",1,null],["o.011",1,null],["o.012",1,null],["o.013",1,null],["o.014",1,null],["o.015",1,null],["o.016",1,null],["o.017",1,null],["o.018",1,null],["o.019",1,null],["o.020",1,null],["o.021",1,null],["o.022",1,null],["o.023",1,null],["o.024",1,null],["o.025",1,null],["o.026",1,null],["o.027",1,null],["o.028",1,null],["o.029",1,null],["o.030",1,null],["o.031",1,null],["o.032",1,null],["o.033",1,null],["o.034",1,null],["o.035",1,null],["o.036",1,null],["o.037",1,null],["o.038",1,null],["o.039",1,null],["o.040",1,null],["o.041",1,null],["o.042",1,null],["o.043",1,null],["o.044",1,null],["o.045",1,null],["o.046",1,null],["o.047",1,null],["o.048",1,null],["o.049",1,null],["o.050",1,null],["o.051",1,null],["o.052",1,null],["o.053",1,null],["o.054",1,null],["o.055",1,null],["o.056",1,null],["o.057",1,null],["o.058",1,null],["o.059",1,null],["o.060",1,null],["o.061",1,null],["o.062",1,null],["o.063",1,null],["o.064",1,null]],"result":"ERR_NON_CANONICAL_CBOR","text":"extension: 65 extensions in one array, at most 64: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"extensions":[["a\u0000",0,null],["datekeys.note",4294967296,null],["x.y-z_1",0,"196b623f"],["datekeys.capsule",4294967295,"e79e"],["org.example.b",0,null]],"result":"ERR_NON_CANONICAL_CBOR","text":"extension datekeys.note: extension_version 4294967296 exceeds 4294967295: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"extensions":[["o.000",1,null],["o.001",1,null],["o.002",1,null],["o.003",1,null],["o.004",1,null],["o.005",1,null],["o.006",1,null],["o.007",1,null],["o.008",1,null],["o.009",1,null],["o.010",1,null],["o.011",1,null],["o.012",1,null],["o.013",1,null],["o.014",1,null],["o.015",1,null],["o.016",1,null],["o.017",1,null],["o.018",1,null],["o.019",1,null],["o.020",1,null],["o.021",1,null],["o.022",1,null],["o.023",1,null],["o.024",1,null],["o.025",1,null],["o.026",1,null],["o.027",1,null],["o.028",1,null],["o.029",1,null],["o.030",1,null],["o.031",1,null],["o.032",1,null],["o.033",1,null],["o.034",1,null],["o.035",1,null],["o.036",1,null],["o.037",1,null],["o.038",1,null],["o.039",1,null],["o.040",1,null],["o.041",1,null],["o.042",1,null],["o.043",1,null],["o.044",1,null],["o.045",1,null],["o.046",1,null],["o.047",1,null],["o.048",1,null],["o.049",1,null],["o.050",1,null],["o.051",1,null],["o.052",1,null],["o.053",1,null],["o.054",1,null],["o.055",1,null],["o.056",1,null],["o.057",1,null],["o.058",1,null],["o.059",1,null],["o.060",1,null],["o.061",1,null],["o.062",1,null],["o.063",1,null],["o.064",1,null]],"result":"ERR_NON_CANONICAL_CBOR","text":"extension: 65 extensions in one array, at most 64: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"extensions":[["b",2,"667d6d6dc811"],["org.example.a",0,"4f4fd07964cd"],["org.example.b",4294967295,"50"]],"result":"ok","sorted":[["b",2,"667d6d6dc811"],["org.example.a",0,"4f4fd07964cd"],["org.example.b",4294967295,"50"]]},
|
|
|
{"extensions":[["ab",1,"406c"],["b",4294967295,"538dd0"],["org.example.b",4294967295,null],["。",4294967295,"625de5d7aa82"]],"result":"ok","sorted":[["ab",1,"406c"],["b",4294967295,"538dd0"],["org.example.b",4294967295,null],["。",4294967295,"625de5d7aa82"]]}
|
|
|
],
|
|
|
"disjoint": [
|
|
|
{"critical":[["ab",1,"38"],["b",4294967295,"1eee0c"]],"noncritical":[["Z",0,"f4af392f693d"],["ab",4294967295,"960b27f9a2"],["。",4294967295,null]],"result":"ERR_NON_CANONICAL_CBOR","text":"extension ab: both critical and noncritical: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[["x.y-z_1",4294967295,null]],"noncritical":[["Z",0,null],["a",1,"cb"],["datekeys.capsule",2,"f4abe2da8e"]],"result":"ok"},
|
|
|
{"critical":[["。",4294967295,"4753"],["x.y-z_1",1,"daff6f"],["datekeys.note",4294967295,null],["ab",1,"5be7"]],"noncritical":[["b",2,null]],"result":"ok"},
|
|
|
{"critical":[["x.y-z_1",7,null]],"noncritical":[["ab",0,"48869db9fa"]],"result":"ok"},
|
|
|
{"critical":[["org.example.a",1,"5b3934b6"],["。",1,"bcb1"],["b",0,null]],"noncritical":[["a\u0000",1,null],["b",4294967295,null],["datekeys.capsule",0,"685de669"],["datekeys.note",7,"5511cd"]],"result":"ERR_NON_CANONICAL_CBOR","text":"extension b: both critical and noncritical: ERR_NON_CANONICAL_CBOR"},
|
|
|
{"critical":[["a",1,"d1"],["z",0,null],["。",0,null]],"noncritical":[["datekeys.capsule",0,"989533f0cf"],["datekeys.note",1,"893c"]],"result":"ok"},
|
|
|
{"critical":[["。",2,"6cbfa4ad93"]],"noncritical":[["a",2,"9e7ac6"],["datekeys.capsule",0,null],["org.example.a",2,null],["org.example.b",1,null]],"result":"ok"}
|
|
|
],
|
|
|
"registry": [
|
|
|
{"critical":[],"noncritical":[["org.a",1,"6f6b"]],"object":"head","result":"ok","unusable":[]},
|
|
|
{"critical":[],"noncritical":[["org.z",1,"6b6f21"],["org.ctl",1,"6b6f21"]],"object":".dkk","result":"ok","unusable":[]},
|
|
|
{"critical":[["org.note",1,"6b6f21"],["org.b",2,"6e6f"],["org.a",1,"6e6f"]],"noncritical":[["org.ctl",1,null],["org.b",1,"6f6b"],["org.z",1,"6e6f"]],"object":"PUBLIC_HEADER","result":"ERR_EXTENSION_CRITICAL_UNKNOWN","text":"extension org.note v1: known, but not registered for the critical_extensions of PUBLIC_HEADER: ERR_EXTENSION_CRITICAL_UNKNOWN","unusable":[]},
|
|
|
{"critical":[],"noncritical":[],"object":"head","result":"ok","unusable":[]},
|
|
|
{"critical":[["org.note",1,"6e6f"],["org.b",2,"6b6f21"],["org.z",1,null]],"noncritical":[["org.ctl",2,"6f6b"]],"object":"PUBLIC_HEADER","registry":"none","result":"ERR_EXTENSION_CRITICAL_UNKNOWN","text":"extension org.note v1: ERR_EXTENSION_CRITICAL_UNKNOWN","unusable":[]},
|
|
|
{"critical":[["org.b",2,"6e6f"],["org.z",2,"6e6f"]],"noncritical":[["org.z",1,"6e6f"]],"object":"head","result":"ERR_EXTENSION_CRITICAL_UNKNOWN","text":"extension org.b v2: ERR_EXTENSION_CRITICAL_UNKNOWN","unusable":[]},
|
|
|
{"critical":[],"noncritical":[["org.b",1,"6b6f21"],["org.z",1,null],["org.a",1,null]],"object":"CONTROL_CBOR","result":"ok","unusable":[["org.b",1,"extension org.b v1: data: a data of 3 bytes: ERR_EXTENSION_DATA_INVALID: ERR_EXTENSION_DATA_INVALID"],["org.a",1,"extension org.a v1: data: want \"ok\": ERR_EXTENSION_DATA_INVALID"]]},
|
|
|
{"critical":[["org.a",1,"6b6f21"],["org.ctl",1,"6b6f21"]],"noncritical":[["org.z",1,"6f6b"]],"object":"PUBLIC_HEADER","result":"ERR_EXTENSION_CRITICAL_UNKNOWN","text":"extension org.ctl v1: known, but not registered for the critical_extensions of PUBLIC_HEADER: ERR_EXTENSION_CRITICAL_UNKNOWN","unusable":[]},
|
|
|
{"critical":[["org.note",1,"6f6b"]],"noncritical":[["org.b",1,null],["org.z",1,null],["org.ctl",1,"6e6f"]],"object":"PUBLIC_HEADER","result":"ERR_EXTENSION_CRITICAL_UNKNOWN","text":"extension org.note v1: known, but not registered for the critical_extensions of PUBLIC_HEADER: ERR_EXTENSION_CRITICAL_UNKNOWN","unusable":[["org.b",1,"extension org.b v1: data: want \"ok\": ERR_EXTENSION_DATA_INVALID"]]},
|
|
|
{"critical":[],"noncritical":[["org.a",1,"6e6f"],["org.b",1,"6b6f21"]],"object":"PUBLIC_HEADER","result":"ok","unusable":[["org.a",1,"extension org.a v1: data: want \"ok\": ERR_EXTENSION_DATA_INVALID"],["org.b",1,"extension org.b v1: data: a data of 3 bytes: ERR_EXTENSION_DATA_INVALID: ERR_EXTENSION_DATA_INVALID"]]},
|
|
|
{"critical":[["org.ctl",1,"6b6f21"],["org.note",1,null]],"noncritical":[],"object":".dkk","registry":"none","result":"ERR_EXTENSION_CRITICAL_UNKNOWN","text":"extension org.ctl v1: ERR_EXTENSION_CRITICAL_UNKNOWN","unusable":[]},
|
|
|
{"critical":[["org.ctl",2,"6e6f"]],"noncritical":[["org.note",2,"6b6f21"],["org.a",2,"6e6f"],["org.z",1,null]],"object":"PUBLIC_HEADER","result":"ERR_EXTENSION_CRITICAL_UNKNOWN","text":"extension org.ctl v2: ERR_EXTENSION_CRITICAL_UNKNOWN","unusable":[]},
|
|
|
{"critical":[],"noncritical":[],"object":"CONTROL_CBOR","result":"ok","unusable":[]},
|
|
|
{"critical":[],"noncritical":[],"object":".dkk","result":"ok","unusable":[]},
|
|
|
{"critical":[],"noncritical":[["org.b",2,"6e6f"],["org.a",1,"6e6f"],["org.z",2,"6b6f21"]],"object":"CONTROL_CBOR","result":"ok","unusable":[["org.a",1,"extension org.a v1: data: want \"ok\": ERR_EXTENSION_DATA_INVALID"]]}
|
|
|
],
|
|
|
"write": [
|
|
|
{"array":"critical_extensions","extensions":[["datekeys.note",2,"436172746173"],["datekeys.capsule",1,null]],"object":".dkk","result":"error","text":"extension: datekeys.capsule version 1 is not registered for critical_extensions of .dkk: an encoder must not write it there (spec §72)"},
|
|
|
{"array":"noncritical_extensions","extensions":[["datekeys.capsule",1,"436172746173"],["datekeys.note",1,"436172746173"]],"object":"head","result":"error","text":"extension: datekeys.capsule version 1 is not registered for noncritical_extensions of head: an encoder must not write it there (spec §72)"},
|
|
|
{"array":"critical_extensions","extensions":[["datekeys.note",1,null]],"object":"PUBLIC_HEADER","result":"error","text":"extension: datekeys.note version 1 is not registered for critical_extensions of PUBLIC_HEADER: an encoder must not write it there (spec §72)"},
|
|
|
{"array":"noncritical_extensions","extensions":[["datekeys.capsule",1,"436172746173"]],"object":"CONTROL_CBOR","result":"error","text":"extension: datekeys.capsule version 1 is not registered for noncritical_extensions of CONTROL_CBOR: an encoder must not write it there (spec §72)"},
|
|
|
{"array":"critical_extensions","extensions":[["datekeys.note",1,"436172746173"]],"object":"PUBLIC_HEADER","result":"error","text":"extension: datekeys.note version 1 is not registered for critical_extensions of PUBLIC_HEADER: an encoder must not write it there (spec §72)"},
|
|
|
{"array":"noncritical_extensions","extensions":[["org.example",2,"436172746173"],["org.example",1,"436172746173"]],"object":"CONTROL_CBOR","result":"ok"},
|
|
|
{"array":"noncritical_extensions","extensions":[["datekeys.capsule",1,"436172746173"]],"object":"CONTROL_CBOR","result":"error","text":"extension: datekeys.capsule version 1 is not registered for noncritical_extensions of CONTROL_CBOR: an encoder must not write it there (spec §72)"},
|
|
|
{"array":"noncritical_extensions","extensions":[["org.example",1,"436172746173"]],"object":".dkk","result":"ok"}
|
|
|
]
|
|
|
}
|
|
|
''';
|
|
|
|
|
|
/// Part of test/vectors/formats_datekey.json.
|
|
|
const formatsDatekeyJson = r'''
|
|
|
{
|
|
|
"spec": "0.15",
|
|
|
"generator": "tool/formats_go_vectors.go",
|
|
|
"description": "dk1_ strings (datekey.Parse).",
|
|
|
"parse": [
|
|
|
{"input":"","result":"ERR_DATEKEY_INVALID","text":"datekey: missing \"dk1_\" prefix: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_ééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé","result":"ERR_DATEKEY_INVALID","text":"datekey: input longer than 256 bytes: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MzgwMzg0ODQ4MDMzMjE0OH0","network":"datekeys:quicknet:v1","result":"ok","round":3803848480332148},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWEiLCJyb3VuZCI6Nzg4MjgzODAxNTkzNDQyMX0","network":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","result":"ok","round":7882838015934421},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWEiLCJyb3VuZCI6NzY0NjY0NjU5MzY3NDI1Mn0","network":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","result":"ok","round":7646646593674252},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSIsInJvdW5kIjoxNjEwMTIzNTYwNjM3NzYwfQ","network":"a","result":"ok","round":1610123560637760},
|
|
|
{"input":"dk1_DHsidmVyc2lvbiI6MQosIm5ldHdvcmsiOiJ4Lnlfei13OjEiLCJyb3VuZCI6DDgzOTAzMTY1ODExLCJyb3VuZCI6ODM5MDMxNjU4MTF9","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiw6kifQd","result":"ERR_DATEKEY_INVALID","text":"datekey: trailing data after the JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCAgIm5ldHdvcmsiOgkiYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWEifQ","result":"ERR_DATEKEY_INVALID","text":"datekey: expected exactly the fields version, network and round: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_ew0idmVyc2lvbiI6DDEsIm5ldHdvcmsiOnsieCI6WzEseyJ5IjpudWxsfV19LCAgInJvdW5kIjoyCn0","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoNMSwibmV0d29yayI6ImEiLCJyb3VuZCI6MS41fTE","result":"ERR_DATEKEY_INVALID","text":"datekey: trailing data after the JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLjAsIm5ldHdvcmsiOiIwIiwicm91bmQiOjIyLCJ4Ijp7fX","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJ=zaW9uIjoxLCAibmV0d29yayI6ImRhdGVrZXlzXHUwMDNhcXVpY2tuZXQ6djEiLCJyb3VuZCI6NTE0MTAwOTQxMzQ0OTU2fQ","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not Base64URL: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSBiIiwicm91bmQiOgw0NTYzOTQ1NjY0OTMxMzF9","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSIsInJvdW5kIiA6MX0","result":"ERR_DATEKEY_NON_CANONICAL","text":"datekey: not the canonical encoding dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSIsInJvdW5kIjoxfQ: ERR_DATEKEY_NON_CANONICAL"},
|
|
|
{"input":"dk1_eyJuZXR3b3JrIjoiXHVkODNkXHVkZTAwIiwicm91bmQiOnRydSAgLCJ2ZXJzaW9uIjpbMSwiYSIsdHJ1ZSxudWxsLHsiYiI6MiwiYSI6W119XQx9","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLAkibmV0d29yayI6CiIwIgosInJvdW5kIjo4NDc4NTUxMDE5MDM0NDg4fQ==","result":"ERR_DATEKEY_NON_CANONICAL","text":"datekey: not the canonical encoding dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMCIsInJvdW5kIjo4NDc4NTUxMDE5MDM0NDg4fQ: ERR_DATEKEY_NON_CANONICAL"},
|
|
|
{"input":"dk1_eyJcdTAwNzZlcnNpb24iOjEsIm5ldHdvcmsiOm51bGwsICJyb3VuZCI6ODM5MDMxNjU4MTJ9CQ","result":"ERR_DATEKEY_INVALID","text":"datekey: invalid network <nil>: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyAiXHUwMDc2ZXJzaW9uIjoMMQ0sIm5ldHdvcmsiOiJhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYSIsInJvdW5kIjoxNjQzMDM3ODA2NTYyNDgzfa","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoJMSwibmV0d29yayI6ImEiLCJyb3VuZCINOjE4NDQ2NzQ0MDczNzA5NTUxNjE2fQ","result":"ERR_DATEKEY_INVALID","text":"datekey: invalid round 18446744073709551616: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJcdTAwNzZlcnNpb24iOjEKLCJuZXR3b3JrIjoiMCIsInJvdW5kIjogODM5MDMxNjU4MTJ9","result":"ERR_DATEKEY_NON_CANONICAL","text":"datekey: not the canonical encoding dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMCIsInJvdW5kIjo4MzkwMzE2NTgxMn0: ERR_DATEKEY_NON_CANONICAL"},
|
|
|
{"input":"dk1_IHsidmVyc2lvbiI6MQosIm5ldHdvcmsiOiJkYXRla2V5czpxdWlja25ldDp2MSIsInJvdW5kIjo3NzE3Njk4ODQ3ODM4Njc0fQ","result":"ERR_DATEKEY_NON_CANONICAL","text":"datekey: not the canonical encoding dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6NzcxNzY5ODg0NzgzODY3NH0: ERR_DATEKEY_NON_CANONICAL"},
|
|
|
{"input":"dk1_77u/eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6CTQ1LCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEifQ==","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSBiIiwicm91bmQiOjY1MTI2NTg2Mzc4MDEzNTksIm5ldHdvcmsiOiJhIGIifQ","result":"ERR_DATEKEY_INVALID","text":"datekey: invalid network a b: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIiA6MSwibmV0d29yayI6IjAiLCJyb3VuZCI6Njg0OTgxNzAwMjMwNjI1MX0","result":"ERR_DATEKEY_NON_CANONICAL","text":"datekey: not the canonical encoding dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMCIsInJvdW5kIjo2ODQ5ODE3MDAyMzA2MjUxfQ: ERR_DATEKEY_NON_CANONICAL"},
|
|
|
{"input":"dk1_eyJcdTAwNzZlcnNpb24iOjEsDCJuZXR3b3JrIjoiIiwicm91bmQiOmZhbHNlfQ","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJyb3VuZCI6MTUwMjQ5MTExMzc0NzAyOSAsInZlcnNpb24iOjEsICAibmV0d29yayIKOiJhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYSIgIH0=","result":"ERR_DATEKEY_NON_CANONICAL","text":"datekey: not the canonical encoding dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWEiLCJyb3VuZCI6MTUwMjQ5MTExMzc0NzAyOX0: ERR_DATEKEY_NON_CANONICAL"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIgo6IjEiLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiDSwicm91bmQiOjg5LCJ4IjpbXX0=","result":"ERR_DATEKEY_INVALID","text":"datekey: expected exactly the fields version, network and round: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjp7fSwibmV0d29yayI6ImRhdGVrZXlzOnF1aWNrbmV0OnYxIiwicm91bmQiOjczMTU5ODE0OTE4NzcyNDl9eA","result":"ERR_DATEKEY_INVALID","text":"datekey: trailing data after the JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSIgICwicm91bmQiOjExNDM2MDc4ODc4NTYzNDJ9","result":"ERR_DATEKEY_NON_CANONICAL","text":"datekey: not the canonical encoding dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYSIsInJvdW5kIjoxMTQzNjA3ODg3ODU2MzQyfQ: ERR_DATEKEY_NON_CANONICAL"},
|
|
|
{"input":"dk1_DXsidmVyc2lvbiI6MSAgLCJuZXR3b3JrIjoiYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWEiLCJyb3VuZCI6Njc5NDA1MjM4NTMzODc4OQksIm5ldHdvcmsiOiJhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYSJ9AA","result":"ERR_DATEKEY_INVALID","text":"datekey: input longer than 256 bytes: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiYVx1ZDgwMCIsInJvdW5kIjo3fQ","result":"ERR_DATEKEY_INVALID","text":"datekey: invalid network a<>: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJcdTAwNzZlcnNpb24iOjEgLCJuZXR3b3JrIiA6IngueV96LXc6MSIsInJvdW5kIjoxZTN9","result":"ERR_DATEKEY_NON_CANONICAL","text":"datekey: not the canonical encoding dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoieC55X3otdzoxIiwicm91bmQiOjEwMDB9: ERR_DATEKEY_NON_CANONICAL"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLAkibmV0d29yayI6ICJ4Lnlfei13OjEiLCJyb3VuZCI6NjQ5MzA2Nzg5NjQ0NzI0NX0=","result":"ERR_DATEKEY_NON_CANONICAL","text":"datekey: not the canonical encoding dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoieC55X3otdzoxIiwicm91bmQiOjY0OTMwNjc4OTY0NDcyNDV9: ERR_DATEKEY_NON_CANONICAL"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCAibmV0d29yayI6IjAiLCJyb3VuZCI6MzIxMzA4NDYxNTQwNDM1Nn0","result":"ERR_DATEKEY_NON_CANONICAL","text":"datekey: not the canonical encoding dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMCIsInJvdW5kIjozMjEzMDg0NjE1NDA0MzU2fQ: ERR_DATEKEY_NON_CANONICAL"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIgw6MSwibmV0d29yayI6IjAiLCJyb3VuZCIKOjJV","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCAgIm5ldHdvcmsiOiJhIiwicm91bmQiOiAyNDEwMjY0NjU2OTQxMzQ5LAoibmV0d29yayI6ImEifv","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_IHsidmVyc2lvbiI6MQksICAibmV0d29yayI6ICJhIiwicm91bmQiOjIzNDc4ODE5NzQzMzA3MjMgICwieCI6MQx9","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_CXsidmVyc2lvbiI6e30sIm5ldHdvcmsiOiJ4Lnlfei13OjEiDSwicm91bmQiCToxNzg5NTY1MzIyMDk1Mjc5LCJyb3VuZCI6IDE3ODk1NjUzMjIwOTUyNzl9","result":"ERR_DATEKEY_INVALID","text":"datekey: unsupported version map[]: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_CnsidmVyc2lvbiI6MSwibmV0d29yayI6IjAiLCJyb3VuZCI6NjY2NDI3MjIwNjYwNTUwMywieCI6bnVsbH0","result":"ERR_DATEKEY_INVALID","text":"datekey: expected exactly the fields version, network and round: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_ewoidmVyc2lvbiI6WzEsImEiLHRydWUsbnVsbCx7ImIiOjIsImEiOltdfV0sIm5ldHdvcmsiOiAgIlx1ZDgzZFx1ZGUwMCIsInJvdW5kIjo5 MDA3MTk5MjU0NzQwOTkxLjB9IA==","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not Base64URL: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxCSwibmV0d29yayI6ICAiMCIgLCJyb3VuZCIgIDp0cnV9","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_ew0idmVyc=2lvbiI6MCwJIm5ldHdvcmsiOiJcdWQ4M2RcdWRlMDAiLCJyb3VuZCI6Mzk5MzE4Mzg2MTc1OTEzNiwieCI6e319","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not Base64URL: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxICwibmV0d29yayI6ImFcdWQ4MDAiLCJyb3VuZCI6ODgzNTA1NjE0NDA2MDgwNyB9","result":"ERR_DATEKEY_INVALID","text":"datekey: invalid network a<>: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMCIsInJvdW5kIjo0MDg2MzY1NzY5OTgxOTU3fy","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIiA6MSwibmV0d29yayI6ImEiLCJyb3VuZCI6N","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not Base64URL: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjotMCwibmV0d29yayI6ImRhdGVrZXlzOnF1aWNrbmV0OnYxIiwicm91bmQiOjE4NDQ2NzQ0MDczNzA5NTUxNjE1LCJyb3VuZCI6MTg0NDY3NDQwNzM3MDk1NTE2MTV9","result":"ERR_DATEKEY_INVALID","text":"datekey: unsupported version -0: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_DXsJInZlcnNpb24iDDoxLCJuZXR3b3JrIjoiYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWEiLCJyb3VuZCI6MTAwMCAgfQ==","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjp0cnVlLAkibmV0d29yayI6IDEsInJvdW5kIjo2MX0=","result":"ERR_DATEKEY_INVALID","text":"datekey: unsupported version true: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoMeyJ4IjpbMSx7InkiOm51bGx9XX0sInJvdW5kIjo5MDA3MTk5MjU0NzQwOTkxLjB9","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIiAgOiIwIiwicm91bmQiOjc0NTg5NjE2ODgxMzE3NzVs","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxZQosIm5ldHdvcmsiOiJhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYSIsInJvdW5kIjoxfQ","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiQSJ9","result":"ERR_DATEKEY_INVALID","text":"datekey: expected exactly the fields version, network and round: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoKIngueV96LXc6MSJ9","result":"ERR_DATEKEY_INVALID","text":"datekey: expected exactly the fields version, network and round: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxZTAKLCJyb3VuZCI6MzYyOTA3OTAzNzA=2MDAyMCwibmV0d29yayI6ImEifQ","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not Base64URL: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJcdTAwNzZlcnNpb24iOjEsIm5ldHdvcmsiOiJkYXRla2V5czpxdWlja25ldDp2MSIsDCJyb3VuZCI6ICA5MDA3MTk5MjU0NzQwOTkyIH0","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not a JSON object: ERR_DATEKEY_INVALID"},
|
|
|
{"input":"dk1_eyJcdTAwNzZlcnNpb24iOjEsIm5ldHdvcmsiOiJ4Lnlfei13OjEiLCJyb3VuZCI6NzJ9","result":"ERR_DATEKEY_NON_CANONICAL","text":"datekey: not the canonical encoding dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoieC55X3otdzoxIiwicm91bmQiOjcyfQ: ERR_DATEKEY_NON_CANONICAL"},
|
|
|
{"input":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMCIsInJvdW5k!IjoyOTA5MzM2MjM4NjIzMTkKLCJ4IjoieSIgIH0","result":"ERR_DATEKEY_INVALID","text":"datekey: payload is not Base64URL: ERR_DATEKEY_INVALID"}
|
|
|
]
|
|
|
}
|
|
|
''';
|
|
|
|
|
|
/// Part of test/vectors/formats_time.json.
|
|
|
const formatsTimeJson = r'''
|
|
|
{
|
|
|
"spec": "0.15",
|
|
|
"generator": "tool/formats_go_vectors.go",
|
|
|
"description": "RFC 3339: time.Parse with time.RFC3339Nano, ok or error, and Format with RFC3339 and RFC3339Nano in UTC; datekey.Resolve, RoundTime and DateKey.Validate, and Profile.MaxRound, on the Quicknet profile with other genesis times and periods.",
|
|
|
"parse": [
|
|
|
{"input":"2023-08-23T15:09:27Z","nanos":0,"result":"ok","seconds":1692803367},
|
|
|
{"input":"9999-12-31T23:59:59-24:00","nanos":0,"result":"ok","seconds":253402387199},
|
|
|
{"input":"0000-09-06T25:09:46","result":"error"},
|
|
|
{"input":"4465-10-31T22:123:54Z","result":"error"},
|
|
|
{"input":"8314-09-33T20:22:12.0841284783777Z","result":"error"},
|
|
|
{"input":"7600-07-08T17:34:15.0216393777-07:30","nanos":21639377,"result":"ok","seconds":177682035855},
|
|
|
{"input":"7593-05-2T09:16:18-20:30","result":"error"},
|
|
|
{"input":"8898-02-29T09:52:10.08590422","result":"error"},
|
|
|
{"input":"3154-04-01T12:25:00.00131262440+11:00","nanos":1312624,"result":"ok","seconds":37371201900},
|
|
|
{"input":"5148-00-24T07:43:10","result":"error"},
|
|
|
{"input":"5339-01-07T23:09:55*0630","result":"error"},
|
|
|
{"input":"8644-12-22T07:01:03,+15:30","result":"error"},
|
|
|
{"input":"4812-03-31T17:44:08.07z","result":"error"},
|
|
|
{"input":"10000-10-22T25:53:9.4109","result":"error"},
|
|
|
{"input":"1704-06-26T19:54:43-15:06","nanos":0,"result":"ok","seconds":-8378773157},
|
|
|
{"input":"0000-04-05T10:13:18.0044-07:30","nanos":4400000,"result":"ok","seconds":-62158947402},
|
|
|
{"input":"3733-02-29T09:51:23,05-1830","result":"error"},
|
|
|
{"input":"4452-07-05:07:17:42-1800","result":"error"},
|
|
|
{"input":"1914-09-16T08:27:61.0369Z","result":"error"},
|
|
|
{"input":"8879-03-19T13:38T7-22:53","result":"error"},
|
|
|
{"input":"7206-02-29T13:42:4Z","result":"error"},
|
|
|
{"input":"6793-02-02T12:59:47*19:32","result":"error"},
|
|
|
{"input":"5600-11-21T20:09:59,33Z","nanos":330000000,"result":"ok","seconds":114579864599},
|
|
|
{"input":" 8396-07-31T21:59:26.365+20:01","result":"error"},
|
|
|
{"input":"670504-23T13:34:22+23:26","result":"error"},
|
|
|
{"input":"8482-06-08T14:4:19,084000","result":"error"},
|
|
|
{"input":"6560-04-31T25:43:07.0034-0a:60","result":"error"},
|
|
|
{"input":"10000-05-01T05:59:55.8927Z","result":"error"},
|
|
|
{"input":"4381-07-19T01:06:09.562770027Z","nanos":562770027,"result":"ok","seconds":76101037569},
|
|
|
{"input":"8805-02-29T10:57:59.000349*14:20","result":"error"},
|
|
|
{"input":"7202-02-14T07:29:20.00143Z","nanos":1430000,"result":"ok","seconds":165109822160},
|
|
|
{"input":"1422-08-17T23:54:40.2198+23:00","nanos":219800000,"result":"ok","seconds":-17273516720},
|
|
|
{"input":"2370-06-21T21:41:18.0416877320*20:00","result":"error"},
|
|
|
{"input":" 5335-03-00T18:28:54.009622295Z","result":"error"},
|
|
|
{"input":"6215-12-07T00:06:05.04000099","result":"error"},
|
|
|
{"input":"0605-05-0802:43:20.063865","result":"error"},
|
|
|
{"input":"8618-05-02T14:31:50+15:00","nanos":0,"result":"ok","seconds":209801057510},
|
|
|
{"input":"9284-12-15T15:10:11.0472886303*15:00 ","result":"error"},
|
|
|
{"input":"5326-05-27T20:1:29.0055776598-24:00","result":"error"},
|
|
|
{"input":"2593-01-23T-1:17:51,0047687Z","result":"error"},
|
|
|
{"input":"3211-08-22T05:15:36.00Z","nanos":0,"result":"ok","seconds":39182332536},
|
|
|
{"input":"5484-04-20T17:10:-1Z","result":"error"},
|
|
|
{"input":"1370-03-06T19:02:19-14:30","nanos":0,"result":"ok","seconds":-18928477661},
|
|
|
{"input":"6388-11-13T4:13:17+18:30","nanos":0,"result":"ok","seconds":139445919797},
|
|
|
{"input":"0814-08t27T14:42:47.004","result":"error"},
|
|
|
{"input":"3639-09-28T01:123:31z ","result":"error"},
|
|
|
{"input":"4765-10-24T16:36:43,20010785+13:40","nanos":200107850,"result":"ok","seconds":88227284203},
|
|
|
{"input":"4061-02-29T15:34T48,0597","result":"error"},
|
|
|
{"input":"6688-06-19T23:01:03.0022+20:33","nanos":2200000,"result":"ok","seconds":148900386483},
|
|
|
{"input":"0382-04-17T07:49:30Z","nanos":0,"result":"ok","seconds":-50103245430},
|
|
|
{"input":"0073-09-21T08:21:00.003415947z","result":"error"},
|
|
|
{"input":"0163-11-09T21:56:53*11:30","result":"error"},
|
|
|
{"input":"7923-03-14T09:32:39.7637+14:30","nanos":763700000,"result":"ok","seconds":187864686159},
|
|
|
{"input":"0801-11-22T00:11:0+14:00","result":"error"},
|
|
|
{"input":"1226-04-33T24:01:50,08767832-01:00","result":"error"}
|
|
|
],
|
|
|
"format": [
|
|
|
{"nanos":500000000,"rfc3339":"10000-01-01T04:39:54Z","rfc3339nano":"10000-01-01T04:39:54.5Z","seconds":253402317594},
|
|
|
{"nanos":0,"rfc3339":"2000-02-29T17:28:45Z","rfc3339nano":"2000-02-29T17:28:45Z","seconds":951845325},
|
|
|
{"nanos":1,"rfc3339":"2000-02-28T02:11:30Z","rfc3339nano":"2000-02-28T02:11:30.000000001Z","seconds":951703890},
|
|
|
{"nanos":0,"rfc3339":"2000-03-01T01:27:46Z","rfc3339nano":"2000-03-01T01:27:46Z","seconds":951874066},
|
|
|
{"nanos":0,"rfc3339":"-1062-10-11T01:18:01Z","rfc3339nano":"-1062-10-11T01:18:01Z","seconds":-95656200119},
|
|
|
{"nanos":0,"rfc3339":"-0632-01-05T21:07:14Z","rfc3339nano":"-0632-01-05T21:07:14Z","seconds":-82110768766},
|
|
|
{"nanos":213339078,"rfc3339":"0000-01-01T15:53:34Z","rfc3339nano":"0000-01-01T15:53:34.213339078Z","seconds":-62167161986},
|
|
|
{"nanos":500000000,"rfc3339":"6742-06-03T23:04:39Z","rfc3339nano":"6742-06-03T23:04:39.5Z","seconds":150603059079},
|
|
|
{"nanos":999999999,"rfc3339":"-0192-08-14T07:54:59Z","rfc3339nano":"-0192-08-14T07:54:59.999999999Z","seconds":-68206637101},
|
|
|
{"nanos":0,"rfc3339":"8101-02-15T07:17:54Z","rfc3339nano":"8101-02-15T07:17:54Z","seconds":193479607074}
|
|
|
],
|
|
|
"resolve": [
|
|
|
{"genesis_time":1692803367,"nanos":0,"period":3,"result":"ok","round":12072455938,"round_time":37910171178,"seconds":37910171177},
|
|
|
{"genesis_time":1692803367,"nanos":832373479,"period":3,"result":"ok","round":75502046355,"round_time":228198942429,"seconds":228198942428},
|
|
|
{"genesis_time":1692803367,"nanos":535712649,"period":3,"result":"ok","round":83903165811,"round_time":253402300797,"seconds":253402300795},
|
|
|
{"genesis_time":1692803367,"nanos":415577192,"period":3,"result":"ok","round":3,"round_time":1692803373,"seconds":1692803370},
|
|
|
{"genesis_time":1692803367,"nanos":1,"period":3,"result":"ok","round":24521700197,"round_time":75257903955,"seconds":75257903952},
|
|
|
{"genesis_time":1595431050,"nanos":0,"period":30,"result":"ERR_DATEKEY_INVALID","seconds":253402300807,"text":"datekey: 10000-01-01T00:00:07Z is after 9999-12-31T23:59:59Z: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1595431050,"nanos":999999999,"period":30,"result":"ok","round":6408501400,"round_time":193850473020,"seconds":193850472990},
|
|
|
{"genesis_time":1595431050,"nanos":0,"period":30,"result":"ok","round":4582026569,"round_time":139056228090,"seconds":139056228074},
|
|
|
{"genesis_time":1595431050,"nanos":0,"period":30,"result":"ok","round":1,"round_time":1595431050,"seconds":1595431050},
|
|
|
{"genesis_time":1595431050,"nanos":999999999,"period":30,"result":"ERR_DATEKEY_INVALID","seconds":1595431041,"text":"datekey: 2020-07-22T15:17:21.999999999Z is before the genesis of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1,"nanos":999999999,"period":1,"result":"ERR_DATEKEY_INVALID","seconds":0,"text":"datekey: 1970-01-01T00:00:00.999999999Z is before the genesis of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1,"nanos":0,"period":1,"result":"ok","round":250292261304,"round_time":250292261304,"seconds":250292261304},
|
|
|
{"genesis_time":1,"nanos":960467018,"period":1,"result":"ok","round":123252667057,"round_time":123252667057,"seconds":123252667056},
|
|
|
{"genesis_time":1,"nanos":1,"period":1,"result":"ok","round":50961524133,"round_time":50961524133,"seconds":50961524132},
|
|
|
{"genesis_time":1,"nanos":999999999,"period":1,"result":"ok","round":250413213997,"round_time":250413213997,"seconds":250413213996},
|
|
|
{"genesis_time":1,"nanos":0,"period":86400,"result":"ok","round":1524816,"round_time":131744016001,"seconds":131744014828},
|
|
|
{"genesis_time":1,"nanos":1,"period":86400,"result":"ok","round":2,"round_time":86401,"seconds":5},
|
|
|
{"genesis_time":1,"nanos":0,"period":86400,"result":"ok","round":1754940,"round_time":151626729601,"seconds":151626703958},
|
|
|
{"genesis_time":1,"nanos":1,"period":86400,"result":"ERR_DATEKEY_INVALID","seconds":253402300809,"text":"datekey: 10000-01-01T00:00:09.000000001Z is after 9999-12-31T23:59:59Z: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1,"nanos":0,"period":86400,"result":"ERR_DATEKEY_INVALID","seconds":-7,"text":"datekey: 1969-12-31T23:59:53Z is before the genesis of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300789,"nanos":999999999,"period":7,"result":"ERR_DATEKEY_INVALID","seconds":253402300799,"text":"datekey: round 3 outside 1..2 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300789,"nanos":0,"period":7,"result":"ok","round":2,"round_time":253402300796,"seconds":253402300795},
|
|
|
{"genesis_time":253402300789,"nanos":1,"period":7,"result":"ERR_DATEKEY_INVALID","seconds":253402300797,"text":"datekey: round 3 outside 1..2 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300789,"nanos":1,"period":7,"result":"ERR_DATEKEY_INVALID","seconds":253402300782,"text":"datekey: 9999-12-31T23:59:42.000000001Z is before the genesis of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300789,"nanos":0,"period":7,"result":"ok","round":2,"round_time":253402300796,"seconds":253402300790},
|
|
|
{"genesis_time":253402300799,"nanos":1,"period":1,"result":"ERR_DATEKEY_INVALID","seconds":253402300799,"text":"datekey: round 2 outside 1..1 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300799,"nanos":0,"period":1,"result":"ok","round":1,"round_time":253402300799,"seconds":253402300799},
|
|
|
{"genesis_time":253402300799,"nanos":0,"period":1,"result":"ERR_DATEKEY_INVALID","seconds":253402300808,"text":"datekey: 10000-01-01T00:00:08Z is after 9999-12-31T23:59:59Z: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300799,"nanos":999999999,"period":1,"result":"ERR_DATEKEY_INVALID","seconds":196602200813,"text":"datekey: 8200-01-28T10:26:53.999999999Z is before the genesis of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300799,"nanos":0,"period":1,"result":"ERR_DATEKEY_INVALID","seconds":253402300804,"text":"datekey: 10000-01-01T00:00:04Z is after 9999-12-31T23:59:59Z: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300800,"nanos":89099885,"period":1,"result":"ERR_DATEKEY_INVALID","seconds":188138873074,"text":"datekey: 7931-11-20T06:04:34.089099885Z is before the genesis of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300800,"nanos":909323915,"period":1,"result":"ERR_DATEKEY_INVALID","seconds":253402300799,"text":"datekey: 9999-12-31T23:59:59.909323915Z is before the genesis of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300800,"nanos":999999999,"period":1,"result":"ERR_DATEKEY_INVALID","seconds":253402300800,"text":"datekey: 10000-01-01T00:00:00.999999999Z is after 9999-12-31T23:59:59Z: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300800,"nanos":0,"period":1,"result":"ERR_DATEKEY_INVALID","seconds":253402300800,"text":"datekey: 10000-01-01T00:00:00Z is after 9999-12-31T23:59:59Z: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300800,"nanos":1,"period":1,"result":"ERR_DATEKEY_INVALID","seconds":269344062914,"text":"datekey: 10505-03-05T03:15:14.000000001Z is after 9999-12-31T23:59:59Z: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1692803367,"nanos":1,"period":0,"result":"ERR_UNKNOWN_PROFILE","seconds":253402300800,"text":"datekey: profile datekeys:quicknet:v1 has no whole-second period: ERR_UNKNOWN_PROFILE"},
|
|
|
{"genesis_time":1692803367,"nanos":1,"period":0,"result":"ERR_UNKNOWN_PROFILE","seconds":48633432021,"text":"datekey: profile datekeys:quicknet:v1 has no whole-second period: ERR_UNKNOWN_PROFILE"},
|
|
|
{"genesis_time":1692803367,"nanos":0,"period":0,"result":"ERR_UNKNOWN_PROFILE","seconds":1692803377,"text":"datekey: profile datekeys:quicknet:v1 has no whole-second period: ERR_UNKNOWN_PROFILE"},
|
|
|
{"genesis_time":1692803367,"nanos":999999999,"period":0,"result":"ERR_UNKNOWN_PROFILE","seconds":184102530062,"text":"datekey: profile datekeys:quicknet:v1 has no whole-second period: ERR_UNKNOWN_PROFILE"},
|
|
|
{"genesis_time":1692803367,"nanos":1,"period":0,"result":"ERR_UNKNOWN_PROFILE","seconds":169527806308,"text":"datekey: profile datekeys:quicknet:v1 has no whole-second period: ERR_UNKNOWN_PROFILE"}
|
|
|
],
|
|
|
"round_time": [
|
|
|
{"genesis_time":1692803367,"period":3,"result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..83903165811 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1595431050,"period":30,"result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..8393562325 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1,"period":1,"result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..253402300799 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1,"period":86400,"result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..2932897 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300789,"period":7,"result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..2 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300799,"period":1,"result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..1 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300800,"period":1,"result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..0 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1692803367,"period":0,"result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..0 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"}
|
|
|
],
|
|
|
"validate": [
|
|
|
{"genesis_time":1692803367,"period":3,"profile_id":"datekeys:quicknet:v1","result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..83903165811 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1692803367,"period":3,"profile_id":"datekeys:quicknet:v1","result":"ok","round":83903165811},
|
|
|
{"genesis_time":1595431050,"period":30,"profile_id":"datekeys:quicknet:v1","result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..8393562325 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1595431050,"period":30,"profile_id":"datekeys:quicknet:v1","result":"ok","round":8393562325},
|
|
|
{"genesis_time":1,"period":1,"profile_id":"datekeys:quicknet:v1","result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..253402300799 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1,"period":1,"profile_id":"datekeys:quicknet:v1","result":"ok","round":253402300799},
|
|
|
{"genesis_time":1,"period":86400,"profile_id":"datekeys:quicknet:v1","result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..2932897 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1,"period":86400,"profile_id":"datekeys:quicknet:v1","result":"ok","round":2932897},
|
|
|
{"genesis_time":253402300789,"period":7,"profile_id":"datekeys:quicknet:v1","result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..2 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300789,"period":7,"profile_id":"datekeys:quicknet:v1","result":"ok","round":2},
|
|
|
{"genesis_time":253402300799,"period":1,"profile_id":"datekeys:quicknet:v1","result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..1 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300799,"period":1,"profile_id":"datekeys:quicknet:v1","result":"ok","round":1},
|
|
|
{"genesis_time":253402300800,"period":1,"profile_id":"datekeys:quicknet:v1","result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..0 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":253402300800,"period":1,"profile_id":"datekeys:quicknet:v1","result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..0 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1692803367,"period":0,"profile_id":"datekeys:quicknet:v1","result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..0 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"},
|
|
|
{"genesis_time":1692803367,"period":0,"profile_id":"datekeys:quicknet:v1","result":"ERR_DATEKEY_INVALID","round":0,"text":"datekey: round 0 outside 1..0 of datekeys:quicknet:v1: ERR_DATEKEY_INVALID"}
|
|
|
],
|
|
|
"max_round": [
|
|
|
{"genesis_time":1692803367,"max_round":83903165811,"period":3}
|
|
|
]
|
|
|
}
|
|
|
''';
|
|
|
|
|
|
/// Part of test/vectors/formats_padding.json.
|
|
|
const formatsPaddingJson = r'''
|
|
|
{
|
|
|
"spec": "0.15",
|
|
|
"generator": "tool/formats_go_vectors.go",
|
|
|
"description": "capsule.PaddedLength with both codes and capsule.PayloadAgeLength, at the boundaries of spec §29.1 up to L_MAX and past it; a code with null was rejected with text. check: the plaintext of PAYLOAD_AGE checked by capsule.Open against L and P (step 17): the content of the fixture (its .plaintext) followed by zeros, cut or extended to length bytes, with the byte at at set to value when given; step 0 when the capsule opens.",
|
|
|
"padded": [
|
|
|
{"bloque256":256,"l":0,"payload_age_bloque256":456,"payload_age_reforzado":456,"reforzado":256},
|
|
|
{"bloque256":256,"l":56,"payload_age_bloque256":456,"payload_age_reforzado":456,"reforzado":256},
|
|
|
{"bloque256":256,"l":112,"payload_age_bloque256":456,"payload_age_reforzado":456,"reforzado":256},
|
|
|
{"bloque256":256,"l":168,"payload_age_bloque256":456,"payload_age_reforzado":456,"reforzado":256},
|
|
|
{"bloque256":256,"l":224,"payload_age_bloque256":456,"payload_age_reforzado":456,"reforzado":256},
|
|
|
{"bloque256":256,"l":255,"payload_age_bloque256":456,"payload_age_reforzado":456,"reforzado":256},
|
|
|
{"bloque256":512,"l":263,"payload_age_bloque256":712,"payload_age_reforzado":712,"reforzado":512},
|
|
|
{"bloque256":512,"l":271,"payload_age_bloque256":712,"payload_age_reforzado":712,"reforzado":512},
|
|
|
{"bloque256":512,"l":279,"payload_age_bloque256":712,"payload_age_reforzado":712,"reforzado":512},
|
|
|
{"bloque256":512,"l":287,"payload_age_bloque256":712,"payload_age_reforzado":712,"reforzado":512},
|
|
|
{"bloque256":512,"l":295,"payload_age_bloque256":712,"payload_age_reforzado":712,"reforzado":512},
|
|
|
{"bloque256":512,"l":511,"payload_age_bloque256":712,"payload_age_reforzado":712,"reforzado":512},
|
|
|
{"bloque256":1024,"l":1024,"payload_age_bloque256":1224,"payload_age_reforzado":1224,"reforzado":1024},
|
|
|
{"bloque256":2560,"l":2305,"payload_age_bloque256":2760,"payload_age_reforzado":2760,"reforzado":2560},
|
|
|
{"bloque256":8448,"l":8193,"payload_age_bloque256":8648,"payload_age_reforzado":8904,"reforzado":8704},
|
|
|
{"bloque256":32768,"l":32767,"payload_age_bloque256":32968,"payload_age_reforzado":32968,"reforzado":32768},
|
|
|
{"bloque256":65792,"l":65791,"payload_age_bloque256":66008,"payload_age_reforzado":67800,"reforzado":67584},
|
|
|
{"bloque256":262144,"l":262144,"payload_age_bloque256":262392,"payload_age_reforzado":262392,"reforzado":262144},
|
|
|
{"bloque256":524800,"l":524545,"payload_age_bloque256":525128,"payload_age_reforzado":541000,"reforzado":540672},
|
|
|
{"bloque256":2097408,"l":2097153,"payload_age_bloque256":2098120,"payload_age_reforzado":2163400,"reforzado":2162688},
|
|
|
{"bloque256":8388608,"l":8388607,"payload_age_bloque256":8390840,"payload_age_reforzado":8390840,"reforzado":8388608},
|
|
|
{"bloque256":16777472,"l":16777471,"payload_age_bloque256":16781768,"payload_age_reforzado":17305912,"reforzado":17301504},
|
|
|
{"bloque256":67108864,"l":67108864,"payload_age_bloque256":67125432,"payload_age_reforzado":67125432,"reforzado":67108864},
|
|
|
{"bloque256":134218240,"l":134217985,"payload_age_bloque256":134251208,"payload_age_reforzado":138446008,"reforzado":138412032},
|
|
|
{"bloque256":536871168,"l":536870913,"payload_age_bloque256":537002440,"payload_age_reforzado":553783480,"reforzado":553648128},
|
|
|
{"bloque256":2147483648,"l":2147483647,"payload_age_bloque256":2148008120,"payload_age_reforzado":2148008120,"reforzado":2147483648},
|
|
|
{"bloque256":4294967552,"l":4294967551,"payload_age_bloque256":4296016328,"payload_age_reforzado":4363141304,"reforzado":4362076160},
|
|
|
{"bloque256":17179869184,"l":17179869184,"payload_age_bloque256":17184063672,"payload_age_reforzado":17184063672,"reforzado":17179869184},
|
|
|
{"bloque256":34359738880,"l":34359738625,"payload_age_bloque256":34368127688,"payload_age_reforzado":34905129144,"reforzado":34896609280},
|
|
|
{"bloque256":137438953728,"l":137438953473,"payload_age_bloque256":137472508360,"payload_age_reforzado":139620516024,"reforzado":139586437120},
|
|
|
{"bloque256":549755813888,"l":549755813887,"payload_age_bloque256":549890031800,"payload_age_reforzado":549890031800,"reforzado":549755813888},
|
|
|
{"bloque256":1099511628032,"l":1099511628031,"payload_age_bloque256":1099780063688,"payload_age_reforzado":1116964126904,"reforzado":1116691496960},
|
|
|
{"bloque256":4398046511104,"l":4398046511104,"payload_age_bloque256":4399120253112,"payload_age_reforzado":4399120253112,"reforzado":4398046511104},
|
|
|
{"bloque256":8796093022720,"l":8796093022465,"payload_age_bloque256":8798240506568,"payload_age_reforzado":8935713013944,"reforzado":8933531975680},
|
|
|
{"bloque256":35184372089088,"l":35184372088833,"payload_age_bloque256":35192962023880,"payload_age_reforzado":35742852055224,"reforzado":35734127902720},
|
|
|
{"bloque256":140737488355328,"l":140737488355327,"payload_age_bloque256":140771848093880,"payload_age_reforzado":140771848093880,"reforzado":140737488355328},
|
|
|
{"bloque256":281474976710912,"l":281474976710911,"payload_age_bloque256":281543696187848,"payload_age_reforzado":285942816440504,"reforzado":285873023221760},
|
|
|
{"bloque256":1125899906842624,"l":1125899906842624,"payload_age_bloque256":1126174784749752,"payload_age_reforzado":1126174784749752,"reforzado":1125899906842624},
|
|
|
{"bloque256":2251799813685760,"l":2251799813685505,"payload_age_bloque256":2252349569499848,"payload_age_reforzado":2287542531522744,"reforzado":2286984185774080},
|
|
|
{"bloque256":8192,"l":8192,"payload_age_bloque256":8392,"payload_age_reforzado":8392,"reforzado":8192},
|
|
|
{"bloque256":8936830510563328,"l":8936830510563328,"payload_age_bloque256":8939012353949880,"payload_age_reforzado":8939012353949880,"reforzado":8936830510563328},
|
|
|
{"bloque256":324953458998784,"l":324953458998774,"payload_age_bloque256":325032793339544,"payload_age_reforzado":325534898716856,"reforzado":325455441821696},
|
|
|
{"bloque256":1624909605632,"l":1624909605440,"payload_age_bloque256":1625306312264,"payload_age_reforzado":1632486031544,"reforzado":1632087572480},
|
|
|
{"bloque256":3177728,"l":3177693,"payload_age_bloque256":3178696,"payload_age_reforzado":3212232,"reforzado":3211264},
|
|
|
{"bloque256":265720320,"l":265720199,"payload_age_bloque256":265785384,"payload_age_reforzado":268501176,"reforzado":268435456},
|
|
|
{"bloque256":256,"l":3,"payload_age_bloque256":456,"payload_age_reforzado":456,"reforzado":256},
|
|
|
{"bloque256":256,"l":14,"payload_age_bloque256":456,"payload_age_reforzado":456,"reforzado":256},
|
|
|
{"bloque256":13031196928,"l":13031196812,"payload_age_bloque256":13034378568,"payload_age_reforzado":13156548792,"reforzado":13153337344},
|
|
|
{"bloque256":4066335488,"l":4066335319,"payload_age_bloque256":4067328440,"payload_age_reforzado":4094640312,"reforzado":4093640704},
|
|
|
{"bloque256":852480,"l":852284,"payload_age_bloque256":852888,"payload_age_reforzado":868760,"reforzado":868352},
|
|
|
{"bloque256":512,"l":379,"payload_age_bloque256":712,"payload_age_reforzado":712,"reforzado":512},
|
|
|
{"bloque256":649058853632,"l":649058853461,"payload_age_bloque256":649217315464,"payload_age_reforzado":652994412728,"reforzado":652835028992},
|
|
|
{"bloque256":229888,"l":229710,"payload_age_bloque256":230136,"payload_age_reforzado":233720,"reforzado":233472},
|
|
|
{"bloque256":58935808,"l":58935646,"payload_age_bloque256":58950392,"payload_age_reforzado":59783608,"reforzado":59768832},
|
|
|
{"bloque256":256,"l":1,"payload_age_bloque256":456,"payload_age_reforzado":456,"reforzado":256},
|
|
|
{"bloque256":7513661952,"l":7513661768,"payload_age_bloque256":7515496536,"payload_age_reforzado":7518027960,"reforzado":7516192768},
|
|
|
{"bloque256":11008,"l":10760,"payload_age_bloque256":11208,"payload_age_reforzado":11464,"reforzado":11264},
|
|
|
{"bloque256":824279061679616,"l":824279061679415,"payload_age_bloque256":824480301685096,"payload_age_reforzado":827034607550648,"reforzado":826832744087552},
|
|
|
{"bloque256":66844187136,"l":66844187055,"payload_age_bloque256":66860506712,"payload_age_reforzado":67125248184,"reforzado":67108864000},
|
|
|
{"bloque256":768,"l":635,"payload_age_bloque256":968,"payload_age_reforzado":968,"reforzado":768}
|
|
|
],
|
|
|
"check": [
|
|
|
{"fixture":"format2_empty_payload","format":2,"l":0,"length":256,"p":256,"result":"ok","step":0},
|
|
|
{"fixture":"format2_empty_payload","format":2,"l":0,"length":0,"p":256,"result":"ERR_INTEGRITY","step":17,"text":"capsule: PAYLOAD_AGE: the plaintext is 0 bytes, shorter than P = 256: ERR_INTEGRITY"},
|
|
|
{"at":79871,"fixture":"format2_time_only","format":2,"l":78000,"length":79872,"p":79872,"result":"ERR_INTEGRITY","step":17,"text":"capsule: PAYLOAD_AGE: byte 79871 of the plaintext is padding and is not zero: ERR_INTEGRITY","value":128},
|
|
|
{"fixture":"format2_time_only_extensions","format":2,"l":34,"length":257,"p":256,"result":"ERR_INTEGRITY","step":17,"text":"capsule: PAYLOAD_AGE: the plaintext is longer than P = 256: ERR_INTEGRITY"},
|
|
|
{"at":254,"fixture":"format2_time_only_extensions","format":2,"l":34,"length":255,"p":256,"result":"ERR_INTEGRITY","step":17,"text":"capsule: PAYLOAD_AGE: byte 254 of the plaintext is padding and is not zero: ERR_INTEGRITY","value":3},
|
|
|
{"at":768,"fixture":"format3_single","format":3,"l":659,"length":769,"p":768,"result":"ERR_INTEGRITY","step":17,"text":"capsule: PAYLOAD_AGE: the plaintext is longer than P = 768: ERR_INTEGRITY","value":7},
|
|
|
{"fixture":"format3_tree","format":3,"l":84078,"length":86116,"p":86016,"result":"ERR_INTEGRITY","step":17,"text":"capsule: PAYLOAD_AGE: the plaintext is longer than P = 86016: ERR_INTEGRITY"}
|
|
|
]
|
|
|
}
|
|
|
''';
|
|
|
|
|
|
/// Part of test/vectors/formats_encode.json.
|
|
|
const formatsEncodeJson = r'''
|
|
|
{
|
|
|
"spec": "0.15",
|
|
|
"generator": "tool/formats_go_vectors.go",
|
|
|
"description": "The encoders on values: capsule.EncodeHeader and EncodeControl, accesskey.Encode, profile.NewRegistry, and the canonical JSON and dk1_ string of DateKeys (CanonicalJSON and Compact, empty when not valid); an encoding is in hex, or as its length and SHA-256 when it is large. big is the size of the data of the noncritical extension a of version 1, bytes 0x01, that takes the object to its limit. limits: the decoders on objects at the limits of spec §57 and one byte past them: zeros bytes of zeros, or an extension array 81 a3 00 61 61 01 01 02 5a <len, 4 bytes> and len bytes 0x07 (extension_data), or Canonical of the extension a of version 1 whose data is len zeros (extension_canonical).",
|
|
|
"header": [
|
|
|
{"critical":[],"hex":"a5006a646174656b65796361700101025007070707070707070707070707070707037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300400","name":"time_only, no extension","noncritical":[],"policy":0,"profile_id":"datekeys:quicknet:v1","result":"ok","round":1000},
|
|
|
{"critical":[],"name":"extension_version 2^32","noncritical":[["a",4294967296,null]],"policy":0,"profile_id":"datekeys:quicknet:v1","result":"ERR_NON_CANONICAL_CBOR","round":1000,"text":"extension a: extension_version 4294967296 exceeds 4294967295: ERR_NON_CANONICAL_CBOR"}
|
|
|
],
|
|
|
"control": [
|
|
|
{"critical":[],"format":1,"hex":"a40070646174656b6579732d636f6e74726f6c010102582001010101010101010101010101010101010101010101010101010101010101010358200505050505050505050505050505050505050505050505050505050505050505","name":"format 1","noncritical":[],"padding":0,"payload_length":0,"result":"ok"},
|
|
|
{"critical":[],"format":2,"hex":"a60070646174656b6579732d636f6e74726f6c010202582001010101010101010101010101010101010101010101010101010101010101010358200505050505050505050505050505050505050505050505050505050505050505064800000000000130b00702","name":"format 2, L 78000, reforzado","noncritical":[],"padding":2,"payload_length":78000,"result":"ok"},
|
|
|
{"critical":[],"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c010302582001010101010101010101010101010101010101010101010101010101010101010358200505050505050505050505050505050505050505050505050505050505050505064800000000000000000702","name":"format 3, L 0, reforzado","noncritical":[],"padding":2,"payload_length":0,"result":"ok"},
|
|
|
{"critical":[],"format":3,"hex":"a60070646174656b6579732d636f6e74726f6c0103025820010101010101010101010101010101010101010101010101010101010101010103582005050505050505050505050505050505050505050505050505050505050505050648001fc000000000000702","name":"format 3, L 8936830510563328, reforzado","noncritical":[],"padding":2,"payload_length":8936830510563328,"result":"ok"}
|
|
|
],
|
|
|
"dkk": [
|
|
|
{"critical":[],"hex":"444b4b310100000000000067a60073646174656b6579732d6163636573732d6b6579010102500101010101010101010101010101010103500202020202020202020202020202020204667832353531390558200303030303030303030303030303030303030303030303030303030303030303","material":"0303030303030303030303030303030303030303030303030303030303030303","name":"minimal","noncritical":[],"result":"ok","type":"x25519"},
|
|
|
{"critical":[],"material":"0303030303030303030303030303030303030303030303030303030303030303","name":"datekeys.note in the noncritical array","noncritical":[["datekeys.note",1,"41"]],"result":"error","text":"accesskey: extension: datekeys.note version 1 is not registered for noncritical_extensions of .dkk: an encoder must not write it there (spec §72)","type":"x25519"}
|
|
|
],
|
|
|
"registry": [
|
|
|
{"name":"Quicknet","pins":[{"hash":"4147645109798ecbc9f630c2f709835bb5846fe7911a6bd5c5755e25ade2ada4","profile":{"chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":1692803367,"id":"datekeys:quicknet:v1","max_round":83903165811,"network":"quicknet","period":3,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"bls-unchained-g1-rfc9380"}}],"result":"ok"},
|
|
|
{"name":"an edited Quicknet","pins":[{"hash":"4147645109798ecbc9f630c2f709835bb5846fe7911a6bd5c5755e25ade2ada4","profile":{"chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","genesis_seed":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","genesis_time":-1,"id":"datekeys:quicknet:v1","max_round":84467433601,"network":"quicknet","period":3,"provider":"drand","public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","scheme":"bls-unchained-g1-rfc9380"}}],"result":"ERR_NON_CANONICAL_CBOR","text":"profile: genesis time -1 outside 0..9007199254740991: ERR_NON_CANONICAL_CBOR"}
|
|
|
],
|
|
|
"compact": [
|
|
|
{"compact":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6NjY4ODQyMTJ9","json":"{\"version\":1,\"network\":\"datekeys:quicknet:v1\",\"round\":66884212}","profile_id":"datekeys:quicknet:v1","round":66884212},
|
|
|
{"compact":"dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiMDouXy0iLCJyb3VuZCI6N30","json":"{\"version\":1,\"network\":\"0:._-\",\"round\":7}","profile_id":"0:._-","round":7}
|
|
|
],
|
|
|
"limits": [
|
|
|
{"result":"ERR_NON_CANONICAL_CBOR","text":"capsule: PUBLIC_HEADER: codec: offset 0: an unsigned integer where a map was expected: ERR_NON_CANONICAL_CBOR","what":"header","zeros":1048576},
|
|
|
{"len":67108865,"result":"ERR_NON_CANONICAL_CBOR","text":"extension \"a\": key 2: codec: offset 13: a byte string of 67108865 bytes outside 0..67108864: ERR_NON_CANONICAL_CBOR","what":"extension_data"}
|
|
|
]
|
|
|
}
|
|
|
''';
|
|
|
|
|
|
/// Part of test/vectors/formats_body.json.
|
|
|
const formatsBodyJson = r'''
|
|
|
{
|
|
|
"spec": "0.15",
|
|
|
"generator": "tool/formats_go_vectors.go",
|
|
|
"description": "The frame of BODY (capsule.ParseBodyFrame) against L, and the zeros of the security area (capsule.CheckArea).",
|
|
|
"frame": [
|
|
|
{"area_len":54272,"content_length":71404281339,"head_len":4419037,"hex":"0000d4000000001600436ddd","l":71408754660,"result":"ok","security_len":22},
|
|
|
{"area_len":43520,"content_length":0,"head_len":53,"hex":"0000aa00000011af00000035","l":43585,"result":"ok","security_len":4527},
|
|
|
{"hex":"000080010000800201000000","l":16809997,"result":"ERR_INTEGRITY","text":"capsule: BODY: AREA_LEN 32769 is not a multiple of 512 from 512 to 65536: ERR_INTEGRITY"},
|
|
|
{"area_len":32768,"content_length":5849398481219973,"head_len":1,"hex":"000080000000001600000001","l":5849398481252754,"result":"ok","security_len":22},
|
|
|
{"hex":"8000000080000000ffffffff","l":6442450955,"result":"ERR_INTEGRITY","text":"capsule: BODY: AREA_LEN 2147483648 is not a multiple of 512 from 512 to 65536: ERR_INTEGRITY"},
|
|
|
{"hex":"000102000000001600000001","l":66062,"result":"ERR_INTEGRITY","text":"capsule: BODY: AREA_LEN 66048 is not a multiple of 512 from 512 to 65536: ERR_INTEGRITY"},
|
|
|
{"hex":"ffffffff0000000001000001","l":4311744523,"result":"ERR_INTEGRITY","text":"capsule: BODY: AREA_LEN 4294967295 is not a multiple of 512 from 512 to 65536: ERR_INTEGRITY"},
|
|
|
{"hex":"0000820000000001017ae6f6","l":0,"result":"ERR_INTEGRITY","text":"capsule: BODY: L = 0 is shorter than the frame of 12 bytes: ERR_INTEGRITY"},
|
|
|
{"hex":"0000800000002a4301000000","l":0,"result":"ERR_INTEGRITY","text":"capsule: BODY: L = 0 is shorter than the frame of 12 bytes: ERR_INTEGRITY"},
|
|
|
{"hex":"0000800000000016ffffffff","l":11,"result":"ERR_INTEGRITY","text":"capsule: BODY: L = 11 is shorter than the frame of 12 bytes: ERR_INTEGRITY"},
|
|
|
{"hex":"ffffffff0000001600000001","l":5686354713283688,"result":"ERR_INTEGRITY","text":"capsule: BODY: AREA_LEN 4294967295 is not a multiple of 512 from 512 to 65536: ERR_INTEGRITY"},
|
|
|
{"area_len":39936,"content_length":434953534883,"head_len":53,"hex":"00009c0000009bff00000035","l":434953574884,"result":"ok","security_len":39935},
|
|
|
{"hex":"0000d20000000016ffffffff","l":12,"result":"ERR_INTEGRITY","text":"capsule: BODY: HEAD_LEN 4294967295 is not from 1 to 16777216: ERR_INTEGRITY"},
|
|
|
{"hex":"00002600000025ff00000035","l":0,"result":"ERR_INTEGRITY","text":"capsule: BODY: L = 0 is shorter than the frame of 12 bytes: ERR_INTEGRITY"},
|
|
|
{"hex":"000002010000001601000000","l":16777742,"result":"ERR_INTEGRITY","text":"capsule: BODY: AREA_LEN 513 is not a multiple of 512 from 512 to 65536: ERR_INTEGRITY"},
|
|
|
{"hex":"0000da000000d9ff00000035","l":55872,"result":"ERR_INTEGRITY","text":"capsule: BODY: the frame, the area of 55808 bytes and the head of 53 bytes exceed L = 55872: ERR_INTEGRITY"},
|
|
|
{"hex":"000080010000000000000001","l":32783,"result":"ERR_INTEGRITY","text":"capsule: BODY: AREA_LEN 32769 is not a multiple of 512 from 512 to 65536: ERR_INTEGRITY"},
|
|
|
{"hex":"000002010000000001000000","l":11,"result":"ERR_INTEGRITY","text":"capsule: BODY: L = 11 is shorter than the frame of 12 bytes: ERR_INTEGRITY"},
|
|
|
{"hex":"0000020000000001ffffffff","l":12,"result":"ERR_INTEGRITY","text":"capsule: BODY: HEAD_LEN 4294967295 is not from 1 to 16777216: ERR_INTEGRITY"},
|
|
|
{"hex":"ffffffff00000000ffffffff","l":583272216670,"result":"ERR_INTEGRITY","text":"capsule: BODY: AREA_LEN 4294967295 is not a multiple of 512 from 512 to 65536: ERR_INTEGRITY"},
|
|
|
{"hex":"000000010000000100000035","l":12,"result":"ERR_INTEGRITY","text":"capsule: BODY: AREA_LEN 1 is not a multiple of 512 from 512 to 65536: ERR_INTEGRITY"},
|
|
|
{"hex":"000000000000000100000000","l":13,"result":"ERR_INTEGRITY","text":"capsule: BODY: AREA_LEN 0 is not a multiple of 512 from 512 to 65536: ERR_INTEGRITY"},
|
|
|
{"area_len":1024,"content_length":697609554656,"head_len":53,"hex":"000004000000000100000035","l":697609555745,"result":"ok","security_len":1},
|
|
|
{"hex":"000080000000800100000035","l":32834,"result":"ERR_INTEGRITY","text":"capsule: BODY: SECURITY_LEN 32769 is not from 1 to AREA_LEN = 32768: ERR_INTEGRITY"},
|
|
|
{"hex":"0000fa0000008174ffffffff","l":278132497555,"result":"ERR_INTEGRITY","text":"capsule: BODY: HEAD_LEN 4294967295 is not from 1 to 16777216: ERR_INTEGRITY"},
|
|
|
{"hex":"0000000100000016ffffffff","l":11,"result":"ERR_INTEGRITY","text":"capsule: BODY: L = 11 is shorter than the frame of 12 bytes: ERR_INTEGRITY"},
|
|
|
{"hex":"00008e000000000000000001","l":12,"result":"ERR_INTEGRITY","text":"capsule: BODY: SECURITY_LEN 0 is not from 1 to AREA_LEN = 36352: ERR_INTEGRITY"},
|
|
|
{"hex":"800000000000000101000001","l":2164260876,"result":"ERR_INTEGRITY","text":"capsule: BODY: AREA_LEN 2147483648 is not a multiple of 512 from 512 to 65536: ERR_INTEGRITY"},
|
|
|
{"hex":"00010000000000160000000000","l":65549,"result":"error","text":"capsule: BODY: frame of 13 bytes, want 12"},
|
|
|
{"hex":"0000800100000016010000","l":11,"result":"error","text":"capsule: BODY: frame of 11 bytes, want 12"},
|
|
|
{"hex":"0000020000000200ffffffff","l":11,"result":"ERR_INTEGRITY","text":"capsule: BODY: L = 11 is shorter than the frame of 12 bytes: ERR_INTEGRITY"},
|
|
|
{"hex":"000004000000040100cc39ba","l":13385159,"result":"ERR_INTEGRITY","text":"capsule: BODY: SECURITY_LEN 1025 is not from 1 to AREA_LEN = 1024: ERR_INTEGRITY"},
|
|
|
{"hex":"000026000000000001000000","l":16786957,"result":"ERR_INTEGRITY","text":"capsule: BODY: SECURITY_LEN 0 is not from 1 to AREA_LEN = 9728: ERR_INTEGRITY"}
|
|
|
],
|
|
|
"area": [
|
|
|
{"hex":"00","result":"ok","security_len":0},
|
|
|
{"hex":"cde1","result":"ok","security_len":2},
|
|
|
{"hex":"7900","result":"ok","security_len":1},
|
|
|
{"hex":"19","result":"ERR_INTEGRITY","security_len":0,"text":"capsule: BODY: byte 0 of the security area is not zero: ERR_INTEGRITY"},
|
|
|
{"hex":"0045","result":"ERR_INTEGRITY","security_len":0,"text":"capsule: BODY: byte 1 of the security area is not zero: ERR_INTEGRITY"},
|
|
|
{"hex":"11","result":"ok","security_len":1},
|
|
|
{"hex":"0953368d1d0000000000000000000000000000000000","result":"ok","security_len":5},
|
|
|
{"hex":"08b92ce6ca40540675b91fc540f900000000000000c0","result":"ERR_INTEGRITY","security_len":14,"text":"capsule: BODY: byte 21 of the security area is not zero: ERR_INTEGRITY"}
|
|
|
]
|
|
|
}
|
|
|
''';
|