Files
Portfolio/scripts/deploy/lib/release-common.d.mts

22 lines
688 B
TypeScript

export interface ArchiveFile {
path: string;
bytes: Uint8Array;
}
export function createDeterministicTar(files: readonly ArchiveFile[]): Buffer;
export function parseDeterministicTar(source: Uint8Array): ArchiveFile[];
export function verifySignedRelease(input: {
signedManifestPath: string;
authorityRoot: string;
protectedState: Record<string, unknown>;
}): Promise<Record<string, unknown>>;
export function verifySignedReleaseForTest(input: {
signedManifestPath: string;
trustPolicyPath: string;
verifySignedReleaseEnvelope: (input: Record<string, unknown>) => unknown;
protectedState: Record<string, unknown>;
now: string;
}): Promise<Record<string, unknown>>;