@openvtc/trust-tasks 0.26.29 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/dist/_shared/components.d.ts +15 -1
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/persona/contact/get/1.1/payload.d.ts +12 -5
- package/dist/persona/contact/get/1.1/payload.d.ts.map +1 -1
- package/dist/persona/contact/get/1.1/payload.js +4 -4
- package/dist/persona/contact/get/1.1/payload.js.map +1 -1
- package/dist/persona/contact/list/1.1/payload.d.ts +12 -5
- package/dist/persona/contact/list/1.1/payload.d.ts.map +1 -1
- package/dist/persona/contact/list/1.1/payload.js +4 -4
- package/dist/persona/contact/list/1.1/payload.js.map +1 -1
- package/dist/persona/contact/put/1.1/payload.d.ts +32 -6
- package/dist/persona/contact/put/1.1/payload.d.ts.map +1 -1
- package/dist/persona/contact/put/1.1/payload.js +32 -2
- package/dist/persona/contact/put/1.1/payload.js.map +1 -1
- package/dist/voting/_shared/0.1/voting.d.ts +1 -1
- package/dist/voting/_shared/0.1/voting.d.ts.map +1 -1
- package/dist/voting/board/read/0.1/payload.d.ts +58 -2
- package/dist/voting/board/read/0.1/payload.d.ts.map +1 -1
- package/dist/voting/board/read/0.1/payload.js +36 -0
- package/dist/voting/board/read/0.1/payload.js.map +1 -1
- package/dist/voting/trustees/authorize/0.1/payload.d.ts +617 -0
- package/dist/voting/trustees/authorize/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/authorize/0.1/payload.js +386 -0
- package/dist/voting/trustees/authorize/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/status/0.1/payload.d.ts +106 -2
- package/dist/voting/trustees/status/0.1/payload.d.ts.map +1 -1
- package/dist/voting/trustees/status/0.1/payload.js +48 -0
- package/dist/voting/trustees/status/0.1/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/deal/0.2/payload.d.ts +1832 -0
- package/dist/vta/pcs/trustee/deal/0.2/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/deal/0.2/payload.js +1077 -0
- package/dist/vta/pcs/trustee/deal/0.2/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/decrypt/0.2/payload.d.ts +758 -0
- package/dist/vta/pcs/trustee/decrypt/0.2/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/decrypt/0.2/payload.js +423 -0
- package/dist/vta/pcs/trustee/decrypt/0.2/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/justify/0.2/payload.d.ts +1867 -0
- package/dist/vta/pcs/trustee/justify/0.2/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/justify/0.2/payload.js +1095 -0
- package/dist/vta/pcs/trustee/justify/0.2/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/keys/0.2/payload.d.ts +1912 -0
- package/dist/vta/pcs/trustee/keys/0.2/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/keys/0.2/payload.js +1115 -0
- package/dist/vta/pcs/trustee/keys/0.2/payload.js.map +1 -0
- package/dist/vta/pcs/vote-encrypted/0.2/payload.d.ts +2228 -0
- package/dist/vta/pcs/vote-encrypted/0.2/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vote-encrypted/0.2/payload.js +1300 -0
- package/dist/vta/pcs/vote-encrypted/0.2/payload.js.map +1 -0
- package/dist/vtc/elections/show/0.1/payload.d.ts +86 -2
- package/dist/vtc/elections/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/elections/show/0.1/payload.js +40 -0
- package/dist/vtc/elections/show/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +16 -1
- package/src/index.ts +6 -0
- package/src/persona/contact/get/1.1/payload.ts +8 -5
- package/src/persona/contact/list/1.1/payload.ts +8 -5
- package/src/persona/contact/put/1.1/payload.ts +34 -4
- package/src/voting/_shared/0.1/voting.ts +1 -1
- package/src/voting/board/read/0.1/payload.ts +38 -2
- package/src/voting/trustees/authorize/0.1/payload.ts +434 -0
- package/src/voting/trustees/status/0.1/payload.ts +58 -2
- package/src/vta/pcs/trustee/deal/0.2/payload.ts +1148 -0
- package/src/vta/pcs/trustee/decrypt/0.2/payload.ts +500 -0
- package/src/vta/pcs/trustee/justify/0.2/payload.ts +1167 -0
- package/src/vta/pcs/trustee/keys/0.2/payload.ts +1194 -0
- package/src/vta/pcs/vote-encrypted/0.2/payload.ts +1369 -0
- package/src/vtc/elections/show/0.1/payload.ts +46 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Source: specs/voting/trustees/status/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { Dealing, DecryptionTarget, ElectionId, ElectionKey, ElGamalCiphertext, Ext, GroupElement, GroupScalar, SealedPayload, SealedShare, SigmaProof, TransportKey, TrusteeIndex, TrusteePhase } from "../../../../_shared/components.js";
|
|
6
|
+
import type { Dealing, DecryptionTarget, ElectionId, ElectionKey, ElGamalCiphertext, Ext, GroupElement, GroupScalar, SealedPayload, SealedShare, SigmaProof, SignedRequest, TransportKey, TrusteeCeremony, TrusteeIndex, TrusteePhase } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -55,10 +55,18 @@ export interface VotingTrusteesStatusResponsePayload {
|
|
|
55
55
|
*/
|
|
56
56
|
decrypted: TrusteeIndex[];
|
|
57
57
|
ext?: Ext;
|
|
58
|
+
/**
|
|
59
|
+
* Every trusteeStep request on the board, in board order, as received. What a trustee's VTA acts on: the other members of this answer carry no trustee's proof.
|
|
60
|
+
*/
|
|
61
|
+
steps?: TrusteeCeremony;
|
|
62
|
+
/**
|
|
63
|
+
* Once the community has authorized decryption: its voting/trustees/authorize request, as received. A trustee's VTA decrypts only the targets it pins.
|
|
64
|
+
*/
|
|
65
|
+
authorization?: SignedRequest;
|
|
58
66
|
}
|
|
59
67
|
|
|
60
68
|
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
61
|
-
export type { Dealing, DecryptionTarget, ElectionId, ElectionKey, ElGamalCiphertext, Ext, GroupElement, GroupScalar, SealedPayload, SealedShare, SigmaProof, TransportKey, TrusteeIndex, TrusteePhase };
|
|
69
|
+
export type { Dealing, DecryptionTarget, ElectionId, ElectionKey, ElGamalCiphertext, Ext, GroupElement, GroupScalar, SealedPayload, SealedShare, SigmaProof, SignedRequest, TransportKey, TrusteeCeremony, TrusteeIndex, TrusteePhase };
|
|
62
70
|
|
|
63
71
|
/** Trust Task type URI. */
|
|
64
72
|
export const TYPE_URI = "https://trusttasks.org/spec/voting/trustees/status/0.1" as const;
|
|
@@ -200,9 +208,33 @@ export const PAYLOAD_SCHEMA = {
|
|
|
200
208
|
},
|
|
201
209
|
"ext": {
|
|
202
210
|
"$ref": "#/$defs/Ext"
|
|
211
|
+
},
|
|
212
|
+
"steps": {
|
|
213
|
+
"$ref": "#/$defs/TrusteeCeremony",
|
|
214
|
+
"description": "Every trusteeStep request on the board, in board order, as received. What a trustee's VTA acts on: the other members of this answer carry no trustee's proof."
|
|
215
|
+
},
|
|
216
|
+
"authorization": {
|
|
217
|
+
"$ref": "#/$defs/SignedRequest",
|
|
218
|
+
"description": "Once the community has authorized decryption: its voting/trustees/authorize request, as received. A trustee's VTA decrypts only the targets it pins."
|
|
203
219
|
}
|
|
204
220
|
}
|
|
205
221
|
},
|
|
222
|
+
"SignedRequest": {
|
|
223
|
+
"title": "SignedRequest",
|
|
224
|
+
"description": "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.",
|
|
225
|
+
"type": "object",
|
|
226
|
+
"minProperties": 1
|
|
227
|
+
},
|
|
228
|
+
"TrusteeCeremony": {
|
|
229
|
+
"title": "TrusteeCeremony",
|
|
230
|
+
"description": "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.",
|
|
231
|
+
"type": "array",
|
|
232
|
+
"minItems": 1,
|
|
233
|
+
"maxItems": 4224,
|
|
234
|
+
"items": {
|
|
235
|
+
"$ref": "#/$defs/SignedRequest"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
206
238
|
"Ext": {
|
|
207
239
|
"title": "Ext",
|
|
208
240
|
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
@@ -579,9 +611,33 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
579
611
|
},
|
|
580
612
|
"ext": {
|
|
581
613
|
"$ref": "#/$defs/Ext"
|
|
614
|
+
},
|
|
615
|
+
"steps": {
|
|
616
|
+
"$ref": "#/$defs/TrusteeCeremony",
|
|
617
|
+
"description": "Every trusteeStep request on the board, in board order, as received. What a trustee's VTA acts on: the other members of this answer carry no trustee's proof."
|
|
618
|
+
},
|
|
619
|
+
"authorization": {
|
|
620
|
+
"$ref": "#/$defs/SignedRequest",
|
|
621
|
+
"description": "Once the community has authorized decryption: its voting/trustees/authorize request, as received. A trustee's VTA decrypts only the targets it pins."
|
|
582
622
|
}
|
|
583
623
|
}
|
|
584
624
|
},
|
|
625
|
+
"SignedRequest": {
|
|
626
|
+
"title": "SignedRequest",
|
|
627
|
+
"description": "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.",
|
|
628
|
+
"type": "object",
|
|
629
|
+
"minProperties": 1
|
|
630
|
+
},
|
|
631
|
+
"TrusteeCeremony": {
|
|
632
|
+
"title": "TrusteeCeremony",
|
|
633
|
+
"description": "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.",
|
|
634
|
+
"type": "array",
|
|
635
|
+
"minItems": 1,
|
|
636
|
+
"maxItems": 4224,
|
|
637
|
+
"items": {
|
|
638
|
+
"$ref": "#/$defs/SignedRequest"
|
|
639
|
+
}
|
|
640
|
+
},
|
|
585
641
|
"Ext": {
|
|
586
642
|
"title": "Ext",
|
|
587
643
|
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|