Skip to content

Commit 9cad577

Browse files
authored
fix: use new EncryptedVetKey.deserialize instead of deprecated constructor in encrypted notes dapp (#184)
1 parent 37e08e6 commit 9cad577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • examples/encrypted_notes_dapp_vetkd/frontend/src/lib

examples/encrypted_notes_dapp_vetkd/frontend/src/lib/crypto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class CryptoService {
6161
const tsk = vetkd.TransportSecretKey.random();
6262

6363
const ek_bytes_hex = await this.actor.encrypted_symmetric_key_for_note(note_id, tsk.publicKeyBytes());
64-
const encryptedVetKey = new vetkd.EncryptedVetKey(hex_decode(ek_bytes_hex));
64+
const encryptedVetKey = vetkd.EncryptedVetKey.deserialize(hex_decode(ek_bytes_hex));
6565

6666
const pk_bytes_hex = await this.actor.symmetric_key_verification_key_for_note();
6767
const dpk = vetkd.DerivedPublicKey.deserialize(hex_decode(pk_bytes_hex));

0 commit comments

Comments
 (0)