Skip to content

Instantly share code, notes, and snippets.

View t-bast's full-sized avatar
https://keybase.io/tbast

Bastien Teinturier t-bast

https://keybase.io/tbast
View GitHub Profile
@t-bast
t-bast / sphinx-rdv.md
Last active February 26, 2020 08:47
Sphinx Rendezvous

Sphinx Rendezvous

Alice wants to receive a payment via rendezvous node Bob. Carol will pay this by "finishing" the onion encryption to route to Bob.

Carol -> N -> Bob -> M -> Alice

Notation:

@t-bast
t-bast / decoys.md
Last active March 30, 2020 14:08
Node ids and short channel ids blinding

Route Blinding

Notations

  • Alice's real node_id is P_a = k_a * G
  • Bob's real node_id is P_b = k_b * G
  • Alice's blinded node_id is D_a = d_a * G
  • Bob's blinded node_id is D_b = d_b * G
  • Alice <-> Bob real short_channel_id is scid_ab
  • Alice <-> Bob blinded short_channel_id is blinded_scid_ab
@t-bast
t-bast / phoenix-privacy.md
Created January 31, 2020 10:33
Phoenix Privacy

On-chain Privacy in Phoenix

Phoenix users never fund channels themselves; it's always the routing node they're connecting to that opens channels to them via pay-to-open. Let's call such a node an LSP (Lightning Service Provider). Note that for now Phoenix only supports one LSP (Acinq).

We will show that this model provides good UTXO privacy for Phoenix users (and good unlinkability between on-chain and off-chain identities).

Pay-to-Open

@t-bast
t-bast / PowersOfTau
Created January 18, 2018 13:21
PowersOfTau
The BLAKE2b hash of `./response` is:
e4dafd1b 0fa438a2 b313d66c c9566a0a
be6d7abe 76252eeb 7d294028 770f830d
e8670f14 5ed8c8af 4e5c3476 f591d0c7
bfd58ddd 36dd7c4d 311d1358 420d551f
@t-bast
t-bast / keybase.md
Created January 2, 2018 10:53
keybase.md

Keybase proof

I hereby claim:

  • I am t-bast on github.
  • I am tbast (https://keybase.io/tbast) on keybase.
  • I have a public key ASAOUDcPswM4FtA7kgxGQyAhcF73gVTekNpkrrc_k_X-_Qo

To claim this, I am signing this object: