Now let's take a silly one
1{
2 "lexicon": 1,
3 "id": "sh.tangled.repo.reserveKey",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Reserve a signing key for a bring-your-own did:web repository identity. The knot seals the key and returns its multibase encoding so the owner can publish it in their did:web document before calling sh.tangled.repo.create.",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": [
13 "repoDid"
14 ],
15 "properties": {
16 "repoDid": {
17 "type": "string",
18 "format": "did",
19 "description": "The did:web identity the repository will use."
20 }
21 }
22 }
23 },
24 "output": {
25 "encoding": "application/json",
26 "schema": {
27 "type": "object",
28 "required": [
29 "repoDid",
30 "key"
31 ],
32 "properties": {
33 "repoDid": {
34 "type": "string",
35 "format": "did"
36 },
37 "key": {
38 "type": "string",
39 "description": "Multibase-encoded public key to publish in the did:web document."
40 }
41 }
42 }
43 }
44 }
45 }
46}