masterplan-optimizer-frontend / processorEvidenceApi
Variable: processorEvidenceApi¶
constprocessorEvidenceApi:object
Defined in: src/lib/api.ts:2855
Local-only processor-key generation and signing operations.
Type Declaration¶
enrolKey¶
enrolKey: (
eventId,keyId) =>Promise\<any>
Parameters¶
eventId¶
number
keyId¶
string
Returns¶
Promise\<any>
generateKey¶
generateKey: (
eventId,displayLabel?,supersedesKeyId?) =>Promise\<{key:ProcessorEvidenceKey;registration:Record\<string,unknown>; }>
Generate an Ed25519 key directly in the operating-system credential store.
Parameters¶
eventId¶
number
displayLabel?¶
string
supersedesKeyId?¶
string
Returns¶
Promise\<{ key: ProcessorEvidenceKey; registration: Record\<string, unknown>; }>
importKey¶
importKey: (
eventId,keyPackage,passphrase,displayLabel?) =>Promise\<{key:ProcessorEvidenceKey;registration:Record\<string,unknown>; }>
Parameters¶
eventId¶
number
keyPackage¶
Record\<string, unknown>
passphrase¶
string
displayLabel?¶
string
Returns¶
Promise\<{ key: ProcessorEvidenceKey; registration: Record\<string, unknown>; }>
listKeys¶
listKeys: (
eventId?) =>Promise\<ProcessorEvidenceKey[]>
List public metadata without reading or returning private key material.
Parameters¶
eventId?¶
number
Returns¶
Promise\<ProcessorEvidenceKey[]>
refreshEventStatus¶
refreshEventStatus: (
eventId) =>Promise\<any>
Parameters¶
eventId¶
number
Returns¶
Promise\<any>
retireKey¶
retireKey: (
keyId) =>Promise\<ProcessorEvidenceKey>
Disable future local signing only after the public key was revoked on the Server.
Parameters¶
keyId¶
string
Returns¶
Promise\<ProcessorEvidenceKey>
signRegistration¶
signRegistration: (
keyId,document) =>Promise\<{document:Record\<string,unknown>;proof:ProcessorEvidenceProof; }>
Sign an exact, short-lived Server registration challenge locally.
Parameters¶
keyId¶
string
document¶
Record\<string, unknown>
Returns¶
Promise\<{ document: Record\<string, unknown>; proof: ProcessorEvidenceProof; }>