-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
192 additions
and
29 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
|
||
# notary keys | ||
npm run -s transmute -- cose keygen --alg ES256 --output ./tests/fixtures/private.notary.key.cbor > ./tests/fixtures/private.notary.key.diag | ||
npm run -s transmute -- cose keypub ./tests/fixtures/private.notary.key.cbor --output ./tests/fixtures/public.notary.key.cbor > ./tests/fixtures/public.notary.key.diag | ||
|
||
|
||
# sign hash envelope | ||
npm run -s transmute -- scitt sign ./tests/fixtures/private.sig.key.cbor ./tests/fixtures/message.json --output ./tests/fixtures/message.hash-envelope.cbor > ./tests/fixtures/message.hash-envelope.diag | ||
npm run -s transmute -- scitt verify ./tests/fixtures/public.sig.key.cbor ./tests/fixtures/message.hash-envelope.cbor 3073d614f853aaec9a1146872c7bab75495ee678c8864ed3562f8787555c1e22 --output ./tests/fixtures/message.hash-envelope.verified.data > ./tests/fixtures/message.hash-envelope.diag | ||
npm run -s transmute -- scitt issue-statement ./tests/fixtures/private.notary.key.cbor ./tests/fixtures/message.json --output ./tests/fixtures/message.hash-envelope.cbor > ./tests/fixtures/message.hash-envelope.diag | ||
npm run -s transmute -- scitt verify-statement-hash ./tests/fixtures/public.notary.key.cbor ./tests/fixtures/message.hash-envelope.cbor 3073d614f853aaec9a1146872c7bab75495ee678c8864ed3562f8787555c1e22 --output ./tests/fixtures/message.hash-envelope.verified.data > ./tests/fixtures/message.hash-envelope.diag | ||
|
||
# sign receipt | ||
npm run -s transmute -- scitt issue-receipt ./tests/fixtures/private.notary.key.cbor ./tests/fixtures/message.hash-envelope.cbor --log ./tests/fixtures/trans.json --output ./tests/fixtures/message.hash-envelope-with-receipt.cbor > ./tests/fixtures/message.hash-envelope-with-receipt.diag | ||
npm run -s transmute -- scitt verify-receipt-hash ./tests/fixtures/public.notary.key.cbor ./tests/fixtures/message.hash-envelope-with-receipt.cbor 3073d614f853aaec9a1146872c7bab75495ee678c8864ed3562f8787555c1e22 > ./tests/fixtures/message.hash-envelope-with-receipt.diag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
import { CommonOptions, JoseOptions } from './action/args' | ||
import { CommonOptions, JoseOptions, ScittOptions } from './action/args' | ||
|
||
export type PositionalArguments = string[] | ||
|
||
export type Options = CommonOptions & JoseOptions | ||
export type Options = CommonOptions & JoseOptions & ScittOptions | ||
|
||
export type Arguments = { positionals: PositionalArguments, values: Options } |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
18([h'a20126391a8f2f', {394: [h'd28447a2012619018b01a119018ca120815848830605825820968654e6ab6d965c0e2247807482b2e3575bd41168a7b06dc8d722311f168d075820bc0a9f560fa6ec11a21e4aba8a026ba8537e8917614e9bb10077a53d3a47a29bf6584056cdffa410ff8e5c04be4300cd4447e965aa6f2a40be03ca9fb6cab9929dfa3f937856134c0c32d507f8316359b32e7a88891c376d2287ec4c92e6820be25ec8']}, h'3073d614f853aaec9a1146872c7bab75495ee678c8864ed3562f8787555c1e22', h'a3925cfb614e42f1dac139862a6c7903872fd45aaa97ff34b2439dbe69965fea9abbec7f4a394634859792674c8575c1cfb7337c7a3ad716153ff63755b734c9']) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
҄G�&9�/�X 0s��S��F�,{�uI^�xȆN�V/��U\"X@�~c͘w�������/�y���8sY�Z��c[�<��p�jAU���������]�Ǻ� | ||
҄G�&9�/�X 0s��S��F�,{�uI^�xȆN�V/��U\"X@��\�aNB���9�*ly�/�Z���4�C��i�_ꚻ�J9F4���gL�u�Ϸ3|z:�?�7U�4� |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
18([h'a20126391a8f2f', {}, h'3073d614f853aaec9a1146872c7bab75495ee678c8864ed3562f8787555c1e22', h'19a17e63cd9877a8fcd115ebfed2f42fae7907d41383c038731a0c59eba95afe82635ba43c0ffe9570ed9c6a1f4155b497e1a51cedfc149e94c0e75da9c7ba83']) | ||
18([h'a20126391a8f2f', {}, h'3073d614f853aaec9a1146872c7bab75495ee678c8864ed3562f8787555c1e22', h'a3925cfb614e42f1dac139862a6c7903872fd45aaa97ff34b2439dbe69965fea9abbec7f4a394634859792674c8575c1cfb7337c7a3ad716153ff63755b734c9']) | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
18([h'a2012619018b01', {396: {-1: [h'83010080']}}, null, h'8630fc8b82cad2287800d2c3ff777a4e7dca4eb8db24adaf2fe6b015d829e9842f047ca8e9ca3ec508b4c3196eafb21704d500bda9aefa5b6a2b7f980e5e64d6']) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
҄C�&�XJ{"message":"⌛ My lungs taste the air of Time Blown past falling sands"} | ||
X@�D����6$���2�`��/9�ZH�㩥�kɛY|��OIҏ)��e��$R̓�+A;��Z | ||
X@���*�}���m��¤�D�ޠ�&�žc/��|��Q�������)���$'K�D���>ޕ8� |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{1: 2, -2: h'd8ae0500dfac30a91cba04174113a73a824323e8997cdda40521b1b778dc3f16', -3: h'cc2ed6304b8c7d77150a59500b568fe77babf1117a6b9ae6a5fb8a50a8699765', -1: 1, -4: h'fe5b1b1e847dfccbdee1242ca4935318911e4a2fd3dcdc8e6f9976b474daa5c8', 3: -7, 2: h'15c80c7968c10be3f9c64035f26c7bd16ca7943e8a32c84e4c8c5a9ccc4c9f82'} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
�!X \W�Pœy~��M��sl�^�n�=���^&U�k"X ���N�����R�/yu��/�rd���Wr� #X ��������ȅ�i1L�e��}4f���&X >��]��ц-pt"Q�"�QG,��`~c j� | ||
�!X �+���q�v�;���:$���Ѭѻ���"X �����8\�v}ի�N͠p�,5E��yf #X /�Ei�̓5�n}���4����&�[^S�o &X �#V����j̑�ě���%UqV�����A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
{1: 2, -2: h'5c579550c593797eddf94d9e14d4736ce45e846ed63d18c7f2d75e102655a26b', -3: h'd8dff74e81a5aabffb520fb02f79759ae6a51b2fab7264f7f8a95772deb6e9a3', -1: 1, -4: h'fab59190bec07f020ef9c9c8850bbb69314cd565b704ea7d103466fb7f12beaa', 3: -7, 2: h'3e93835d10ec85199dd1862d70742251b2220ce251472cb688607e63206a128f'} | ||
{1: 2, -2: h'a72b11c51ce6ed71c076973bed9e1fbe07d03a24a39efcd1acd1bbc4e1abd402', -3: h'9495caf6f3380c5ceb98767dd5ab03cb4e04cda07013c28bac2c3545ad987966', -1: 1, -4: h'2f844569d50ecc9335ab6e7dace90f8f34fac4ee168f1602269d5b5e53b76f20', 3: -7, 2: h'b2132313085680ffeebde86acc9186c49b9196ce25557156c80fdf118c94e641'} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{1: 2, -2: h'd8ae0500dfac30a91cba04174113a73a824323e8997cdda40521b1b778dc3f16', -3: h'cc2ed6304b8c7d77150a59500b568fe77babf1117a6b9ae6a5fb8a50a8699765', -1: 1, 3: -7, 2: h'15c80c7968c10be3f9c64035f26c7bd16ca7943e8a32c84e4c8c5a9ccc4c9f82'} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
�!X \W�Pœy~��M��sl�^�n�=���^&U�k"X ���N�����R�/yu��/�rd���Wr� &X >��]��ц-pt"Q�"�QG,��`~c j� | ||
�!X �+���q�v�;���:$���Ѭѻ���"X �����8\�v}ի�N͠p�,5E��yf &X �#V����j̑�ě���%UqV�����A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
{1: 2, -2: h'5c579550c593797eddf94d9e14d4736ce45e846ed63d18c7f2d75e102655a26b', -3: h'd8dff74e81a5aabffb520fb02f79759ae6a51b2fab7264f7f8a95772deb6e9a3', -1: 1, 3: -7, 2: h'3e93835d10ec85199dd1862d70742251b2220ce251472cb688607e63206a128f'} | ||
{1: 2, -2: h'a72b11c51ce6ed71c076973bed9e1fbe07d03a24a39efcd1acd1bbc4e1abd402', -3: h'9495caf6f3380c5ceb98767dd5ab03cb4e04cda07013c28bac2c3545ad987966', -1: 1, 3: -7, 2: h'b2132313085680ffeebde86acc9186c49b9196ce25557156c80fdf118c94e641'} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"entries": [ | ||
"BkQipgsQ5HcmRSAgqbmetV5YBH3B1rt-xi1MTPZwR0s", | ||
"BkQipgsQ5HcmRSAgqbmetV5YBH3B1rt-xi1MTPZwR0s", | ||
"2QAyOLMwqcIVMjFHNwoBmS6RqTmYcDw95XCwX3MzIoI", | ||
"F5sV7wTYnXs_bJFJFuddVWQEu8xisyyQsVrS5_EyfAc", | ||
"loZU5qttllwOIkeAdIKy41db1BFop7BtyNciMR8WjQc", | ||
"wArLIQ_o5fHPqK0ZCZbAj244rCsMwoZGJnRsc8x6jW4" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters