Skip to content

Instantly share code, notes, and snippets.

View ckoys's full-sized avatar
💭
I may be slow to respond.

Christian Koys ckoys

💭
I may be slow to respond.
View GitHub Profile
@ckoys
ckoys / charge.config
Created February 14, 2022 16:08 — forked from ziggie1984/charge.config
Charge-Lnd config file
#Created by Ziggie, charge.config.example used as template
[default]
# 'default' is special, it is used if no other policy matches a channel
strategy = static
#zerobasefee for Pickhardt Payments
base_fee_msat = 0
fee_ppm = 50
[mydefaults]
@ckoys
ckoys / tweetnacl.c
Created February 20, 2014 00:32 — forked from jedisct1/tweetnacl.c
@TweetNacl: The NaCl library in 100 tweets
#include "tweetnacl.h"
#define FOR(i,n) for (i = 0;i < n;++i)
#define sv static void
typedef unsigned char u8;typedef unsigned int u32;typedef unsigned long long u64;typedef long long i64;typedef i64 gf[16];extern void
randombytes(u8*,u64);static const u8 _0[16],_9[32]={9};static const gf gf0,gf1={1},_121665={0xDB41,1},D={0x78a3,0x1359,0x4dca,0x75eb,0xd8ab,
0x4141,0x0a4d,0x0070,0xe898,0x7779,0x4079,0x8cc7,0xfe73,0x2b6f,0x6cee,0x5203},D2={0xf159,0x26b2,0x9b94,0xebd6,0xb156,0x8283,0x149a,0x00e0,
0xd130,0xeef3,0x80f2,0x198e,0xfce7,0x56df,0xd9dc,0x2406},X={0xd51a,0x8f25,0x2d60,0xc956,0xa7b2,0x9525,0xc760,0x692c,0xdc5c,0xfdd6,0xe231,
0xc0a4,0x53fe,0xcd6e,0x36d3,0x2169},Y={0x6658,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,
0x6666,0x6666},I={0xa0b0,0x4a0e,0x1b27,0xc4ee,0xe478,0xad2f,0x1806,0x2f43,0xd7a7,0x3dfb,0x0099,0x2b4d,0xdf0b,0x4fc1,0x2480,0x2b83};static
u32 L32(u32 x,int c){return(x<<c)|(x>>(32-c));}static u32 ld32(const u8*x){u32 u=x[3];u=(u<<8)|x[2];u=(u<<8)|x[