Skip to content

Instantly share code, notes, and snippets.

View bnonni's full-sized avatar

bnonni

View GitHub Profile
@bnonni
bnonni / did-devs-1.md
Last active July 15, 2024 22:26
DIDdevs: Decentralized Web Meetup #1

Atlanta Bitdevs Reading Group

Topic: Learnings from a Chaincode Seminar

What is Atlanta BitDevs / Atlanta BitDevs Reading Group?

Atlanta BitDevs is a place for free and open Bitcoin education in Atlanta. Discussions will be technical but are open to people of all skill levels. 📙 Atlanta BitDevs' reading groups are small sessions where we focus on a specific topic within Bitcoin development and help each other understand it through discussion.

Bitcoin Socratic Seminar #18

https://atlantabitdevs.org/2023/05/30/bitcoin-socratic-seminar-18/ https://www.meetup.com/atlantabitdevs/events/293790513/

Topics

Bitcoin Core v25.0 Release

  1. P2P and network changes
    • Txns with min size of 65 bytes of non-witness data are now allowed by mempool and relay policy
    • Continues to mitigate CVE-2017-12842 64 byte vulnerability while opening up additional smaller transaction size use-cases
  • CVE-2017-18350 is a buffer overflow vulnerability which allows a malicious SOCKS proxy server to overwrite the program stack on systems with a signed char type (including common 32-bit and 64-bit x86 PCs).

Bitcoin Socratic Seminar #16

OP_VAULT

  • OP_VAULT makes use of a highly secure key as an unlikely recovery path in the event of an unplanned unvaulting attempt by a bad actor

Example

  • Alice spends UTXOs into vault
  • Alice is running software to monitor the blockchain for spends of the vault outpoints
  • An unvaulting attempt is triggered: either by Alice or by Bob

Chaincode Labs Seminar Application Exercises

Bitcoin Protocol Development

Tasks:

  • Compile Bitcoin Core
  • Run the unit and functional tests
  • In example_test.py, get node 1 to mine another block, send it to node 2, and check that node 2 received it.

Explanation:

  • Following the logic of run_test, I created a new function called run_extra_test to complete this task.
@bnonni
bnonni / atlanta-bitdevs-reading-group-web5-deep-dive.md
Last active November 9, 2022 00:27
Bitcoin Reading Group: Web5 Deep Dive

Bitcoin Reading Group: Web5 Deep Dive

November 08, 2022

Web5: The Decentralized Web Platform [link]

1. Why Web5?

[ ... ]

DIY: Hybrid Lightning Node - Mainnet & Testnet

The goal of this gist is to provide the pleb community with an easy to follow guide for how to setup a lightning node that runs on both Mainnet and Testnet at the same time. This guide will also walk you through setting up your node in "hybrid mode" (i.e. clearnet + tor) and installing Tunnel SATS for your static clearnet IP.

Acknowledgments: Parts of this guide were taken from the Run-LND repo by Alex Bosworth.

Example commands are given from the perspective of running Ubuntu on a Raspberry Pi.

Table of Contents

@bnonni
bnonni / atlanta-bitdevs-reading-group-ldk-onion-messages.md
Last active October 25, 2022 18:30
Bitcoin Reading Group: Onion Messages Demystified

Bitcoin Reading Group: Onion Messages Demystified

October 25, 2022

Topic: LDK Onion Messages & bolt12 [link]

  • LDK merges support for onion messages
  • Onion messages are a precursor to bolt12 offers
  • Step towards deprecating support for bolt11 in favor of offers
  • What are Onion Messages?
    • Simple messages sent btwn peers via onion routing (TOR)
  • Can be sent via blinded routes