T

NativePlatformAddons

Loader helpers for verifying and loading installed addons.

type NativePlatformAddons = { … }

Members

evaluateBytecode(folder: string, bytecodeVersion: number): NativeCompiledPlugin | undefined

Evaluates an installed plugin's bundle compiled for this bytecode version, if its digest matches the manifest.

readSource(folder: string): string | undefined

Reads an installed plugin's source, for one the loader handed over without it, if its signature still holds.

verify(manifest: string, bundle: string): NativeAddonVerification

Checks a manifest's signature against its bundle.