Hide your nuts!

Image
Image

...with Cashu - an eCash system for the Bitcoin Lightning network

  • Open source dev
  • Cashu: eCash protocol by @callebtc
  • Nutstash: Cashu wallet
Image
Image
Image

ECash

  • Heard about it?
  • Understand it?
  • Used it?

What is eCash?

  • ECash =/= Bitcoin
  • 1982 by David Chaum
  • Privacy respecting, electronic value transmission protocol
  • Using blind signatures

How does eCash work?

(ELI5)

Image
Image

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

verysecret..xyz

Image
Image

carbon envelope

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Image

carbon envelope

Image

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Image

carbon envelope

Image
Image
Image

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Image
Image
Image
Image

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Image
Image
Image
Image

Mint

Here is my blinded secret and 5$

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Image
Image
Image
Image

Mint

Here is my blinded secret and 5$

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Mint

Here is my blinded secret and 5$

Image
Image
Image
Image

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Mint

Here is my blinded secret and 5$

Image
Image
Image
Image
Image

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Mint

Here is my blinded secret and 5$

Image

Mint Response

I return your blinded secret with mints signature

Image
Image
Image
Image

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Mint

Here is my blinded secret and 5$

Image

Mint Response

I return your blinded secret with mints signature

Image
Image
Image
Image

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Mint

Here is my blinded secret and 5$

Image

Mint Response

I return your blinded secret with mints signature

Image
Image
Image
Image

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Mint

Here is my blinded secret and 5$

Image

Mint Response

I return your blinded secret with mints signature

Image
Image

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Mint

Here is my blinded secret and 5$

Image

Mint Response

I return your blinded secret with mints signature

Image
Image
  • The mint has never seen our secret                

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Mint

Here is my blinded secret and 5$

Image

Mint Response

I return your blinded secret with mints signature

Image
Image
  • The mint has never seen our secret
  • The mint can verify the secret validity/amount because of the stamp

How does eCash work?

(ELI5)

Image
Image

I want to mint 5$ worth of eCash

Mint Request

Mint Request Response

Ok, send me 5$ and a secret (inside carbon envelope)

Mint

Here is my blinded secret and 5$

Image

Mint Response

I return your blinded secret with mints signature

Image
Image
  • The mint has never seen our secret
  • The mint can verify the secret validity/amount because of the stamp
  • Bearer token

How does Cashu work?

Image
Image

Mint Request

Mint Request Response

Mint

Mint Response

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

Image

await payment...

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

Image

await payment...

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

Image

await payment...

Image

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Image
Image

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Image
Image

B_

Image

Y

+

r

G

=

Y: secret

r: blinding factor

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Image
Image

B_

Image

Y

r

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Image
Image

B_

Image

Y

r

Here is my blinded secret and payment hash

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Image

B_

Image

Y

r

Here is my blinded secret and payment hash

Image

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Image

B_

Image

Y

r

Here is my blinded secret and payment hash

Image
PUB PRIV Amount
123abc afd890 1
... ... ...
456def 876acb 8

K

k

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Image

Y

r

Here is my blinded secret and payment hash

Image
PUB PRIV Amount
123abc afd890 1
... ... ...
456def 876acb 8

K

k

*

=

C_

B_

Image
Image

8

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Image

Y

r

Here is my blinded secret and payment hash

Image
PUB PRIV Amount
123abc afd890 1
... ... ...
456def 876acb 8

K

k

C_

Image

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Image

Y

r

Here is my blinded secret and payment hash

Image
PUB PRIV Amount
123abc afd890 1
... ... ...
456def 876acb 8

K

k

C_

Image

I return your blinded secret with mints signature

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Image

Y

r

Here is my blinded secret and payment hash

Image
PUB PRIV Amount
123abc afd890 1
... ... ...
456def 876acb 8

K

k

I return your blinded secret with mints signature

-

*

=

C

C_

Image
Image

8

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Y

Here is my blinded secret and payment hash

Image
PUB PRIV Amount
123abc afd890 1
... ... ...
456def 876acb 8

k

I return your blinded secret with mints signature

C

How does Cashu work?

Image
Image

I want to mint 8 sats worth of eCash

Mint Request

Mint Request Response

Mint

Mint Response

Ok, pay LN-invoice and send blinded secret

await payment...

Y

Here is my blinded secret and payment hash

Image
PUB PRIV Amount
123abc afd890 1
... ... ...
456def 876acb 8

k

I return your blinded secret with mints signature

C

*

==

How does Cashu work?

Image
Image
Image
Image
Image
Image
Image

How does Cashu work?

Image
Image
Image
Image
Image
Image
Image

How does Cashu work?

Image
Image
Image
Image
Image
Image
Image
  • Wallets use the mints LN node
  • No balance, no ID, no UTXOs

How does Cashu work?

Image
Image
Image
Image
Image
Image
Image
  • Wallets use the mints LN node
  • No balance, no ID, no UTXOs
  • Mints inerop over LN
  • Private ecash transactions

Why Cashu?

  • LN self custody is "hard"
  • LN privacy is complicated
  • User data ownership
  • Bearer tokens UX

Cashu usage

Image
Image
Image

Mints

Wallets

Image

cashu nutshell

cashu nutshell

feni

feni

redeem

Nutstash usage

Image

Nutstash usage

Image

Nutstash usage

Image
Image

Connect with mints

Nutstash usage

Image
Image

Connect with mints

Image

Use Wallet

Nutstash usage

Image
Image
Image
Image
Image

Send

Receive

Mint

Pay LN invoice

Nutstash usage

Image
Image
Image

Swap between mints

Integrate with nostr

Nutstash usage

Image

Other usages?

We've seen...

  • Private LN payments using custodians
  • Sending bearer asset tokens via DMs

Other usages?

We've seen...

  • Private LN payments using custodians
  • Sending bearer asset tokens via DMs

Yet to come....

  • Paid REST requests (X-Cashu)
  • Cashu nostr relays
  • ...

Cashu development

We're not there yet...

Join us!

  • Token backups
  • Fractional reserve rug-pulling
  • Making it easy for developers and user: Simple protocol, great libraries & easy to run software

Cashu development

Join us!

Image