Skip to content

Instantly share code, notes, and snippets.

@kdmukai
kdmukai / test_secp256k1_embedded.py
Created November 8, 2024 20:01
Testing `embit` secp256k1 python bindings, custom binary execution times
import time
from embit.util import secp256k1
import hashlib
from binascii import hexlify
def secp256k1_example():
"""Usage example for secp256k1 usermodule"""
# randomize context from time to time
# - it helps against sidechannel attacks
@kdmukai
kdmukai / qr_density_calcs.py
Last active November 4, 2024 16:31
Utility to brute force calculate target QR code densities for given QR formats and output display resolutions
"""
Utility to brute force calculate target QR code densities for given QR formats and output
display resolutions.
"""
"""
density | qr size | char capacity | px per module
10 | 33x33 | 114 | 7.15 # L
26 | 33x33 | 154 | 7.15
@kdmukai
kdmukai / README.md
Last active November 5, 2024 17:02
SeedSigner "firmware" isn't what you think it is

SeedSigner "firmware" isn't what you think it is

On Rabbit Hole Recap #320, ODELL said:

"If you are using a SeedSigner in single sig you have to make sure that that device never leaves your sight. If someone gets access to it, they can put malicious firmware on it. [...] And this idea that you're going to share it among communities in single sig is batshit crazy. That is not a good trust model."

This was a few weeks back. Things have gotten spicier since.

My goal here is to LOWER the temperature.

@kdmukai
kdmukai / README.md
Last active August 17, 2024 12:40
SeedSigner v0.8.0 Release Notes

SeedSigner v0.8.0 Release Notes


Quick Highlights:

Addtional legacy signing support:

  • P2PKH (bip44): Legacy format dating back to 2014.
  • P2SH multisig (bip45): Legacy multisig (also 2014).
@kdmukai
kdmukai / README.md
Last active October 15, 2024 19:21
Run Proxmox Backup Server (PBS) on a Proxmox VE host

Run Proxmox Backup Server (PBS) on a Proxmox VE host

Rather than set up even more infrastructure, I run Proxmox Backup Server on the same machine that's running a Proxmox VE host.

Install Proxmox Backup Server

Open a shell on your Proxmox VE host. We'll be installing PBS alongside Proxmox VE at the OS level. We will NOT run PBS inside a container.

@kdmukai
kdmukai / README.md
Last active June 16, 2024 01:56
Create basic Proxmox Debian 12 CT

Create new CT

General

  • CT ID: I keep these sequential and mappable to their LAN ip (e.g.: CT ID 201 -> 19.2.168.1.201)
  • Hostname: what Proxmox will call it (e.g. "bitcoind")
  • Password: VM's root password

Template

Use the standard Debian 12 template. If you haven't already downloaded it:

@kdmukai
kdmukai / README.md
Last active September 13, 2024 06:16
Create a Bitcoin Core node in Proxmox

Create a Bitcoin Core Node CT in Proxmox

Create the CT:

  • Debian 12 image
  • 4GB system disk in local-lvm
  • 6GB RAM, 0 swap

Add a data disk mount point

In the CT's "Resources" > "Add" > "Mount point":

  • Storage: "Directory" disk from above
@kdmukai
kdmukai / bip352_bip39_tests.json
Created May 16, 2024 00:47
SeedSigner BIP-352 Silent Payments test vectors
[
{
"mnemonic": "initial tilt corn easily leave weather strategy return topple gesture sad day",
"coin_type": 1, // testnet
"payment_addr": "tsp1qqfvn9pmvmz0ewpnp7w302lxqmnue2kgtpne2p38nuunun883sw36yq48ny7n2jl0nx9ljhmdnrgvpee6aufmg9wfvqfcr6c02at6r4u4xsegph7a",
"scanning_pubkey": "tpubDGKfZBg8TCWpqcESqPXfCpNxVwHcsDEH1cfGFrQR4ZTGJwtTDveKWvkyZjbMg95W68bbPeDwHj3YY6xZaRvpDMt7noL6GjvstTKwqQqjzfe",
"signing_privkey": "tprv8k426VmqsFqWYycmJQxDqzFN9iaz15uB5k1vtWtgTCb5oWzWEGJFE1VnKjZFzomKiszEFBgrMLRixhqy5iBVY4gCn2UbU7TimV22mMWqMT2",
},
{
"mnemonic": "tongue vanish post gentle fever figure kangaroo select infant blur phrase relief",
@kdmukai
kdmukai / README.md
Last active June 28, 2024 19:43
Keith's Proxmox Notes
@kdmukai
kdmukai / README.md
Last active February 12, 2024 00:18
How to generate vanity seed fingerprints, bitcoin addresses, and txids

How to generate vanity seed fingerprints, bitcoin addresses, and txids

Note: This is all just for educational / fun purposes. Do not use this code to generate a real seed that you intend to store real value on!!

Setup

Create a python3 virtualenv and install the one dependency:

pip install embit