diff --git a/packages/utils/crypto/src/encryption.ts b/packages/utils/crypto/src/encryption.ts index 8cce9d61e..272290b90 100644 --- a/packages/utils/crypto/src/encryption.ts +++ b/packages/utils/crypto/src/encryption.ts @@ -313,8 +313,8 @@ export class EncryptedThing extends MaybeEncrypted { @field({ type: Uint8Array }) _nonce: Uint8Array; - @field({ type: PublicKeyEnvelope }) - _envelope: PublicKeyEnvelope; + @field({type: AbstractEnvelope}) + _envelope: PublicKeyEnvelope | HashedKeyEnvelope constructor(props?: { encrypted: Uint8Array;