Skip to content

Commit

Permalink
Adjust ECDSA message
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa committed Apr 3, 2024
1 parent 72c0188 commit 45772ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion canisters/backend/Core.mo
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/services/addressService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function verifyAddress(address: string, ethereum: any): Promise<boolean> {
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],
Expand Down

0 comments on commit 45772ed

Please sign in to comment.