From 157d752b363e67d47cbb3bd10be60310586857fb Mon Sep 17 00:00:00 2001 From: Mohammed-Mamoun98 Date: Wed, 11 Dec 2024 21:31:28 +0200 Subject: [PATCH] use discoverUserEncryptionPublicKey instead of discoverEncryptionPublicKey --- examples/issuer-sdk-demo/src/components/create-profile.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/issuer-sdk-demo/src/components/create-profile.tsx b/examples/issuer-sdk-demo/src/components/create-profile.tsx index a447e9ed9..1df86f2b3 100644 --- a/examples/issuer-sdk-demo/src/components/create-profile.tsx +++ b/examples/issuer-sdk-demo/src/components/create-profile.tsx @@ -19,8 +19,8 @@ export function CreateProfile({ onSuccess }: { onSuccess: () => void }) { if (!idOSSDK) throw new Error("No SDK found"); setLoadingMessage("Creating user password..."); const humanId = crypto.randomUUID(); - const { encryptionPublicKey } = - await idOSSDK.enclave.provider.discoverUserEncryptionKey(humanId); + const { userEncryptionPublicKey } = + await idOSSDK.enclave.discoverUserEncryptionPublicKey(humanId); setLoadingMessage("Signing message on your wallet..."); @@ -31,7 +31,7 @@ export function CreateProfile({ onSuccess }: { onSuccess: () => void }) { setLoadingMessage("Creating your profile..."); - await createProfile(encryptionPublicKey, humanId, { + await createProfile(userEncryptionPublicKey, humanId, { address: address as string, signature, message,