Skip to content

Instantly share code, notes, and snippets.

View zt-9's full-sized avatar
🌟
cooking magic

ZT zt-9

🌟
cooking magic
View GitHub Profile
@zt-9
zt-9 / Are Crypto Wallets Ready for the Quantum Threat?.md
Created December 10, 2024 19:46
Are Crypto Wallets Ready for the Quantum Threat?

Are Crypto Wallets Ready for the Quantum Threat?

original twitter post

Google just released the first "below-threshold" quantum chip, Willow (with 105 qubits for now). It is the first chip capable of real-time error correction, effectively reducing errors while enabling scalable quantum computing. It’s a strong sign that useful, very large quantum computers can indeed be built.

So what does this mean to modern cryptographic systems and cryptocurrency wallets? How much time do we have before they’re no longer safe?

  1. Elliptic Curve Cryptography (ECC)

How to Add a Precompile to Geth

In this tutorial, we will walk through how to create your own precompile and add it to Geth.

What Is a Precompile in Geth?

In Geth, precompiles are a set of stateless contracts. But unlike Solidity code, their logic isn't in the smart contract code itself—they are part of the Geth client. You can think of a precompile as an interface that can execute Go code that resides within the Geth client.

How Precompiles Are Implemented in Geth

The logic for precompiles in Geth is located in the core/vm/contracts.go file.

@zt-9
zt-9 / 1_Deploy contract with different solidity version in Foundry test.md
Last active January 14, 2025 07:20
Deploy contracts with different solidity versions in Foundry test

Deploy contract with different solidity version in Foundry test

Here is an example of how to use contracts with different Solidity versions in a Foundry test.