Skip to content

Commit

Permalink
use discoverUserEncryptionPublicKey instead of discoverEncryptionPubl…
Browse files Browse the repository at this point in the history
…icKey
  • Loading branch information
Mohammed-Mamoun98 committed Dec 11, 2024
1 parent 9f8be5d commit 157d752
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/issuer-sdk-demo/src/components/create-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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...");

Expand All @@ -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,
Expand Down

0 comments on commit 157d752

Please sign in to comment.