Skip to content

MalformedEnvelopeError

Defined in: packages/filecoin-encryption-envelope/src/errors.ts:107

The envelope, or a value destined for one, does not match this package’s wire profile. Raised on both paths: by encode when a caller’s input would produce bytes this package could not read back, and by decode on anything the profile forbids.

Always thrown before any AEAD tag is checked, so it says nothing about authenticity.

new MalformedEnvelopeError(message?): MalformedEnvelopeError

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1080

Parameter Type
message? string

MalformedEnvelopeError

EnvelopeError.constructor

new MalformedEnvelopeError(message?, options?): MalformedEnvelopeError

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1080

Parameter Type
message? string
options? ErrorOptions

MalformedEnvelopeError

EnvelopeError.constructor

name: string = 'MalformedEnvelopeError'

Defined in: packages/filecoin-encryption-envelope/src/errors.ts:108

EnvelopeError.name