keys-accounts

Solid

Manage Ethereum keys, accounts, and keystores with Nethereum. Use when the user needs to generate keys, create accounts, encrypt/decrypt keystores, load wallets, or work with ViewOnlyAccount. Also triggers for private key, public address, or key management questions.

AI & Automation 2,250 stars 745 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
100
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Keys and Accounts with Nethereum NuGet: `Nethereum.Web3` ## Generate EC key ```csharp var ecKey = EthECKey.GenerateKey(); var privateKeyHex = ecKey.GetPrivateKey(); var publicKeyBytes = ecKey.GetPubKey(); var address = ecKey.GetPublicAddress(); // Reconstruct from private key var reconstructed = new EthECKey(privateKeyHex); // reconstructed.GetPublicAddress() == address ``` Source: `SignerDocExampleTests.ShouldGenerateKeyAndDerivePublicKeyAndAddress` ## Deterministic key from known private key ```csharp var ecKey = new EthECKey("0xb5b1870957d373ef0eeffecc6e4812c0fd08f554b37b233526acc331bf1544f7"); var address = ecKey.GetPublicAddress(); // "0x12890D2cce102216644c59daE5baed380d84830c" ``` Source: `SignerDocExampleTests.ShouldDeriveKnownAddressFromPrivateKey` ## Create Account with chain ID ```csharp var privateKey = "0xb5b1870957d373ef0eeffecc6e4812c0fd08f554b37b233526acc331bf1544f7"; var account = new Account(privateKey, Chain.MainNet); // account.Address == "0x12890D2cce102216644c59daE5baed380d84830c" // account.ChainId == 1 ``` Source: `AccountTypesDocExampleTests.ShouldCreateAccountWithChainId` ## ViewOnlyAccount for read-only access ```csharp var address = "0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe"; var viewOnly = new ViewOnlyAccount(address); // viewOnly.Address, viewOnly.TransactionManager available // Cannot sign transactions ``` Source: `AccountTypesDocExampleTests.ShouldCreateViewOnlyAccount` ## Encrypt to keystore (default Scrypt) ```csharp var ...

Details

Author
Nethereum
Repository
Nethereum/Nethereum
Created
10 years ago
Last Updated
2 weeks ago
Language
C#
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

azure-security-keyvault-keys-dotnet

Azure Key Vault Keys SDK for .NET. Client library for managing cryptographic keys in Azure Key Vault and Managed HSM. Use for key creation, rotation, encryption, decryption, signing, and verification.

39,350 Updated today
sickn33
DevOps & Infrastructure Solid

azure-security-keyvault-keys-dotnet

Azure Key Vault Keys SDK for .NET. Client library for managing cryptographic keys in Azure Key Vault and Managed HSM. Use for key creation, rotation, encryption, decryption, signing, and verification. Triggers: "Key Vault keys", "KeyClient", "CryptographyClient", "RSA key", "EC key", "encrypt decrypt .NET", "key rotation", "HSM".

2,429 Updated 2 days ago
microsoft
DevOps & Infrastructure Listed

azure-security-keyvault-keys-dotnet

Azure Key Vault Keys SDK for .NET. Client library for managing cryptographic keys in Azure Key Vault and Managed HSM. Use for key creation, rotation, encryption, decryption, signing, and verification. Triggers: "Key Vault keys", "KeyClient", "CryptographyClient", "RSA key", "EC key", "encrypt decrypt .NET", "key rotation", "HSM".

335 Updated today
aiskillstore
AI & Automation Featured

azure-keyvault-keys-rust

Azure Key Vault Keys SDK for Rust. Use for creating, managing, and using cryptographic keys. Triggers: "keyvault keys rust", "KeyClient rust", "create key rust", "encrypt rust", "sign rust".

39,350 Updated today
sickn33
AI & Automation Listed

account-abstraction

Comprehensive expertise in ERC-4337 account abstraction, smart contract wallets, paymasters, bundlers, and user operation handling. Covers social recovery, session keys, gas sponsorship, and wallet SDKs. Use when "account abstraction, ERC-4337, smart wallet, paymaster, bundler, user operation, gasless transaction, session keys, social recovery, smart account, " mentioned.

12 Updated 2 months ago
ibossyNr1