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.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MalformedEnvelopeError(
message?):MalformedEnvelopeError
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1080
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
message? |
string |
Returns
Section titled “Returns”MalformedEnvelopeError
Inherited from
Section titled “Inherited from”Constructor
Section titled “Constructor”new MalformedEnvelopeError(
message?,options?):MalformedEnvelopeError
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1080
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
message? |
string |
options? |
ErrorOptions |
Returns
Section titled “Returns”MalformedEnvelopeError
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”name:
string='MalformedEnvelopeError'
Defined in: packages/filecoin-encryption-envelope/src/errors.ts:108