🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 4 Min Lesezeit
0

ERC 2335 - Encrypting Private Keys

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




ERC 2335 - Encrypting Private Keys



While taking the @cyfrin_Updraft course, I came across ERC 2335, I realized the dire implication of hardcoding private keys onto the project repo and then pushing to GitHub.



So many developers forget to remove their private keys and it was a menace and a big issue until the ERC 2335 was introduced.






So what is the ERC 2335?



ERC-2335 emerged as a crucial response to a persistent and dangerous problem in blockchain development: the accidental exposure of private keys in public repositories and production environments.



Before its standardization, developers frequently made the costly mistake of hardcoding private keys directly in their source code or configuration files, which would then be inadvertently pushed to GitHub or deployed to production servers.



These exposures often resulted in the immediate theft of funds and compromise of smart contracts, as malicious actors continuously scan public repositories for exposed keys.



The standard introduces a structured approach to private key encryption, specifically designed to make it harder for developers to accidentally commit sensitive key material.



It provides a robust encryption framework that separates the storage of encrypted keys from application code while maintaining interoperability across different platforms and tools.



By enforcing a clear distinction between encrypted key storage and application logic, ERC-2335 helps development teams implement secure key management practices from the start of their projects.



One of the most significant aspects of ERC-2335 is its emphasis on secure local storage and encryption of private keys, rather than relying on environment variables or configuration files that might accidentally be included in version control.



This approach directly addresses the common pitfall of developers using plaintext private keys during development and forgetting to remove them before pushing code to public repositories.






How does it work



To follow this next part, fork the )

  • Install Foundry curl -L https://foundry.paradigm.xyz | bash



  • If you encounter any issues during the installation please drop a comment or use AI to resolve them.



    Once you are done you should be able to see the following cast, anvil, forge and chisel





    Next copy the scofield contract we forked from GitHub into our src and delete whatever you see inside. Make sure to save with the .sol format.





    Spin up your terminal and type anvil to create a local EVM account which would give us access to accounts and private keys.





    Here we set our private key to hide_my_key and set a password so we we run




    CODE
    forge script script/Deployscofield.s.sol --rpc-url HTTP://127.0.0.1:8545 --broadcast --account hide_my_key --sender 0x15d34aaf54267db7d7c367839aaf71a00a2c6a65 




    Here we are prompted for the password we set for our private key





    Voila.



    We have learnt a valuable lesson and that is we don't have to use our private key in our development stage going forward.



    If you have any recommendations or you feel I forgot something please drop a comment below.



    You can read more about ERC 2335 here.

    Vollständiger Original-Bericht
    Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
    ↗ Original-Artikel auf dev.to lesen
    Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    3 Quellen
    GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
    1 Quelle
    Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
    1 Quelle
    Major AI platforms go down in unprecedented simultaneous outage
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten ERC 2335 - Encrypting Private Keys

    Thematisch verwandte Begriffe: 2335, Encrypting, Private, Keys · 6 Treffer

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...