Skip to content

@pumpkin-plugins/signing API / wasm / stripSignature

Function: stripSignature() ​

stripSignature(wasm): StrippedWasm

Defined in: wasm.ts:107

Cuts the signing custom sections off the end of a wasm binary. Signing sections that sit before other sections are kept, as Pumpkin does.

Parameters ​

wasm ​

Uint8Array

The binary, signed or not.

Returns ​

StrippedWasm

The clean binary and the signing sections that were removed.

Throws ​

When the bytes aren't a well-formed wasm binary.

Pumpkin Plugins documentation