openvibe-sdk/locker/vectors
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
From types/locker-vectors.d.ts (both). Declarations are shown verbatim.
export export function fixedRandom(seed?: number): (length: number)
A fixed byte source: the same bytes every time. A test helper, never for anything real.
export function fixedRandom(seed?: number): (length: number) => Uint8Array;export export const CONTENT: string;
The content of every case.
export const CONTENT: string;export export const PERSON: { ecdh: Record<string, unknown>;
A person's keys, made for these vectors.
export const PERSON: {
ecdh: Record<string, unknown>;
signing: Record<string, unknown>;
ecdhPublic: PublicKeyJwk;
signingPublic: PublicKeyJwk;
fingerprint: string;
};export export const SUBJECT: { type: string; id: string };
The subject the people case is for.
export const SUBJECT: { type: string; id: string };interface VectorCase
One case: the same content, sealed one way, and what it must produce.
export interface VectorCase {
name: string;
envelope_sha256: string;
header: LockerHeader;
}export export const CASES: VectorCase[];
The cases.
export const CASES: VectorCase[];export export const RECOVERY: { phrase: string; words: string[] };
A recovery phrase from a fixed byte source: the same words on every runtime.
export const RECOVERY: { phrase: string; words: string[] };export export const INSPECT: Record<string, { version: string;
What inspect() says about each case: the header, read without a key.
export const INSPECT: Record<string, {
version: string;
lock: string;
padded_size: number;
recipients: string[];
iterations: number | null;
}>;