Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Web3Personal.signPersonalMessage returns an unexpected signature #274

@dawiddr

Description

@dawiddr

Hi,

For the following call:

web3.personal.signPersonalMessage(message: Data.fromHex("0x6e756d61")!, from: Address("0x3d94aeba4928bd36a08d8886886ce90a24c73540"), password: "").hex.withHex

web3swift returns the following signature:

0xe8ab0b1a39b1ee91384e9d0901397a68b308f89017f7fb1949b3038eb421001b01974191b528714f5e1538df3dbbfd2366df98459b6d4ad5b7ed50c09f9d098f00

However, when I pass the same data to Geth (same private key), I'm getting one that has a different ending:

web3.personal.sign("0x6e756d61", "0x3d94aeba4928bd36a08d8886886ce90a24c73540", "")
0xe8ab0b1a39b1ee91384e9d0901397a68b308f89017f7fb1949b3038eb421001b01974191b528714f5e1538df3dbbfd2366df98459b6d4ad5b7ed50c09f9d098f1b

Do you have any idea where this discrepancy comes from?

The value that I'm getting from web3swift doesn't allow me to sign in to https://www.numaverse.com.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions