Skip to content

Instantly share code, notes, and snippets.

View bnonni's full-sized avatar

bnonni

View GitHub Profile
@bnonni
bnonni / 01_Java_Composition_Car.java
Last active April 8, 2019 19:31
Java Composition vs. Java Inheritance
public class Car {
//private variables
private String color;
private int maxSpeed;
public void carInfo() {
System.out.println("Car Color= " + color + " Max Speed= " + maxSpeed);
}
public void setColor(String color) {
@bnonni
bnonni / bitdevs-trivia.md
Created November 10, 2021 19:00 — forked from ShaunApps/bitdevs-trivia.md
TABconf BitDevs Socratic Village Trivia Questions

These are the trivia questions from the BitDevs Socractic Village at TABconf. Looking up answers was not allowed during trivia game

Easier Questions

  1. What number does a P2SH address start with?

  2. What signature scheme comes with Taproot?

  3. How many blocks are in each difficulty period?

@bnonni
bnonni / atlanta-bitdev-socratic-seminar-12.md
Last active November 7, 2022 16:52
Atlanta BitDev Socratic Seminar #12 Topics

Atlanta BitDev Socratic Seminar #12

October 12, 2022 - TAB Conf Edition

Topics

  1. LDK signals support for 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 do onion messages do?
@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

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-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?

[ ... ]

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.

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