From 619eb74aa16d52609a64176879cb7e5d1d55ef6c Mon Sep 17 00:00:00 2001 From: Shjorty <201505261@post.au.dk> Date: Thu, 23 Mar 2023 10:36:51 +0100 Subject: [PATCH] Fix incorrect comment on signMessage --- packages/common/src/signHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/signHelpers.ts b/packages/common/src/signHelpers.ts index 6d49e80d4..5c5324358 100644 --- a/packages/common/src/signHelpers.ts +++ b/packages/common/src/signHelpers.ts @@ -69,7 +69,7 @@ function getMessageDigest( /** * Helper function to sign a message. - * Note that this function prepends 8 zero-bytes to ensure that the message is not a transaction. + * Note that this function prepends the account address (32 bytes) and 8 zero-bytes to ensure that the message is not a transaction. * Note that the current prepend is temporary and will later be replaced. * @param message the message to sign, assumed to be utf8 encoded string or a Uint8Array/buffer. * @param signer An object that handles the keys of the account, and performs the actual signing.