Slides: https://docs.google.com/presentation/d/1lGONa4CpQz3nEXpO1oLBFiGa7st2YKUZyKWhhDLNb3s/edit?usp=sharingDuration:1.5 hours?
Can go longer or shorter depending on what’s the most useful and valuable to participants given the rest of conference.
Goals:- Learn about Lightning Service Authentication Tokens (LSATs), the 402 Response Error Code why macaroons are better than cookies, and how they can be used to build a better authentication ecosystem
- Practice parsing and validating LSATs with the LSAT Playground (https://lsat-playground.vercel.app/)
- Build your own custom paywall using LSATs by deploying a proxy server that is capable returning 402 responses and validating paid requests to access a restricted endpoint
- Extra credit: support for delegation- clients can sell restricted use of an LSAT they paid for to another user.
Pre-requisites:(I’ll probably need to update this as I actually try and build out the workshop exercise)
- Setup Polar (https://lightningpolar.com/) or similar for a local bitcoin and lightning network dev environment
- recommended knowledge: read up on LSATs from lightning labs’ docs (https://lsat.tech/) and macaroons vs cookies (https://hackingdistributed.com/2014/05/16/macaroons-are-better-than-cookies/)
- play around with the LSAT Playground (https://lsat-playground.vercel.app/)