Skip to content

Instantly share code, notes, and snippets.

View odudex's full-sized avatar

Odudex odudex

View GitHub Profile
END_OPERATORS = [
"pk_k",
"pk_h",
"older",
"after",
"sha256",
"hash256",
"ripemd160",
"hash160",
"multi",
class Node:
"""
A simple tree node that only stores:
- text: The 'prefix' of the expression before an open parenthesis,
or the entire expression if no parentheses exist.
- children: Any sub-expressions contained within parentheses (split by commas at top level).
- level: An integer used to control indentation depth.
"""
def __init__(self, text, children=None, level=0):
@odudex
odudex / TR_Simple_Inheritance_Krux_Liana.md
Last active March 11, 2025 14:28
A Taproot Simple Inheritance example with Krux and Liana

Liana Simple Inheritance Taproot Miniscript Wallet with Krux

Overview

This guide details how to set up a Taproot miniscript wallet using:

  • Krux: For key creation, backup, and transaction signing.
  • Liana Wallet: For creating a “Simple Inheritance” wallet that uses the keys generated on Krux.

The process involves key management, backups, and data exchange via an SD card.

@odudex
odudex / encryptshu_with_krux_android_app.md
Last active July 4, 2025 16:12
Encrypt and decrypt a Cashu token using Krux Android App

🔐 Cashu Token Encryption & Decryption with Krux Android App

This guide explains how to encrypt and decrypt a Cashu token using Krux Android App and clipboard.


🔒 Encrypting a Cashu Token with Krux Android App

  1. Start at Cashu.me
    Copy a Cashu token (a UTF-8 string).
@odudex
odudex / xor_splitting.md
Last active October 7, 2025 18:00
Mnemonic Splitting Using XOR

Mnemonic Splitting Using XOR

Overview

You can split a mnemonic into two separate mnemonics (or "shares") using the XOR operation. Neither share reveals any information about the original secret on its own. The original mnemonic can only be recovered when both shares are combined.

Core Principle

If A XOR B = C, then B XOR C = A.