From c57e3788b585e504e1668d074ac44e31bf2f34e0 Mon Sep 17 00:00:00 2001 From: Luozhu <70309026+LuozhuZhang@users.noreply.github.com> Date: Fri, 10 Jun 2022 18:50:22 +0800 Subject: [PATCH] typo error: keccack256 -> keccak256 (#25054) --- docs/_rpc/ns-personal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_rpc/ns-personal.md b/docs/_rpc/ns-personal.md index a7a55eeb7b..8f6d9791ac 100644 --- a/docs/_rpc/ns-personal.md +++ b/docs/_rpc/ns-personal.md @@ -148,7 +148,7 @@ undefined ### personal_sign The sign method calculates an Ethereum specific signature with: -`sign(keccack256("\x19Ethereum Signed Message:\n" + len(message) + message)))`. +`sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message)))`. By adding a prefix to the message makes the calculated signature recognisable as an Ethereum specific signature. This prevents misuse where a malicious DApp can sign arbitrary data (e.g. transaction) and use the signature to impersonate the victim.