mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
refactor: update ComposeCanvas and Editor data handling types
This commit is contained in:
@@ -213,7 +213,7 @@ export class CryptoUtils {
|
||||
}
|
||||
|
||||
public async encryptMetadata(
|
||||
metadata: Record<string, unknown>,
|
||||
metadata: Record<string, any>,
|
||||
masterKey: CryptoKey,
|
||||
): Promise<EncryptedLetter> {
|
||||
const { encryptedContent, encrypted_dek, sharingKey } =
|
||||
@@ -227,7 +227,7 @@ export class CryptoUtils {
|
||||
public async decryptMetadata(
|
||||
encrypted_metadata: EncryptedLetter,
|
||||
masterKey: CryptoKey,
|
||||
): Promise<Record<string, unknown>> {
|
||||
): Promise<Record<string, any>> {
|
||||
const bytes = await this.openEnvelope(
|
||||
encrypted_metadata.encrypted_content,
|
||||
encrypted_metadata.encrypted_dek,
|
||||
@@ -239,7 +239,7 @@ export class CryptoUtils {
|
||||
public async decryptMetadataWithSharingKey(
|
||||
encrypted_content: string,
|
||||
sharingKey: string,
|
||||
): Promise<Record<string, unknown>> {
|
||||
): Promise<Record<string, any>> {
|
||||
const bytes = await this.openEnvelopeWithSharingKey(
|
||||
encrypted_content,
|
||||
sharingKey,
|
||||
|
||||
Reference in New Issue
Block a user