message-signing

Signs and verifies Ethereum messages using Netbeans libraries with EC2 key management.

2.3k|747|Updated Nov 23, 2015
One-click install
npx skills add https://github.com/Nethereum/Nethereum --skill message-signing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: message-signing
Source: https://github.com/Nethereum/Nethereum/tree/main/plugins/nethereum-skills/skills/message-signing
Command: npx skills add https://github.com/Nethereum/Nethereum --skill message-signing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Nethereum.Signer, Nethereum.Util, Nethereum.Hex.HexConvertors.Extensions.

What problem does it solve?

This Skill allows you to securely sign and verify messages using Ethereum private keys, enabling functionalities like login-with-Ethereum and ensuring message authenticity.

Core Features & Use Cases

  • Sign Messages: Create cryptographic signatures for UTF-8 strings or raw bytes using a private key.
  • Verify Signatures: Confirm the authenticity of a message and recover the signer's address, even from external wallets like MetaMask.
  • Recover Signer Address: Determine the public address that signed a given message and signature.
  • Use Case: Implement a decentralized login system where users sign a challenge message with their Ethereum wallet to authenticate without a password.

Quick Start

Use the message-signing skill to sign the message "Hello World" with the provided private key.

Frequently Asked Questions about message-signing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sign and verify Ethereum messages in C#?

You can sign and verify Ethereum messages in C# using this Skill to create cryptographic signatures for UTF-8 strings or raw bytes and recover the signer's public address. It utilizes Nethereum libraries to ensure message authenticity and EIP-2 compliant verification.

How does Ethereum message signing enable passwordless login?

Ethereum message signing enables passwordless login by having users cryptographically sign a challenge message with their wallet. The backend then verifies the signature and recovers the public address to authenticate the user without requiring a traditional password.

Can I verify a signature signed by MetaMask using Nethereum?

Yes, you can verify a signature signed by MetaMask using Nethereum. This Skill recovers the signer's address from external wallet signatures, allowing you to confirm the authenticity of messages signed by external Ethereum wallets.

Does this Skill support raw byte signing and the personal_sign prefix?

Yes, this Skill supports raw byte signing and UTF-8 message signing with the personal_sign prefix. It uses Nethereum libraries to apply the correct Ethereum-specific formatting for both string and byte array inputs.

What is needed to recover a signer's address from an Ethereum signature?

To recover a signer's address from an Ethereum signature, you need the original message and the signature itself. This Skill uses Nethereum's EC key management utilities to compute and return the public address that authored the signature.

Are there limitations when verifying Ethereum signatures with EIP-2 compliance?

Strict EIP-2 compliant signature verification imposes specific cryptographic constraints on the signature format. This Skill enforces these rules during verification, meaning signatures generated outside these EIP-2 specifications will fail the validation process.