From 45772edfde0ec3c5e776074964b9fe817f6f23b0 Mon Sep 17 00:00:00 2001 From: rvanasa Date: Wed, 3 Apr 2024 15:46:11 -0600 Subject: [PATCH] Adjust ECDSA message --- canisters/backend/Core.mo | 2 +- src/services/addressService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/canisters/backend/Core.mo b/canisters/backend/Core.mo index 64d41ba..b8d6144 100644 --- a/canisters/backend/Core.mo +++ b/canisters/backend/Core.mo @@ -33,7 +33,7 @@ module { public func connectEthWallet(caller : Principal, wallet : Types.EthWallet, signedPrincipal : Types.SignedPrincipal) : async Types.Resp.ConnectEthWallet { let log = logger.Begin(caller, #connectEthWallet(wallet, signedPrincipal)); - let message = "Authorized ICP principal: " # Principal.toText(caller); + let message = "Associated ICP principal: " # Principal.toText(caller); let checkOutcome = await IcEth.verify_ecdsa(wallet, message, signedPrincipal); log.internal(#verifyEcdsaOutcome(checkOutcome)); if (checkOutcome) { diff --git a/src/services/addressService.ts b/src/services/addressService.ts index 223334a..d20c1cf 100644 --- a/src/services/addressService.ts +++ b/src/services/addressService.ts @@ -49,7 +49,7 @@ async function verifyAddress(address: string, ethereum: any): Promise { return false; } const principal = user.client.getIdentity().getPrincipal().toString(); - const message = `Authorized ICP principal: ${principal}`; + const message = `Associated ICP principal: ${principal}`; const signature = await ethereum.request({ method: 'personal_sign', params: [`0x${toHex(message)}`, address],