from py_snark import prove, verify
from Crypto.PublicKey import RSA
from Crypto.Hash import SHA256
# Step 1: User generates zk-SNARK proof for burning Bitcoin
burn_address = '1BitcoinEaterAddressDontSendf59kuE'
user_private_key = RSA.generate(2048)
user_public_key = user_private_key.publickey().exportKey().decode()
burn_amount = 1.0
# Create a hash of the transaction
tx_hash = SHA256.new(f'{user_public_key}{burn_address}{burn_amount}'.encode()).hexdigest()
# Generate zk-SNARK proof
proof = prove(tx_hash)
print("Generated zk-SNARK Proof:", proof)
# Step 2: Miners verify zk-SNARK proof and issue new Bitcoin
def verify_burn_proof(proof, expected_tx_hash):
return verify(proof, expected_tx_hash)
# Miner's verification process
expected_tx_hash = SHA256.new(f'{user_public_key}{burn_address}{burn_amount}'.encode()).hexdigest()
is_valid_proof = verify_burn_proof(proof, expected_tx_hash)
if is_valid_proof:
# Create a new transaction issuing new Bitcoin
new_user_address = '1NewUserAddressXYZ123' # New address provided by user
new_tx = {
'to': new_user_address,
'amount': burn_amount
}
print("New Transaction Issued:", new_tx)
else:
print("Invalid zk-SNARK Proof")
our these the new elites that we’ll be reporting too?
privacy and auditing on L1
Using zk-SNARKs, miners can issue new bitcoins to addresses controlled by users who burnt their coins while ensuring privacy and auditability. This method leverages advanced cryptographic techniques to achieve the desired outcome without compromising the integrity or transparency of the Bitcoin network. However, the implementation would require substantial changes to the protocol and broad community support.
1. **Burning Transaction**:
- Alice wants to burn 1 BTC. She sends 1 BTC to a known burner address and generates a zk-SNARK proof, which she submits along with the transaction.
- This proof shows that she owned 1 BTC, sent it to the burner address, and provides a new address (e.g., `NewAliceAddress`) controlled by her.
2. **Proof Submission**:
- Alice submits the transaction and proof to the Bitcoin network. Miners collect this proof and transaction data.
3. **Verification**:
- Miners use zk-SNARK verification algorithms to check the proof. This ensures that the conditions (ownership, burning, and new address) are met without revealing any unnecessary information.
4. **New Coin Creation**:
- Upon successful verification, miners include a special transaction in a new block that creates 1 BTC and sends it to `NewAliceAddress`.
- The issuance of new coins is now recorded on the blockchain, maintaining transparency and auditability.
### Privacy and Security Considerations
- **Privacy**: The use of zk-SNARKs ensures that the details of the original burnt bitcoins and the new addresses are not linked publicly, preserving user privacy.
- **Security**: zk-SNARKs provide strong cryptographic guarantees that the proofs are valid without revealing sensitive information.
- **Auditability**: The blockchain records the issuance of new bitcoins transparently, allowing anyone to verify the total supply of bitcoins and ensure no double issuance.
### Challenges and Implementation
- **Complexity**: Implementing zk-SNARKs into Bitcoin's protocol is non-trivial and requires significant changes and testing.
- **Consensus**: Achieving consensus for such a change would be challenging and require broad agreement within the Bitcoin community.
- **Performance**: zk-SNARKs involve computational overhead, which might impact the performance and scalability of the Bitcoin network.
Congratulations on winning this incredible long legal battle. 🍻
they had a “Building a vaccine register on the Ethereum blockchain” talk in 2023, so I think they’d be open to the idea of nostr/bitcoin
i mean, Al Gore did invent the internet, so there’s that
nostr:npub1sg6plzptd64u62a878hep2kev88swjh3tw00gjsfl8f237lmu63q0uf63m nostr:npub1n5r9lpxqewnmpmux7hfdz40xecq30z52x0sef7vend6f0vdjyqds020ngn have either of you ever read “The Revolt of the Public and the Crisis of Authority in the New Millennium” by Martin Gurri?
Bitcoiners getting excited about politicians is cypherpunk af
once people put their trust in trustless systems, the protocols become the new authority for truth
wear a shirt with nostr:npub1n5r9lpxqewnmpmux7hfdz40xecq30z52x0sef7vend6f0vdjyqds020ngn's nostr tweet 
then image speaking at one of their conventions, Peter Thiel is flexible af
just don’t mention the assassination marketplace
(USSS, this is a joke)
Anyone ever see this before when using X in Safari? 
Everybody in the replies is talking about the Secret Service. nostr:npub1n5r9lpxqewnmpmux7hfdz40xecq30z52x0sef7vend6f0vdjyqds020ngn is referring to the VP. 🤣
💯🤣
nostr:npub10wv37amdqnv8edw5yktgsxr62g8k4lqkk2u66fk6c6uwuakzssxsf4v22x
If the guy from JP Morgan still needs to see the math…
“Thus, the 2% annual fee would erode approximately 61.1% of your gains over 50 years.”
source: https://x.com/CarlBMenger/status/1812796969384910907

nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s time is a flat circle 



