Skip to content

Add a network identifier argument in sign method #1503

@Tommo-L

Description

@Tommo-L

Summary or problem description
We have noticed that two transactions on different networks are exactly the same, because
the transactions between Mainnet and Testnet do not identify the destination network. Thus,
there is the possibility of reusing the same transaction between the two networks.

Do you have any solution you want to propose?
A successful solution would be to include the network identifier in the transaction signature
and in all signed messages, in this way we will create signed payloads uniquely and
exclusively for each network. (See EIP-155 3 )

Pseudocode

Signature = Sign(PrivateKey, Concat(NetworkMagic, Message))

Neo Version

  • Neo 3

Where in the software does this update applies to?

  • Wallets

original posted by @Red4Sec

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionInitial issue state - proposed but not yet accepted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions