From 3d3607c6295074fdd1c16ddc9f774ad38665ae6b Mon Sep 17 00:00:00 2001 From: jin Date: Mon, 20 Nov 2023 15:52:45 +0300 Subject: [PATCH] $mol_crypto_secret: use new api --- crypto/secret/secret.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto/secret/secret.test.ts b/crypto/secret/secret.test.ts index 92f4a49fb54..5c8ae4c433d 100644 --- a/crypto/secret/secret.test.ts +++ b/crypto/secret/secret.test.ts @@ -47,11 +47,11 @@ namespace $ { async 'derivation from public & private keys'() { - const A = await $$.$mol_crypto_auditor_pair() - const B = await $$.$mol_crypto_auditor_pair() + const A = await $mol_crypto_key_private.generate() + const B = await $mol_crypto_key_private.generate() - const AK = await $mol_crypto_secret.derive( await A.private.serial(), await B.public.serial() ) - const BK = await $mol_crypto_secret.derive( await B.private.serial(), await A.public.serial() ) + const AK = await $mol_crypto_secret.derive( A.toString(), B.public().toString() ) + const BK = await $mol_crypto_secret.derive( B.toString(), A.public().toString() ) $mol_assert_like( new Uint8Array( await AK.serial() ),