We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d14443 commit 33ae73bCopy full SHA for 33ae73b
modules/serialize/src/deserialize_factory.ts
@@ -77,7 +77,8 @@ export function deserializeFactory<Suite extends AlgorithmSuite> (
77
const version = dataView.getUint8(0)
78
const type = dataView.getUint8(1)
79
/* Precondition: version and type must be the required values. */
80
- needs(version === 1 && type === 128, 'Malformed Header')
+ needs(version === 1 && type === 128,
81
+ version === 65 && type === 89 ? 'Malformed Header: This blob may be base64 encoded.' : 'Malformed Header.' )
82
83
const suiteId = <AlgorithmSuiteIdentifier>dataView.getUint16(2, false) // big endian
84
/* Precondition: suiteId must match supported algorithm suite */
0 commit comments