@floegence/redevplugin-contracts 0.0.0-dev
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/dist/contracts.gen.d.ts +595 -0
- package/dist/contracts.gen.js +706 -0
- package/dist/index.d.ts +310 -0
- package/dist/index.js +33 -0
- package/dist/release-signing.d.ts +434 -0
- package/dist/release-signing.js +1152 -0
- package/package.json +32 -0
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
export declare const rootDelegationSchemaVersion: "redevplugin.release_root_delegation.v1";
|
|
2
|
+
export declare const packageSignatureSchemaVersion: "redevplugin.package_signature.v1";
|
|
3
|
+
export declare const releaseMetadataSchemaVersion: "redevplugin.release_metadata.v5";
|
|
4
|
+
export declare const sourcePolicySchemaVersion: "redevplugin.release_source_policy.v2";
|
|
5
|
+
export declare const sourcePolicyPointerSchemaVersion: "redevplugin.release_source_policy_pointer.v1";
|
|
6
|
+
export declare const revocationSchemaVersion: "redevplugin.release_revocation.v2";
|
|
7
|
+
export declare const revocationPointerSchemaVersion: "redevplugin.release_revocation_pointer.v1";
|
|
8
|
+
export declare const releaseSigningLedgerEvidenceSchemaVersion: "redevplugin.release_signing_ledger_evidence.v1";
|
|
9
|
+
export declare const signingSubjectSchemaVersion: "redevplugin.release_signing_subject.v1";
|
|
10
|
+
export declare const signatureEnvelopeSchemaVersion: "redevplugin.release_signature_envelope.v1";
|
|
11
|
+
export declare const signingLedgerSchemaVersion: "redevplugin.release_signing_ledger.v1";
|
|
12
|
+
export declare const signingLedgerEntrySchemaVersion: "redevplugin.release_signing_ledger_entry.v1";
|
|
13
|
+
export declare const signingLedgerLogLeafSchemaVersion: "redevplugin.release_signing_ledger_log_leaf.v1";
|
|
14
|
+
export declare const signingLedgerReceiptSchemaVersion: "redevplugin.release_signing_ledger_receipt.v1";
|
|
15
|
+
export declare const signatureAlgorithmEd25519: "ed25519";
|
|
16
|
+
export declare const genesisPreviousEpoch: "0";
|
|
17
|
+
export declare const genesisPreviousDocumentSHA256: string;
|
|
18
|
+
export declare const signingUsages: {
|
|
19
|
+
readonly rootDelegation: "redevplugin.release-signing.root-delegation.v1";
|
|
20
|
+
readonly package: "redevplugin.release-signing.package.v1";
|
|
21
|
+
readonly releaseMetadata: "redevplugin.release-signing.release-metadata.v1";
|
|
22
|
+
readonly sourcePolicy: "redevplugin.release-signing.source-policy-document.v1";
|
|
23
|
+
readonly sourcePolicyPointer: "redevplugin.release-signing.source-policy-pointer.v1";
|
|
24
|
+
readonly revocation: "redevplugin.release-signing.revocation-document.v1";
|
|
25
|
+
readonly revocationPointer: "redevplugin.release-signing.revocation-pointer.v1";
|
|
26
|
+
};
|
|
27
|
+
export type SigningUsage = (typeof signingUsages)[keyof typeof signingUsages];
|
|
28
|
+
export type DelegatedKeyUsage = "package" | "release_metadata" | "host_capability_contract" | "source_policy_document" | "source_policy_pointer" | "revocation_document" | "revocation_pointer" | "signing_ledger" | "trusted_time";
|
|
29
|
+
export type RootDelegatedKey = Readonly<{
|
|
30
|
+
algorithm: typeof signatureAlgorithmEd25519;
|
|
31
|
+
key_id: string;
|
|
32
|
+
public_key: string;
|
|
33
|
+
usages: readonly DelegatedKeyUsage[];
|
|
34
|
+
channels: readonly string[];
|
|
35
|
+
valid_from: string;
|
|
36
|
+
valid_until: string;
|
|
37
|
+
}>;
|
|
38
|
+
export type RootDelegationV1 = Readonly<{
|
|
39
|
+
schema_version: typeof rootDelegationSchemaVersion;
|
|
40
|
+
source_id: string;
|
|
41
|
+
root_epoch: string;
|
|
42
|
+
previous_root_epoch: string;
|
|
43
|
+
previous_delegation_sha256: string;
|
|
44
|
+
generated_at: string;
|
|
45
|
+
expires_at: string;
|
|
46
|
+
delegated_keys: readonly RootDelegatedKey[];
|
|
47
|
+
key_id: string;
|
|
48
|
+
signature: string;
|
|
49
|
+
}>;
|
|
50
|
+
export type RootDelegationInput = Omit<RootDelegationV1, "schema_version" | "signature">;
|
|
51
|
+
export type PackageSigningInput = Readonly<{
|
|
52
|
+
source_id: string;
|
|
53
|
+
channel: string;
|
|
54
|
+
version: string;
|
|
55
|
+
algorithm: typeof signatureAlgorithmEd25519;
|
|
56
|
+
key_id: string;
|
|
57
|
+
publisher_id: string;
|
|
58
|
+
plugin_id: string;
|
|
59
|
+
package_hash: string;
|
|
60
|
+
manifest_hash: string;
|
|
61
|
+
entries_hash: string;
|
|
62
|
+
signed_at: string;
|
|
63
|
+
}>;
|
|
64
|
+
export type PackageVerificationContext = Readonly<{
|
|
65
|
+
source_id: string;
|
|
66
|
+
channel: string;
|
|
67
|
+
version: string;
|
|
68
|
+
}>;
|
|
69
|
+
export type PackageSignatureV1 = Readonly<{
|
|
70
|
+
schema_version: typeof packageSignatureSchemaVersion;
|
|
71
|
+
algorithm: typeof signatureAlgorithmEd25519;
|
|
72
|
+
key_id: string;
|
|
73
|
+
publisher_id?: string;
|
|
74
|
+
plugin_id?: string;
|
|
75
|
+
package_hash: string;
|
|
76
|
+
manifest_hash: string;
|
|
77
|
+
entries_hash: string;
|
|
78
|
+
signature: string;
|
|
79
|
+
signed_at?: string;
|
|
80
|
+
}>;
|
|
81
|
+
export type ReleaseDistributionRef = Readonly<{
|
|
82
|
+
distribution: "registry_ref" | "host_artifact_ref";
|
|
83
|
+
artifact_ref: string;
|
|
84
|
+
}>;
|
|
85
|
+
export type ReleasePackageHashSet = Readonly<{
|
|
86
|
+
package_sha256: string;
|
|
87
|
+
manifest_sha256: string;
|
|
88
|
+
entries_sha256: string;
|
|
89
|
+
}>;
|
|
90
|
+
export type ReleaseMetadataSignatureRef = Readonly<{
|
|
91
|
+
algorithm: typeof signatureAlgorithmEd25519;
|
|
92
|
+
key_id: string;
|
|
93
|
+
signature_ref: string;
|
|
94
|
+
source_policy_epoch: string;
|
|
95
|
+
revocation_epoch: string;
|
|
96
|
+
}>;
|
|
97
|
+
export type PackageReleaseSignatureRef = Readonly<{
|
|
98
|
+
algorithm: typeof signatureAlgorithmEd25519;
|
|
99
|
+
key_id: string;
|
|
100
|
+
signature_bundle_ref: string;
|
|
101
|
+
source_policy_epoch: string;
|
|
102
|
+
revocation_epoch: string;
|
|
103
|
+
}>;
|
|
104
|
+
export type ReleaseCompatibility = Readonly<{
|
|
105
|
+
min_redevplugin_version: string;
|
|
106
|
+
min_runtime_version: string;
|
|
107
|
+
ui_protocol_version: "plugin-ui-v5";
|
|
108
|
+
supported_targets?: readonly ("darwin/amd64" | "darwin/arm64" | "linux/amd64" | "linux/arm64")[];
|
|
109
|
+
}>;
|
|
110
|
+
export type HostCapabilityContractRef = Readonly<{
|
|
111
|
+
publisher_id: string;
|
|
112
|
+
contract_id: string;
|
|
113
|
+
contract_version: string;
|
|
114
|
+
artifact_ref: string;
|
|
115
|
+
artifact_sha256: string;
|
|
116
|
+
manifest_ref: string;
|
|
117
|
+
manifest_sha256: string;
|
|
118
|
+
signature_ref: string;
|
|
119
|
+
signature_sha256: string;
|
|
120
|
+
signature_key_id: string;
|
|
121
|
+
signature_policy_epoch: string;
|
|
122
|
+
signature_revocation_epoch: string;
|
|
123
|
+
compatibility_ref: string;
|
|
124
|
+
compatibility_sha256: string;
|
|
125
|
+
generated_client_ref: string;
|
|
126
|
+
generated_client_sha256: string;
|
|
127
|
+
notices_ref: string;
|
|
128
|
+
notices_sha256: string;
|
|
129
|
+
}>;
|
|
130
|
+
export type HostCapabilityRequirementRef = Readonly<{
|
|
131
|
+
capability_id: string;
|
|
132
|
+
capability_version: string;
|
|
133
|
+
contract: HostCapabilityContractRef;
|
|
134
|
+
}>;
|
|
135
|
+
export type ReleaseHostRequirement = Readonly<{
|
|
136
|
+
host_id: string;
|
|
137
|
+
min_host_version?: string;
|
|
138
|
+
required_capability_contracts?: readonly HostCapabilityRequirementRef[];
|
|
139
|
+
}>;
|
|
140
|
+
export type ReleaseEvidence = Readonly<{
|
|
141
|
+
notices_sha256?: string;
|
|
142
|
+
provenance_sha256?: string;
|
|
143
|
+
generated_at?: string;
|
|
144
|
+
}>;
|
|
145
|
+
export type ReleaseMetadataV5 = Readonly<{
|
|
146
|
+
schema_version: typeof releaseMetadataSchemaVersion;
|
|
147
|
+
source_id: string;
|
|
148
|
+
release_metadata_ref: string;
|
|
149
|
+
publisher_id: string;
|
|
150
|
+
plugin_id: string;
|
|
151
|
+
version: string;
|
|
152
|
+
distribution_ref: ReleaseDistributionRef;
|
|
153
|
+
hashes: ReleasePackageHashSet;
|
|
154
|
+
release_metadata_signature: ReleaseMetadataSignatureRef;
|
|
155
|
+
package_signature: PackageReleaseSignatureRef;
|
|
156
|
+
compatibility: ReleaseCompatibility;
|
|
157
|
+
host_requirements?: readonly ReleaseHostRequirement[];
|
|
158
|
+
release_evidence?: ReleaseEvidence;
|
|
159
|
+
metadata?: Readonly<Record<string, string>>;
|
|
160
|
+
}>;
|
|
161
|
+
export type SourcePolicyLimits = Readonly<{
|
|
162
|
+
document_max_lifetime_seconds: 86400;
|
|
163
|
+
future_skew_seconds: 300;
|
|
164
|
+
activation_lease_max_seconds: 300;
|
|
165
|
+
refresh_interval_max_seconds: 60;
|
|
166
|
+
failure_teardown_deadline_seconds: 30;
|
|
167
|
+
}>;
|
|
168
|
+
export declare const defaultSourcePolicyLimits: SourcePolicyLimits;
|
|
169
|
+
export type SourcePolicyActiveKeys = Readonly<{
|
|
170
|
+
package: readonly string[];
|
|
171
|
+
release_metadata: readonly string[];
|
|
172
|
+
host_capability_contract: readonly string[];
|
|
173
|
+
source_policy_pointer: readonly string[];
|
|
174
|
+
revocation_document: readonly string[];
|
|
175
|
+
revocation_pointer: readonly string[];
|
|
176
|
+
}>;
|
|
177
|
+
export type SourcePolicyCapabilityPublisherScope = Readonly<{
|
|
178
|
+
key_id: string;
|
|
179
|
+
allowed_publishers: readonly string[];
|
|
180
|
+
}>;
|
|
181
|
+
export type SourcePolicyV2 = Readonly<{
|
|
182
|
+
schema_version: typeof sourcePolicySchemaVersion;
|
|
183
|
+
source_id: string;
|
|
184
|
+
channel: string;
|
|
185
|
+
epoch: string;
|
|
186
|
+
previous_epoch: string;
|
|
187
|
+
previous_document_sha256: string;
|
|
188
|
+
root_epoch: string;
|
|
189
|
+
source_type: "registry" | "host_artifact";
|
|
190
|
+
source_class: "official" | "curated" | "community" | "private";
|
|
191
|
+
allowed_publishers: readonly string[];
|
|
192
|
+
allowed_artifact_hosts: readonly string[];
|
|
193
|
+
active_keys: SourcePolicyActiveKeys;
|
|
194
|
+
capability_publisher_scopes: readonly SourcePolicyCapabilityPublisherScope[];
|
|
195
|
+
require_signature: boolean;
|
|
196
|
+
install_policy: "allow" | "review_required" | "block";
|
|
197
|
+
unsigned_policy: "dev_only" | "review_required" | "block";
|
|
198
|
+
downgrade_policy: "review_required" | "block";
|
|
199
|
+
minimum_revocation_epoch: string;
|
|
200
|
+
limits: SourcePolicyLimits;
|
|
201
|
+
generated_at: string;
|
|
202
|
+
expires_at: string;
|
|
203
|
+
key_id: string;
|
|
204
|
+
signature: string;
|
|
205
|
+
}>;
|
|
206
|
+
export type SourcePolicyInput = Omit<SourcePolicyV2, "schema_version" | "signature">;
|
|
207
|
+
export type ReleasePointerInput = Readonly<{
|
|
208
|
+
source_id: string;
|
|
209
|
+
channel: string;
|
|
210
|
+
epoch: string;
|
|
211
|
+
previous_epoch: string;
|
|
212
|
+
previous_document_sha256: string;
|
|
213
|
+
ref: string;
|
|
214
|
+
document_sha256: string;
|
|
215
|
+
generated_at: string;
|
|
216
|
+
expires_at: string;
|
|
217
|
+
key_id: string;
|
|
218
|
+
}>;
|
|
219
|
+
export type SourcePolicyPointerV1 = Readonly<ReleasePointerInput & {
|
|
220
|
+
schema_version: typeof sourcePolicyPointerSchemaVersion;
|
|
221
|
+
signature: string;
|
|
222
|
+
}>;
|
|
223
|
+
export type RevokedRelease = Readonly<{
|
|
224
|
+
publisher_id: string;
|
|
225
|
+
plugin_id: string;
|
|
226
|
+
version: string;
|
|
227
|
+
release_metadata_sha256: string;
|
|
228
|
+
revoked_at: string;
|
|
229
|
+
}>;
|
|
230
|
+
export type RevocationV2 = Readonly<{
|
|
231
|
+
schema_version: typeof revocationSchemaVersion;
|
|
232
|
+
source_id: string;
|
|
233
|
+
channel: string;
|
|
234
|
+
epoch: string;
|
|
235
|
+
previous_epoch: string;
|
|
236
|
+
previous_document_sha256: string;
|
|
237
|
+
root_epoch: string;
|
|
238
|
+
generated_at: string;
|
|
239
|
+
expires_at: string;
|
|
240
|
+
revoked_key_ids: readonly string[];
|
|
241
|
+
revoked_releases: readonly RevokedRelease[];
|
|
242
|
+
key_id: string;
|
|
243
|
+
signature: string;
|
|
244
|
+
}>;
|
|
245
|
+
export type RevocationInput = Omit<RevocationV2, "schema_version" | "signature">;
|
|
246
|
+
export type RevocationPointerV1 = Readonly<ReleasePointerInput & {
|
|
247
|
+
schema_version: typeof revocationPointerSchemaVersion;
|
|
248
|
+
signature: string;
|
|
249
|
+
}>;
|
|
250
|
+
export type SigningLedgerEvidenceV1 = Readonly<{
|
|
251
|
+
schema_version: typeof releaseSigningLedgerEvidenceSchemaVersion;
|
|
252
|
+
source_id: string;
|
|
253
|
+
channel?: string;
|
|
254
|
+
subject_identity_sha256: string;
|
|
255
|
+
signing_preimage_sha256: string;
|
|
256
|
+
signature_envelope_sha256: string;
|
|
257
|
+
receipt_ref: string;
|
|
258
|
+
receipt_sha256: string;
|
|
259
|
+
checkpoint_ref: string;
|
|
260
|
+
checkpoint_sha256: string;
|
|
261
|
+
inclusion_proof_ref: string;
|
|
262
|
+
inclusion_proof_sha256: string;
|
|
263
|
+
latest_proof_ref: string;
|
|
264
|
+
latest_proof_sha256: string;
|
|
265
|
+
consistency_proof_ref?: string;
|
|
266
|
+
consistency_proof_sha256?: string;
|
|
267
|
+
}>;
|
|
268
|
+
export type SigningSubjectUsage = "root_delegation" | "package" | "release_metadata" | "source_policy_document" | "source_policy_pointer" | "revocation_document" | "revocation_pointer";
|
|
269
|
+
export type SigningSubjectV1 = Readonly<{
|
|
270
|
+
schema_version: typeof signingSubjectSchemaVersion;
|
|
271
|
+
usage: SigningSubjectUsage;
|
|
272
|
+
source_id: string;
|
|
273
|
+
channel?: string;
|
|
274
|
+
root_epoch?: string;
|
|
275
|
+
publisher_id?: string;
|
|
276
|
+
plugin_id?: string;
|
|
277
|
+
version?: string;
|
|
278
|
+
artifact_or_metadata_identity_sha256?: string;
|
|
279
|
+
epoch?: string;
|
|
280
|
+
}>;
|
|
281
|
+
export type SignatureEnvelopeV1 = Readonly<{
|
|
282
|
+
schema_version: typeof signatureEnvelopeSchemaVersion;
|
|
283
|
+
subject_identity_sha256: string;
|
|
284
|
+
signing_preimage_sha256: string;
|
|
285
|
+
algorithm: typeof signatureAlgorithmEd25519;
|
|
286
|
+
key_id: string;
|
|
287
|
+
signature: string;
|
|
288
|
+
}>;
|
|
289
|
+
export type SigningLedgerEntryState = "reserved" | "finalized" | "terminal_failed";
|
|
290
|
+
export type SigningLedgerFailureCode = "signer_rejected" | "subject_conflict" | "ledger_rejected";
|
|
291
|
+
export type SigningLedgerEntryV1 = Readonly<{
|
|
292
|
+
schema_version: typeof signingLedgerEntrySchemaVersion;
|
|
293
|
+
state: SigningLedgerEntryState;
|
|
294
|
+
subject: SigningSubjectV1;
|
|
295
|
+
subject_identity_sha256: string;
|
|
296
|
+
signing_preimage_sha256: string;
|
|
297
|
+
algorithm: typeof signatureAlgorithmEd25519;
|
|
298
|
+
key_id: string;
|
|
299
|
+
revision: number;
|
|
300
|
+
reserved_at: string;
|
|
301
|
+
signature_envelope?: SignatureEnvelopeV1;
|
|
302
|
+
signature_envelope_sha256?: string;
|
|
303
|
+
finalized_at?: string;
|
|
304
|
+
failure_code?: SigningLedgerFailureCode;
|
|
305
|
+
failed_at?: string;
|
|
306
|
+
}>;
|
|
307
|
+
export type SigningLedgerLogLeafV1 = Readonly<{
|
|
308
|
+
schema_version: typeof signingLedgerLogLeafSchemaVersion;
|
|
309
|
+
source_id: string;
|
|
310
|
+
channel?: string;
|
|
311
|
+
subject_identity_sha256: string;
|
|
312
|
+
signing_preimage_sha256: string;
|
|
313
|
+
signature_envelope_sha256: string;
|
|
314
|
+
sequence: number;
|
|
315
|
+
}>;
|
|
316
|
+
export type SigningLedgerCheckpointV1 = Readonly<{
|
|
317
|
+
schema_version: typeof signingLedgerSchemaVersion;
|
|
318
|
+
kind: "checkpoint";
|
|
319
|
+
log_id: string;
|
|
320
|
+
tree_size: number;
|
|
321
|
+
log_root_hash: string;
|
|
322
|
+
latest_map_root_hash: string;
|
|
323
|
+
checkpoint_time: string;
|
|
324
|
+
key_id: string;
|
|
325
|
+
signature: string;
|
|
326
|
+
}>;
|
|
327
|
+
export type SigningLedgerReceiptV1 = Readonly<{
|
|
328
|
+
schema_version: typeof signingLedgerReceiptSchemaVersion;
|
|
329
|
+
log_id: string;
|
|
330
|
+
source_id: string;
|
|
331
|
+
channel?: string;
|
|
332
|
+
subject_identity_sha256: string;
|
|
333
|
+
signing_preimage_sha256: string;
|
|
334
|
+
signature_envelope_sha256: string;
|
|
335
|
+
sequence: number;
|
|
336
|
+
leaf_index: number;
|
|
337
|
+
tree_size: number;
|
|
338
|
+
log_root_hash: string;
|
|
339
|
+
latest_map_root_hash: string;
|
|
340
|
+
checkpoint_sha256: string;
|
|
341
|
+
checkpoint_time: string;
|
|
342
|
+
key_id: string;
|
|
343
|
+
signature: string;
|
|
344
|
+
}>;
|
|
345
|
+
export type SigningLedgerInclusionProofV1 = Readonly<{
|
|
346
|
+
schema_version: typeof signingLedgerSchemaVersion;
|
|
347
|
+
kind: "inclusion_proof";
|
|
348
|
+
log_id: string;
|
|
349
|
+
leaf_index: number;
|
|
350
|
+
tree_size: number;
|
|
351
|
+
nodes: readonly string[];
|
|
352
|
+
}>;
|
|
353
|
+
export type SigningLedgerLatestProofV1 = Readonly<{
|
|
354
|
+
schema_version: typeof signingLedgerSchemaVersion;
|
|
355
|
+
kind: "latest_proof";
|
|
356
|
+
log_id: string;
|
|
357
|
+
subject_identity_sha256: string;
|
|
358
|
+
present: boolean;
|
|
359
|
+
sequence?: number;
|
|
360
|
+
signing_preimage_sha256?: string;
|
|
361
|
+
signature_envelope_sha256?: string;
|
|
362
|
+
siblings: readonly string[];
|
|
363
|
+
}>;
|
|
364
|
+
export type SigningLedgerConsistencyProofV1 = Readonly<{
|
|
365
|
+
schema_version: typeof signingLedgerSchemaVersion;
|
|
366
|
+
kind: "consistency_proof";
|
|
367
|
+
log_id: string;
|
|
368
|
+
old_tree_size: number;
|
|
369
|
+
new_tree_size: number;
|
|
370
|
+
nodes: readonly string[];
|
|
371
|
+
}>;
|
|
372
|
+
export type SignatureVerificationRequest = Readonly<{
|
|
373
|
+
usage: SigningUsage;
|
|
374
|
+
keyID: string;
|
|
375
|
+
signingPreimageSHA256: Uint8Array;
|
|
376
|
+
signature: Uint8Array;
|
|
377
|
+
}>;
|
|
378
|
+
export type SignatureVerifier = (request: SignatureVerificationRequest) => boolean | Promise<boolean>;
|
|
379
|
+
export declare class InvalidReleaseDocumentError extends TypeError {
|
|
380
|
+
constructor();
|
|
381
|
+
}
|
|
382
|
+
export declare class InvalidReleaseSignatureError extends Error {
|
|
383
|
+
constructor();
|
|
384
|
+
}
|
|
385
|
+
export declare function buildRootDelegation(input: RootDelegationInput, signature: Uint8Array): RootDelegationV1;
|
|
386
|
+
export declare function rootDelegationSigningPreimage(input: RootDelegationInput): Uint8Array;
|
|
387
|
+
export declare function canonicalRootDelegation(document: RootDelegationV1): Uint8Array;
|
|
388
|
+
export declare function verifyRootDelegation(document: RootDelegationV1, verifier: SignatureVerifier): Promise<void>;
|
|
389
|
+
export declare function buildPackageSignature(input: PackageSigningInput, signature: Uint8Array): PackageSignatureV1;
|
|
390
|
+
export declare function packageSigningPreimage(input: PackageSigningInput): Uint8Array;
|
|
391
|
+
export declare function canonicalPackageSignature(context: PackageVerificationContext, document: PackageSignatureV1): Uint8Array;
|
|
392
|
+
export declare function verifyPackageSignature(context: PackageVerificationContext, document: PackageSignatureV1, verifier: SignatureVerifier): Promise<void>;
|
|
393
|
+
export declare function buildReleaseMetadata(document: ReleaseMetadataV5): ReleaseMetadataV5;
|
|
394
|
+
export declare function releaseMetadataSigningPreimage(channel: string, document: ReleaseMetadataV5): Uint8Array;
|
|
395
|
+
export declare function canonicalReleaseMetadata(document: ReleaseMetadataV5): Uint8Array;
|
|
396
|
+
export declare function verifyReleaseMetadata(channel: string, document: ReleaseMetadataV5, signature: Uint8Array, verifier: SignatureVerifier): Promise<void>;
|
|
397
|
+
export declare function buildSourcePolicy(input: SourcePolicyInput, signature: Uint8Array): SourcePolicyV2;
|
|
398
|
+
export declare function sourcePolicySigningPreimage(input: SourcePolicyInput): Uint8Array;
|
|
399
|
+
export declare function canonicalSourcePolicy(document: SourcePolicyV2): Uint8Array;
|
|
400
|
+
export declare function verifySourcePolicy(document: SourcePolicyV2, verifier: SignatureVerifier): Promise<void>;
|
|
401
|
+
export declare function buildSourcePolicyPointer(input: ReleasePointerInput, signature: Uint8Array): SourcePolicyPointerV1;
|
|
402
|
+
export declare function sourcePolicyPointerSigningPreimage(input: ReleasePointerInput): Uint8Array;
|
|
403
|
+
export declare function canonicalSourcePolicyPointer(document: SourcePolicyPointerV1): Uint8Array;
|
|
404
|
+
export declare function verifySourcePolicyPointer(document: SourcePolicyPointerV1, verifier: SignatureVerifier): Promise<void>;
|
|
405
|
+
export declare function buildRevocation(input: RevocationInput, signature: Uint8Array): RevocationV2;
|
|
406
|
+
export declare function revocationSigningPreimage(input: RevocationInput): Uint8Array;
|
|
407
|
+
export declare function canonicalRevocation(document: RevocationV2): Uint8Array;
|
|
408
|
+
export declare function verifyRevocation(document: RevocationV2, verifier: SignatureVerifier): Promise<void>;
|
|
409
|
+
export declare function buildRevocationPointer(input: ReleasePointerInput, signature: Uint8Array): RevocationPointerV1;
|
|
410
|
+
export declare function revocationPointerSigningPreimage(input: ReleasePointerInput): Uint8Array;
|
|
411
|
+
export declare function canonicalRevocationPointer(document: RevocationPointerV1): Uint8Array;
|
|
412
|
+
export declare function verifyRevocationPointer(document: RevocationPointerV1, verifier: SignatureVerifier): Promise<void>;
|
|
413
|
+
export declare function decodeRootDelegation(raw: Uint8Array | string): RootDelegationV1;
|
|
414
|
+
export declare function decodePackageSignature(raw: Uint8Array | string, context: PackageVerificationContext): PackageSignatureV1;
|
|
415
|
+
export declare function decodeReleaseMetadata(raw: Uint8Array | string): ReleaseMetadataV5;
|
|
416
|
+
export declare function decodeSourcePolicy(raw: Uint8Array | string): SourcePolicyV2;
|
|
417
|
+
export declare function decodeSourcePolicyPointer(raw: Uint8Array | string): SourcePolicyPointerV1;
|
|
418
|
+
export declare function decodeRevocation(raw: Uint8Array | string): RevocationV2;
|
|
419
|
+
export declare function decodeRevocationPointer(raw: Uint8Array | string): RevocationPointerV1;
|
|
420
|
+
export declare function decodeSigningLedgerEvidence(raw: Uint8Array | string): SigningLedgerEvidenceV1;
|
|
421
|
+
export declare function canonicalSigningSubject(value: SigningSubjectV1): Uint8Array;
|
|
422
|
+
export declare function decodeSigningSubject(raw: Uint8Array | string): SigningSubjectV1;
|
|
423
|
+
export declare function canonicalSignatureEnvelope(value: SignatureEnvelopeV1): Uint8Array;
|
|
424
|
+
export declare function decodeSignatureEnvelope(raw: Uint8Array | string): SignatureEnvelopeV1;
|
|
425
|
+
export declare function canonicalSigningLedgerEntry(value: SigningLedgerEntryV1): Uint8Array;
|
|
426
|
+
export declare function decodeSigningLedgerEntry(raw: Uint8Array | string): SigningLedgerEntryV1;
|
|
427
|
+
export declare function verifySigningLedgerEntryBindings(value: SigningLedgerEntryV1): Promise<void>;
|
|
428
|
+
export declare function decodeSigningLedgerLogLeaf(raw: Uint8Array | string): SigningLedgerLogLeafV1;
|
|
429
|
+
export declare function decodeSigningLedgerCheckpoint(raw: Uint8Array | string): SigningLedgerCheckpointV1;
|
|
430
|
+
export declare function decodeSigningLedgerReceipt(raw: Uint8Array | string): SigningLedgerReceiptV1;
|
|
431
|
+
export declare function decodeSigningLedgerInclusionProof(raw: Uint8Array | string): SigningLedgerInclusionProofV1;
|
|
432
|
+
export declare function decodeSigningLedgerLatestProof(raw: Uint8Array | string): SigningLedgerLatestProofV1;
|
|
433
|
+
export declare function decodeSigningLedgerConsistencyProof(raw: Uint8Array | string): SigningLedgerConsistencyProofV1;
|
|
434
|
+
export declare function createEd25519Verifier(publicKeys: Readonly<Record<string, Uint8Array>>, subtle?: SubtleCrypto): SignatureVerifier;
|