We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37e08e6 commit 9cad577Copy full SHA for 9cad577
1 file changed
examples/encrypted_notes_dapp_vetkd/frontend/src/lib/crypto.ts
@@ -61,7 +61,7 @@ export class CryptoService {
61
const tsk = vetkd.TransportSecretKey.random();
62
63
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));
+ const encryptedVetKey = vetkd.EncryptedVetKey.deserialize(hex_decode(ek_bytes_hex));
65
66
const pk_bytes_hex = await this.actor.symmetric_key_verification_key_for_note();
67
const dpk = vetkd.DerivedPublicKey.deserialize(hex_decode(pk_bytes_hex));
0 commit comments