This project aims to prepare server for passing payload between two clients with confirmation receiver's credentials by sender.
Below is a ideation of the message flow:
- Install Go 1.20 or higher
- Install templ
go install github.com/a-h/templ/cmd/templ@latest - Run
templ generatein project root directory template go files.
- Run server from
server/pass-it.gofile. - To simulate mobile client, run
tools/crypto.go. - It first generates key pair and prints encoded public key to be used as
keyparameter in Store request. - Then it waits for
browser session idsent by server in Fetch stream initial event to be entered by user in console. - Then it generates
signaturefor Confirm request. - Open
http://localhost:8080to receive secret.
- Sending confirmation with wrong signature will purge the key from cache and client cannot retry operation