Skip to content

Instantly share code, notes, and snippets.

View niftynei's full-sized avatar
🧡
on sabbatical

neil saitug niftynei

🧡
on sabbatical
View GitHub Profile

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
@niftynei
niftynei / mit_talk_draft.txt
Last active April 24, 2023 09:38
draft of nifty's talk
WELCOME to Nifty's Presentation on LAYER-2s
@niftynei
niftynei / Contract Killer 3.md
Last active March 15, 2023 04:48 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: 12th October 2016
  • Original post

@niftynei
niftynei / configuration.nix
Last active March 1, 2023 16:26
nifty's nixos configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@niftynei
niftynei / 24-may-2021-lightning-dev.txt
Created May 24, 2021 22:47
24 May 2021 #lightning-dev
<niftynei> hello hello
<niftynei> for all the early birds who want to get a look at today's agenda https://github.com/lightningnetwork/lightning-rfc/issues/874
* rusty (~rusty@pdpc/supporter/bronze/rusty) has joined
<BlueMatt> here today or libera?
<BlueMatt> seems like everything's moving
* ariard__ (~ariard@167.99.46.220) has joined
* ariard__ (~ariard@167.99.46.220) has left
<niftynei> probably best to use a deprecation plan?
* orccoin has quit (Remote host closed the connection)
<niftynei> e.g. email to list announcing move
@niftynei
niftynei / node_details.json
Created September 24, 2019 22:10
c-lightning Prometheus/Grafana Node Dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@niftynei
niftynei / quicklook.json
Created September 24, 2019 22:09
"Quicklook" c-lightning Prometheus Dashboard (Grafana)
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@niftynei
niftynei / elements.conf
Created January 11, 2020 19:45
simple as fuck liquid (elements) conf file
# Put this in your elements default directory, i.e. ~/.elements/elements.conf
chain=liquidv1
daemon=1
mainchainrpcpassword=<bitcoin-rpcpass>
mainchainrpcuser=<bitcoin-rpcuser>
mainchainrpcport=<bitcoin-rpcport>
mainchainrpchost=<bitcoin-rpchost> # mine's localhost because they're on the same machine
@niftynei
niftynei / abw.md
Last active December 23, 2019 04:22
ABW

Bernard was awake. He glanced at the time -- 4:33. His flight wasn't for another few hours. Awake twenty-seven minutes before his first alarm, regardless. He didn't need much time to get ready; his villa in the Bahamas was a twenty minute ride to the airport. He did want to be first on the plane, though. It was a busy time of year for trips to the Southern hemisphere; this he knew.

This everyone knew. The spring equinox had passed just three days ago, in another week the island would be largely deserted. Again. The sun is hot. The sand gets warm. The water won't cool you off.

The alarm went off. Bernard sat up and reached for his earbuds, silencing the alarm with his decisive movements. The lights dimmed, then shifted to a warm glow, matching the tone the sunlight would make, when it first stikes the house.

@niftynei
niftynei / misconfigs.txt
Created December 21, 2019 07:14
testnet misconfigures
dcpn-testnet 02d6dc68c3405f9961199d9379a4c27ed9ee556ff93df7bec08aa1fe819c375618 {'type': 'ipv4', 'address': '127.0.0.1', 'port': 9735}
lightspeed1 [LND] 0306449d3e8aacf564ca0f30046e5d750dc03999c531cd82f3e89545e14a8e4f6a {'type': 'ipv6', 'address': '::', 'port': 9735}
Daisy One [LND] 0240317b267b124d8bebd5bd826c68aaa5725971ad511a1877795a9597b3aa05d6 {'type': 'ipv6', 'address': '::', 'port': 9735}
crazyLN 0282cb55f9cb2ca1374a0897ec8e6b829eb41542405504d1d3dfcb312b0922ca0d {'type': 'ipv4', 'address': '0.0.0.0', 'port': 9735}
0372b920547ef5a7812b 0372b920547ef5a7812bdf33bc18fba1b3a0d4d839754249e7c36caeb541a562e8 {'type': 'ipv4', 'address': '0.0.0.0', 'port': 9735}
YOUR_NAME [LND] 032f2886456b6f818403084a1bf4867c9daaa37a6a4d4988ec4b2a90ea3714973d {'type': 'ipv6', 'address': '::', 'port': 9735}
02fa195c617457c9b182 02fa195c617457c9b182c37ef5a1ed4c2bf7501c3e72ffa9faf4425f4e