69 Commits

Author SHA1 Message Date
Sosthene
836f6cf900 Working pairing 2024-09-25 12:51:23 +02:00
Sosthene
56558703c3 Add response logic 2024-09-23 12:33:32 +02:00
Sosthene
b904f4ec81 Process initial update 2024-09-21 19:42:27 +02:00
Sosthene
b7bffe7678 Add more error control 2024-09-02 14:45:35 +02:00
Sosthene
cf3278dd3d Update process creation 2024-08-30 20:03:30 +02:00
Sosthene
287f74136e Implement minimal prd/pcd, remove challenges 2024-08-30 20:03:30 +02:00
Sosthene
45628edb61 Add Process 2024-08-20 12:22:03 +02:00
Sosthene
361a8aa409 Update api 2024-08-15 16:19:11 +02:00
Sosthene
b2cab53188 Break down parse_network_msg into parse_new_tx, parse_cipher 2024-08-14 09:45:19 +02:00
Sosthene
ec47592581 Update create_faucet_msg() to return the actual message to send 2024-08-13 14:28:19 +02:00
Sosthene
08aea30e2b Rm data embedded in images 2024-08-12 05:28:52 +02:00
Sosthene
d82e145f50 working login 2024-08-01 12:26:26 +02:00
Sosthene
30759027b0 Refactor the whole api for the new 2fa model + various improvements 2024-07-19 23:12:11 +02:00
Sosthene
d737242bb5 New User creation
* Device is an unlogged user that is just able to scan incoming
  transactions
* There's always a Device defined either we load one from indexedDB or
  create one
* Logged users have a defined SPENDING_CLIENT that can sign transactions
* The pairing phase is when a new Device is created, we need another
  Device to send it it's own spending key via normal 4nk messaging
* The new Device then encrypt it and send it back
* In another transaction, the first Device does the exact same thing
  (probably possible to optimize)
* The logging phase is sending a 4nk message with the encrypted spending
  key and getting the clear key back, basically logging with one device
of a pair is the same operation than pairing but in reverse
* Revokation output is an unique output for both devices, the validity
  of the pair depends of it being unspent
* Revokation output is locked with some random key that both devices
  will need to keep
* Todo: 1. implement the revokation scheme
2. optimize the pairing/logging flow
2024-07-11 12:41:23 +02:00
Sosthene
6f74996f39 Add wallet.rs 2024-07-11 12:39:25 +02:00
Sosthene
1e79dfd7f6 rm shamir from user 2024-07-11 12:34:02 +02:00
Sosthene
28d4ad8d50 Move all the web part out 2024-07-11 12:32:48 +02:00
Sosthene00
170e3c5bf5 Add typescript/webpack boilerplates 2024-03-18 15:40:39 +01:00
Sosthene00
320a2cd5bb generate new key, new client, get address 2024-03-18 15:13:23 +01:00