Skip to content

Instantly share code, notes, and snippets.

View Dolu89's full-sized avatar
🎯
Focusing

Dolu Dolu89

🎯
Focusing
View GitHub Profile
@Dolu89
Dolu89 / index.cjs
Last active October 13, 2022 12:31
Test LUD-13
const { mnemonicToSeed } = require("@scure/bip39");
const ecc = require("tiny-secp256k1");
const { BIP32Factory } = require("bip32");
const bip32 = BIP32Factory(ecc);
const { HMAC, Hash } = require("fast-sha256");
const secp256k1 = require("secp256k1");
const lnurl = require("@zerologin/lnurl");
const { CipherSeed } = require("aezeed");
const axios = require("axios");
const ZBase32 = require("@darkwolf/zbase32");
git clone https://github.com/jamaljsr/polar.git
cd polar/docker/eclair
# remove lines 59 and 61 (GUI) of Dockerfile
docker build --build-arg ECLAIR_VERSION=0.6.2 -t polarlightning/eclair:0.6.2 .
@Dolu89
Dolu89 / nip-proof-of-account.md
Last active January 12, 2021 18:53
[Nostr] - New nip proof of account

NIP-XX

Proof of account protocol

draft mandatory

  1. Users can prove they own some accounts by publishing an event to the relays proof:<{pubkey}, {type}, {url}>
@Dolu89
Dolu89 / Dockerfile
Last active October 25, 2021 07:15
Nostr relay docker (WIP)
FROM golang:1.15.5
WORKDIR /go/src/app
COPY ./relay .
RUN go get -d -v ./...
RUN go install -v ./...
RUN go build -ldflags="-s -w" -tags full -o ./relay-full
{"lastUpload":"2020-06-01T12:33:07.569Z","extensionVersion":"v3.4.3"}
{
"posts": [
{
"userId": 1,
"id": 1,
"title": "erat tortor sollicitudin mi sit amet lobortis sapien sapien non mi integer ac neque",
"body": "Curabitur gravida nisi at nibh. In hac habitasse platea dictumst. Aliquam augue quam, sollicitudin vitae, consectetuer eget, rutrum at, lorem. Integer tincidunt ante vel ipsum. Praesent blandit lacinia erat. Vestibulum sed magna at nunc commodo placerat."
},
{
"userId": 5,

Keybase proof

I hereby claim:

  • I am dolu89 on github.
  • I am dolu (https://keybase.io/dolu) on keybase.
  • I have a public key ASCx17I67DoQ1OliTiAjzupqsOMGaDwe1vdxiYyuBM6DzAo

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Mably subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="currency" title="currency">
<outline type="rss" text="Cryptocurrency News, Bitcoin, Litec..." title="Cryptocurrency News, Bitcoin, Litec..." xmlUrl="http://www.cryptocoinsnews.com/feed/" htmlUrl="https://www.cryptocoinsnews.com"/>
<outline type="rss" text="Cryptocurrencies" title="Cryptocurrencies" xmlUrl="http://cryptocur.com/feed/" htmlUrl="http://cryptocur.com"/>
@Dolu89
Dolu89 / gistUrlShortener.json
Created February 21, 2018 18:54
Url shortener free for ever using gist.github.com (as long gist is alive)
[{"id":"aaaaaa", "url":"http://google.fr", "count":0},{"id":"bbbbbb", "url":"http://google.fr", "count":0}]