Skip to content

Commit

Permalink
T/encrypt decrypt fix (#193)
Browse files Browse the repository at this point in the history
* Added public key cookie for metamask

* Remove mobile restriction on showMetamask

* Add Metamask check

* Fixed public key fetch

* Add derive key in setter

* messaging key randomness cookie

* remove approve jwt

* Added edge cases for window and iframe (#194)

* Added edge cases for window and iframe

* Logging

* Moved encrypted users to existing payloads

* add ln.deso.run as full access host temporarily, do a little code clean up

* Fix handleEncrypt response

* try catch around decryption

* remove debugger

* Add expiration for cookies

* Removed encrypted users from log

* Save current progress on adding owner public key cookie

* fix spelling of variable name

* pass seed hex instead of public key

* Enhanced cookie handling

* change console errors

* Add support for cookies deriving non-metamask messaging keys

* remove ln.deso.run from fullAccessHostnames

* don't require approval if output goes to owner public key

* temporarily add some logging to debug approve window

* revert updates to approveSpending

* Added Error handling for encrypt / decrypt

* Added sign and sign jwt logic

* Seen this fail in different scenarios

* make error strings into consts, check we have info to decrypt messages and throw error before decrypting if not, don't fail all when decrypting messages, general clean up (#195)

* make error strings into consts, check we have info to decrypt messages and throw error before decrypting if not, don't fail all when decrypting messages, general clean up

* make conditional simpler in getMessagingRandomnessForSeedHex

* Error: -> error: for backwards compatibility

* move populate cookies into account service and call from both login and messagingGroup in identity service

* user not found errors should set requestDerivedCookieWithEncryptedSeed to true

Co-authored-by: Lazy Nina <[email protected]>
Co-authored-by: lazynina <[email protected]>

* Clean up account service cookie handler logic, remove metamaskCookieRefreshOnRequest function and usages

* remove unused enum

Co-authored-by: lazynina <[email protected]>
Co-authored-by: Piotr Nojszewski <[email protected]>
Co-authored-by: Lazy Nina <[email protected]>
  • Loading branch information
4 people authored Oct 3, 2022
1 parent 4e4cec1 commit 288e24b
Show file tree
Hide file tree
Showing 6 changed files with 566 additions and 157 deletions.
Loading

0 comments on commit 288e24b

Please sign in to comment.