From 046796d7e4056a46436278279ce46fbb159b7b0d Mon Sep 17 00:00:00 2001 From: Stefanos Pleros <36567567+StefPler@users.noreply.github.com> Date: Fri, 3 Jan 2025 19:23:28 +0200 Subject: [PATCH] Update zklogin-integration.mdx to point to actual address definition --- .../guides/developer/cryptography/zklogin-integration.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/guides/developer/cryptography/zklogin-integration.mdx b/docs/content/guides/developer/cryptography/zklogin-integration.mdx index 4199d025d428e..5a4ebc7b5d06e 100644 --- a/docs/content/guides/developer/cryptography/zklogin-integration.mdx +++ b/docs/content/guides/developer/cryptography/zklogin-integration.mdx @@ -92,7 +92,7 @@ export interface JwtPayload { ## User salt management -zkLogin uses the user salt to compute the zkLogin Sui address (see [definition](#address-definition)). The salt must be a 16-byte value or a integer smaller than `2n**128n`. There are several options for the application to maintain the user salt: +zkLogin uses the user salt to compute the zkLogin Sui address (see [definition](../../../concepts/cryptography/zklogin.mdx#address-definition)). The salt must be a 16-byte value or a integer smaller than `2n**128n`. There are several options for the application to maintain the user salt: 1. Client side: - Option 1: Request user input for the salt during wallet access, transferring the responsibility to the user, who must then remember it. @@ -111,7 +111,7 @@ Response: {"salt":"129390038577185583942388216820280642146"} User salt is used to disconnect the OAuth identifier (sub) from the on-chain Sui address to avoid linking Web2 credentials with Web3 credentials. While losing or misusing the salt could enable this link, it wouldn't compromise fund control or zkLogin asset authority. See more discussion [here](#security-and-privacy). -## Get the user's Sui address {#address-definition} +## Get the user's Sui address Once the OAuth flow completes, the JWT can be found in the redirect URL. Along with the user salt, the zkLogin address can be derived as follows: