Skip to content

Instantly share code, notes, and snippets.

View yomanthunder's full-sized avatar
🎯
Focusing

Shrishvesh yomanthunder

🎯
Focusing
View GitHub Profile
@RazorBest
RazorBest / der_encoding.md
Created March 16, 2026 11:16
DER encoding

DER encoding

Why does DER enforce minimal encoding rules? How did non-strict DER encoding historically cause problems in Bitcoin?

Quick answer: DER does not allow multiple encodings for the same data

To understand DER, we need to know about BER. And to understand BER we first need to talk about ASN.1. Let's encrypt has written a good article about all of these, and this MD that you're reading will be based on that: https://letsencrypt.org/docs/a-warm-welcome-to-asn1-and-der/.

ASN.1

@sandipndev
sandipndev / bitcoin-shell.nix
Created November 26, 2025 18:15
Bitcoin Nix Shell
let
pkgs = import <nixpkgs> {};
in
pkgs.mkShell {
packages = with pkgs; [
# Required libraries
boost
libevent
capnproto
sqlite
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active March 16, 2026 08:44
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@chris-belcher
chris-belcher / financial-mathematics-of-joinmarket-fidelity-bonds.md
Last active December 24, 2025 04:18
Financial mathematics of joinmarket fidelity bonds
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active March 16, 2026 01:07
set -e, -u, -o, -x pipefail explanation