Skip to main content

Class: StackScopeMismatchError

Defined in: packages/client/src/plugins/pouchdb.ts:56

A write whose ~scope label disagrees with its sealed payloads' key ids (spec 02 §2.3 rule 2). Refused, never repaired: re-sealing content the writer could not open under the labeled scope's key is exactly the induced-downgrade attack a tampered label is fishing for. A legitimate relabel opens the original scope first, so its payloads arrive as plaintext.

Extends

  • Error

Constructors

Constructor

new StackScopeMismatchError(
docId,
scopeId,
kid): StackScopeMismatchError;

Defined in: packages/client/src/plugins/pouchdb.ts:61

Parameters

ParameterType
docIdstring
scopeIdstring
kidstring

Returns

StackScopeMismatchError

Overrides

Error.constructor

Properties

PropertyModifierTypeDefault valueOverridesDefined in
docIdreadonlystringundefined-packages/client/src/plugins/pouchdb.ts:58
namepublicstring"StackScopeMismatchError"Error.namepackages/client/src/plugins/pouchdb.ts:57
scopeIdreadonlystringundefined-packages/client/src/plugins/pouchdb.ts:59