Skip to content

Repository script API / prepare-market-plugin / prepareMarketPlugin

Function: prepareMarketPlugin() ​

prepareMarketPlugin(wasm, expected): Buffer<ArrayBufferLike>

Defined in: prepare-market-plugin.mjs:13

Verifies the release artifact and returns its unsigned WebAssembly component for Market to sign.

Parameters ​

wasm ​

Uint8Array<ArrayBufferLike>

The signed release artifact.

expected ​

The canonical plugin name, the release version and the public key of the repository signing key.

pluginName ​

string

publicKeyHex ​

string

version ​

string

Returns ​

Buffer<ArrayBufferLike>

The verified component without publisher signing sections.

pumpkin-plugins documentation