Skip to content

Instantly share code, notes, and snippets.

View delta1's full-sized avatar
🔪
hacking

Byron Hambly delta1

🔪
hacking
View GitHub Profile
@delta1
delta1 / jamtis.md
Created January 11, 2022 07:23 — forked from tevador/jamtis.md

JAMTIS

This document describes a new addressing scheme for Monero.

Chapters 1-2 are intended for general audience.

Chapters 3-7 contain technical specifications.

Table of Contents

@delta1
delta1 / cloud-init.yaml
Created August 24, 2022 19:18 — forked from syntaqx/cloud-init.yaml
cloud init to install docker on ubuntu
#cloud-config
package_update: true
package_upgrade: true
package_reboot_if_required: true
manage-resolv-conf: true
resolv_conf:
nameservers:
- '8.8.8.8'

Blind Diffie-Hellman Key Exchange (blind ecash)

The goal of this protocol is for Bob to get Alice to perform a Diffie-Hellman key exchange blindly, such that when the unblinded value is returned, Alice recognizes it as her own, but can’t distinguish it from others (i.e. similar to a blind signature).

Alice:
A = a*G
return A

Bob:
Y = hash_to_curve(secret_message)
r = random blinding factor
@delta1
delta1 / blocksigner.md
Last active October 24, 2022 10:29
Elements Blocksigner network split resolution steps

Liquid Dev telegram: https://t.me/liquid_devel/1823

Oscar Pacey, [10/24/22 10:36 AM] Update on my test network failure and fix (c/f @pgreco )

All working again! After breaking my network by accidentally setting half the blocksigners to disable their wallets, I wasn't able to get back in sync. The blocksigners each got onto their own single block height forks and froze. They were unable to communicate their blocks to one another because the border nodes had gone into IBD mode and refused to respond to INV messages.

{ stdenv, fetchurl, pkgconfig, autoreconfHook, db48, boost, zeromq
, zlib, miniupnpc, qtbase ? null, qttools ? null, utillinux, protobuf, python3, qrencode, libevent
, lib
, withBench ? false
, withWallet ? true
, doCheck ? true
, doFunctionalTests ? true
}:
with lib;
{ nixpkgs ? import <nixpkgs> {}, doCheck ? false, doFunctionalTests ? false, withBench ? false, withWallet ? true }:
nixpkgs.callPackage ./elements.nix {
inherit doCheck doFunctionalTests withBench withWallet;
boost = nixpkgs.boost175;
}
@delta1
delta1 / mergenotes.md
Created April 4, 2023 08:14
elements merging notes

merge notes for elements 24

please comment with

  • bitcoin PR / merged-master commit hash
  • notes about conflicts/resolution or things to keep track of
@delta1
delta1 / tweak.py
Last active May 26, 2023 11:47
tweaked pubkey for internal key from bitcoin/bitcoin#23371 has different negflag for TaggedHash("TapTweak/elements")
#!/usr/bin/env python3
from test_framework.key import TaggedHash, tweak_add_pubkey
from test_framework.script import OP_1, OP_TRUE, CScript, TaprootInfo, TaprootLeafInfo, taproot_tree_helper
pubkeys = [(1).to_bytes(32, 'big'), (2).to_bytes(32, 'big')]
pubkey = (1).to_bytes(32, 'big')
scripts = [(None, CScript([OP_TRUE]))]
@delta1
delta1 / mergecommits
Last active June 13, 2023 16:58
list of PRs to merge
1663603812 2022-09-19T18:10:12+02:00 6e11e20340 Bitcoin Merge bitcoin/bitcoin#26121: build: Bump version to 24.99
1663600247 2022-09-19T16:10:47+01:00 9f650062fc Bitcoin Merge bitcoin/bitcoin#26005: Wallet: Fix error handling (copy_file failure in RestoreWallet, and in general via interfaces)
1663599113 2022-09-19T15:51:53+01:00 55e1deb745 Bitcoin Merge bitcoin/bitcoin#25540: miniscript: avoid wasteful computation, prevent memory blowup when fuzzing
1663497231 2022-09-18T11:33:51+01:00 a9ffebddbe Bitcoin Merge bitcoin/bitcoin#26075: contrib: remove 32bit linux code from release scripts
1663336433 2022-09-16T14:53:53+01:00 a688ff9046 Bitcoin Merge bitcoin/bitcoin#26087: build: prune BOOST_CPPFLAGS from libbitcoin_zmq
1663333393 2022-09-16T15:03:13+02:00 9fefd00d8e Bitcoin Merge bitcoin/bitcoin#26107: [test] only run feature_rbf.py once
1663326734 2022-09-16T12:12:14+01:00 3d892d8695 Bitcoin Merge bitcoin/bitcoin#26086: build: remove BOOST_CPPFLAGS usage from bitcoin-tx
1663325808 2022-09-16T11:56:48+01:00 5a72
@delta1
delta1 / 24.0rc1 to 25.0rc1
Created June 5, 2023 14:30
24.0rc1 to 25.0rc1
1685958668 2023-06-05T10:51:08+01:00 f4a8269dfc Bitcoin Merge bitcoin/bitcoin#27801: wallet: Add tracing for sqlite statements
1685721619 2023-06-02T17:00:19+01:00 7f2019755d Bitcoin Merge bitcoin/bitcoin#27790: walletdb: Add PrefixCursor
1685719647 2023-06-02T16:27:27+01:00 e43fdfd9ad Bitcoin Merge bitcoin/bitcoin#27225: doc: document json rpc endpoints
1685719091 2023-06-02T16:18:11+01:00 436c185b05 Bitcoin Merge bitcoin/bitcoin#27256: refactor: rpc: Remove unnecessary uses of ParseNonRFCJSONValue() and rename it
1685712112 2023-06-02T14:21:52+01:00 b22408df16 Bitcoin Merge bitcoin/bitcoin#27603: test: added coverage to mining_basic.py
1685699975 2023-06-02T10:59:35+01:00 6a560aceb7 Bitcoin Merge bitcoin/bitcoin#27803: Fuzz: Mitigate timeout in CalculateTotalBumpFees
1685698925 2023-06-02T10:42:05+01:00 8a972813ba Bitcoin Merge bitcoin/bitcoin#27737: ci: compile Clang and compiler-rt in msan jobs
1685698081 2023-06-02T10:28:01+01:00 83c7269965 Bitcoin Merge bitcoin/bitcoin#27800: streams: Drop confusing Dat