Skip to content

DerTiedemann/decoded_styr_frontend

Repository files navigation

Shark Nice Keanu Thumb Schitts Creek Perfect Japanese OK Biden Smile

backend folder contains the java backend the root dir is a react vite app that can be lauched via pnpm run dev

/hotel page on the frontend produces a code that will be shown to the traveller that is than scanned by them. This code is only know to the backend server and the receiving hotel, thus scanning it constitutes an additional factor to prove that you stayed at that hotel.

that code is than send to backend and will, if the code matches the data of the record of the backend and the provided publickey is kyc verified, a NFT is minted to that address related to the publickey.

Currently there is the issue that anyone could mint nfts for every kyc verified wallet but that could be solved by attaching a signature to the request. This was left out due to time reasons.

The backend will then resond with either 200 if everything checked out or 412 when the code was expired or the wallet is not kyc verified.

The 200 response will include the transactionID of the sending of the NFT including an auth-token that can also be used to verify that the corresponding code was seen by the traverller. The endpoint is on the backend. This exists so to ease the implementation of traditional processes.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published