Skip to content

Add "sign_message" command to CLI for arbitrary message signing #4285

@adrian-fjellberg

Description

@adrian-fjellberg

Summary or problem description
The current Neo CLI does not support signing arbitrary messages, only transactions.
This makes it impossible to produce verifiable message signatures directly from a local wallet, which limits interoperability with external tools, dApps, and authentication flows that rely on message signing.

Do you have any solution you want to propose?
Add a new sign_message command to the CLI that allows users to sign arbitrary UTF-8 messages using any account in their loaded wallet.
The command will:

  • Prompt for wallet password and verify it
  • Automatically include a random 16-byte salt before the message for entropy
  • Construct a deterministic payload
  • Sign the payload with each account’s private key
  • Output the address, public key, salt, and signature
  • Optionally allow specifying the elliptic curve (secp256r1 by default, secp256k1 supported)

Where in the software does this update applies to?

  • CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionInitial issue state - proposed but not yet accepted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions