From 33351a0d884f4b2ec3820afe6c7d661fb213aa73 Mon Sep 17 00:00:00 2001 From: Jacob Karlsson Date: Wed, 1 Nov 2023 17:03:31 +0100 Subject: [PATCH] Add unbox vectors with sigil links instead --- vectors/unbox1.classic.json | 42 +++++++++++++++++++++++++++++++++++++ vectors/unbox2.classic.json | 42 +++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 vectors/unbox1.classic.json create mode 100644 vectors/unbox2.classic.json diff --git a/vectors/unbox1.classic.json b/vectors/unbox1.classic.json new file mode 100644 index 0000000..fe7c647 --- /dev/null +++ b/vectors/unbox1.classic.json @@ -0,0 +1,42 @@ +{ + "type": "unbox", + "description": "open envelope (group_keys + previous === null)", + "input": { + "msgs": [ + { + "key": "%iPTskfm08k9sfg/i8aXwXbdefCzBuUeaNey507slX/I=.sha256", + "value": { + "previous": null, + "sequence": 1, + "author": "@GU3nw+rEjXOEKEXFxqf1WeVUZX42bHrJRUJfwrhW+bg=.ed25519", + "timestamp": 1592534932480, + "hash": "sha256", + "content": "PGHe5NpkJJgv71rhqa+tLNGy2K/cvnWpPVFpKJEllWweHfXvq4+rbdwbw3e1ax5RLMP+708zpulqy/Y/TvlYe6D4cT7cqiLhRD8NzdM0W28t9YGNJWbJpjW2NccdSRBPD0ZIuwAkXyshosUrxi8CrbmW+4XfFmGPXu8DzHTqpN+j56kyKFd//SfVd8Dy5GwZLpKZPYf62dpInTQlJkPb6NcJQ3+lUe1hhi97iOtIhsB/8jtOPjF/V6qUXrSu/nCs/g==.box2", + "signature": "416FiLEtLG+CvbqE1OlrF9Py18WA/sVMgbN2Od2jRIiReqowzOTEp8wmiN+1wCDx7k+kU+ZRb5/nzaxiwDbKBg==.sig.ed25519" + }, + "timestamp": 1592534932480.001 + } + ], + "trial_keys": [ + { + "key": "tXD0fgOUVKj4qnhYdgB/B2wjq/9YM7tBydIBYzY8wl8=", + "scheme": "envelope-large-symmetric-group" + }, + { + "key": "Is0U1U121chtepf0QcnF0JREhp9NNUgqsPE/1ODGV4Q=", + "scheme": "envelope-large-symmetric-group" + } + ] + }, + "output": { + "msgsContent": [ + { + "type": "alert", + "text": "get ready to scuttle!", + "recps": [ + "%VTmwWB0ou53Tj99NPyu2iomZuzhVwp0CIiovdeZCKRg=.cloaked" + ] + } + ] + } +} \ No newline at end of file diff --git a/vectors/unbox2.classic.json b/vectors/unbox2.classic.json new file mode 100644 index 0000000..2ff7f2c --- /dev/null +++ b/vectors/unbox2.classic.json @@ -0,0 +1,42 @@ +{ + "type": "unbox", + "description": "open envelope (group_keys + previous !== null)", + "input": { + "msgs": [ + { + "key": "%1Splppmh9AyVZiKnqXcpYKEic5n1dEMZ90c80QQbjxg=.sha256", + "value": { + "previous": "%735w71E4jLhYLDcdM3zRBDbeOVXm9p+Q54napNZP518=.sha256", + "sequence": 2, + "author": "@4IXio7MZcoBl4LGlAa894kCvFAvpqOEUPwPOiLbuagY=.ed25519", + "timestamp": 1592534932594, + "hash": "sha256", + "content": "nRNJ2jLRoHItfcNrWsHgY6KqX3UxW9atpjua36UINPjVMj3drgR/nEYyZbSACg5YzLUTU9xX2o+CWmTnQL4AgYI6GnxwT87pBXr/hMFtEZ3PvTvZR2VJPDGnHeCNjvZ7nRJkfFxB8XlSy0KmTGyU2+TnprHOWYgRkLA4RwwS3lvIqyuyVfU3EhEbtRCD84xBrNORznXzrugywVNyF9h3EterDjdvHsHt64MTWZxqPZdD0atxJRfIkLwJDe9JK8WlQQ==.box2", + "signature": "wfcsLX59vmELQfYybdtHZjVtvas4X9ffC1Xa95/vL8ax9xgnIgwjh4EA2Tg1rk3CEmh8iTNPyN3R5PBlVCx5AA==.sig.ed25519" + }, + "timestamp": 1592534932594.001 + } + ], + "trial_keys": [ + { + "key": "SAoMdSI7THVRSr+dPzYdgMIM5f1NFcpqdtn741hHOq0=", + "scheme": "envelope-large-symmetric-group" + }, + { + "key": "A7lRB1lxh+vz+FIwDfl+GbtztIM3z0xbiYz7anCp4o8=", + "scheme": "envelope-large-symmetric-group" + } + ] + }, + "output": { + "msgsContent": [ + { + "type": "alert", + "text": "get ready to scuttle!", + "recps": [ + "%93kpQXoHNYFeCP5OzDIHVTCCK8qJzCl+m08zHlN14oU=.cloaked" + ] + } + ] + } +} \ No newline at end of file