Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

@osdnk/t #119

Open
wants to merge 97 commits into
base: develop
Choose a base branch
from
Open

@osdnk/t #119

wants to merge 97 commits into from

Commits on Nov 9, 2022

  1. chore: remove unused scripts

    shottah committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    a68a43b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    531e5b4 View commit details
    Browse the repository at this point in the history
  3. chore: update podfile

    shottah committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    e616fdc View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2022

  1. Configuration menu
    Copy the full SHA
    dfc28e3 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2022

  1. Configuration menu
    Copy the full SHA
    41e59ce View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2022

  1. WIP - Capsule Wallet

    codyborn committed Dec 2, 2022
    Configuration menu
    Copy the full SHA
    591ed79 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2022

  1. Configuration menu
    Copy the full SHA
    8688f22 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7b4a8b View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2022

  1. WIP

    codyborn committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    1ea9e30 View commit details
    Browse the repository at this point in the history
  2. Add create wallet import

    osdnk committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    e9fd0b5 View commit details
    Browse the repository at this point in the history
  3. User Management API working

    codyborn committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    44f386d View commit details
    Browse the repository at this point in the history
  4. Temp removing client lib

    codyborn committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    123edb5 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2022

  1. Demo ready

    codyborn committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    dda9b5b View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2022

  1. Create wallet from library

    osdnk committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    6bbddf5 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2022

  1. Fix send transaction (#1)

    Co-authored-by: codyborn <codyborn@outlook.com>
    osdnk and codyborn authored Dec 14, 2022
    Configuration menu
    Copy the full SHA
    2390e42 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2022

  1. iOS logic (#3)

    osdnk authored Dec 21, 2022
    Configuration menu
    Copy the full SHA
    f7ea3ac View commit details
    Browse the repository at this point in the history
  2. userManagementClient

    osdnk committed Dec 21, 2022
    Configuration menu
    Copy the full SHA
    99e91a7 View commit details
    Browse the repository at this point in the history
  3. prepSignMessage

    osdnk committed Dec 21, 2022
    Configuration menu
    Copy the full SHA
    2648964 View commit details
    Browse the repository at this point in the history
  4. createUser / verify e-mail

    osdnk committed Dec 21, 2022
    Configuration menu
    Copy the full SHA
    f4e527f View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2022

  1. Configuration menu
    Copy the full SHA
    9eec2f3 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2022

  1. Fix wallets iteration

    osdnk committed Dec 29, 2022
    Configuration menu
    Copy the full SHA
    c96deee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bdf5134 View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2022

  1. Configuration menu
    Copy the full SHA
    4de1fa9 View commit details
    Browse the repository at this point in the history
  2. Batter cookie parsing

    osdnk committed Dec 30, 2022
    Configuration menu
    Copy the full SHA
    28fd364 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2023

  1. Persisting across session / foundation for Keychain support (#6)

    ## Overview
    This PR includes changes relating to storing private shares and signers in the Async Storage. 
    
    I decided to put the storing logic inside the `Wallet` entity. This is a different solution that is known from other wallets, but I believe this is a reasonable approach here because, together with signers and shares, we will also introduce biometric storage. Therefore, we have a bit more data to store and we should not rely on wallets to integrate with every storage properly.
    
    I decided to make the approach modular. I decided to create abstract classes for a different type of storage (for private keys and for signers) and immediately follow up with an opinionated implementation tailored for React Native. 
    However, from the user's perspective, that is perfectly fine to replace our implementation with any other, better suited for the product. 
    
    ### Signers storage
    That is the store with public information about signers connected with the given account. Those are stored in the Local Storage, being a default (although maybe suboptimal) solution for React Native Projects. 
    
    ### Private keys storage
    That is the storage, which is designed to include sensitive information. Namely, we store private shares (secp256k1 shards), which should be hidden under some security measures. Temporarily, I did that also with Local Storage, which is _the wrong_ solution. However, I did it to avoid dealing with the technicalities of native code with accessing the keychain. If that PR is approved and we will have 100% confidence around every piece of the architecture, we will proceed with purely technical work of migrating those data into secure storage. 
    
    ### `CapsuleReactNativeWallet` and `CapsuleBaseWallet`.
     That is purely aesthetical change, but it's worth motivating. Since we are not opinionated toward any storage implementation and allow for replacing our implementations and predicting support for different platforms, we extracted out RN-related components. We created the `CapsuleBaseWallet` abstract class with some methods (RN-specific) implemented in the class `CapsuleReactNativeWallet`.
    
    ### `BiometricSessionManager`
    Biometrics-related things were extracted out with opinionated stuff moved to `CapsuleReactNativeWallet`
     
     
     ## Testing
     In order to test it, please navigate to `contracts.ts` and uncomment  `await testSigning(newWallet)`. After opening the app for the second time, it should be possible to sign the transaction immediately (and see the output in the terminal)
    osdnk authored Jan 2, 2023
    Configuration menu
    Copy the full SHA
    d4e84e2 View commit details
    Browse the repository at this point in the history
  2. Create a fake flow to create a new user (#8)

    ## Motivation
    Now, we need to migrate from a hardcoded user-id to a generic mechanism. 
    
    ## Changes
    First, note that we created a workaround to accept any code to verify a user whose email ends with `@test.usecapsule.com`. We did it to replicate the flow of creating users in the Kolektive without the tedious (and pointless) work of creating temporary react components for inputting email and verification codes. Obviously, this will need to change while making a real integration. 
    
    Similarly, as in #6 and #7, I added an extra abstract method to be implemented in an actual wallet class and provided a default implementation for React Native which relies (again) on `AsynsStorage`. We assume that we can access the correct user-id before initiating the wallet instance. Similarly, our decision and design can be easily altered with overring methods. 
    
    ## Cookies
    We needed to move around a few things to ensure that while initializing sessions manager, we already know the userId
    osdnk authored Jan 2, 2023
    Configuration menu
    Copy the full SHA
    293c780 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2023

  1. Cookie flow (#9)

    ## Motivation
    We want to make the complete flow work with cookies refreshing if needed.
    
    ## Changes
    I decided to make a different approach than previously. 
    Before, I was expecting to analyze cookies on the front end; if it's outdated, we renew the cookie and take action. Obviously, on top of that, we still had to prepare the logic to prevent the case if the cookie expired in the meantime and the server rejected us due to cookie expiration. 
    
    The motivation for that was not to make the request that would certainly fail if we knew upfront that the cookie was expired. 
    However, for the sake of MVP, we are OK with one more request, and I decided to always optimistically try to make a request, and only if the backend rejects the cookie, we make the renewal. That solution is enormously more straightforward because now we avoid all the "manual" cookie parsing, and we can safely rely on built-in React Native logic for cookie manipulation. We don't even directly store the cookie.
    In the further iteration, we should implement analyzing cookies on the front end.
     
     We now have a wrapper for server fetches that automatically renews sessions if the wrapped function fails due to the cookies policy. 
    
    
    ~I cannot test it now due to https://capsule-labs.slack.com/archives/C042W1BSG59/p1672606731886599~
    
    To test it, I added a 5 min delay before pre sign of tx to ensure the cookie outdated
    ` await new Promise((r) => setTimeout(r, 300000))`
    osdnk authored Jan 4, 2023
    Configuration menu
    Copy the full SHA
    8329903 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

  1. Configuration menu
    Copy the full SHA
    e982511 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2023

  1. Keychain support 1/2 (#10)

    osdnk authored Jan 6, 2023
    Configuration menu
    Copy the full SHA
    56d531c View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2023

  1. Extract out URLs

    osdnk committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    ff63b84 View commit details
    Browse the repository at this point in the history
  2. console.log(e)

    osdnk committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    150553b View commit details
    Browse the repository at this point in the history
  3. remove console.log('MMMMM')

    osdnk committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    2b116ab View commit details
    Browse the repository at this point in the history
  4. ReactNativePrivateKeyStorage

    osdnk committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    a04ab1a View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2023

  1. Configuration menu
    Copy the full SHA
    e28ffeb View commit details
    Browse the repository at this point in the history
  2. Code re-org (#13)

    osdnk authored Jan 11, 2023
    Configuration menu
    Copy the full SHA
    99aa12f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    24d2a52 View commit details
    Browse the repository at this point in the history
  4. RCT_EXPORT_METHOD setServerUrl

    osdnk committed Jan 11, 2023
    Configuration menu
    Copy the full SHA
    ad23b6d View commit details
    Browse the repository at this point in the history
  5. Merge upstream

    codyborn committed Jan 11, 2023
    Configuration menu
    Copy the full SHA
    c76be04 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2023

  1. Fix typings

    osdnk committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    65faf9b View commit details
    Browse the repository at this point in the history
  2. createUser, verifyEmail helpers

    osdnk committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    e23f5aa View commit details
    Browse the repository at this point in the history
  3. revert typo

    osdnk committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    567d687 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2023

  1. Merge pull request #15 from capsule-org/cody/SignPersonalMessage

    Implement SignPersonalMessage
    codyborn authored Jan 18, 2023
    Configuration menu
    Copy the full SHA
    a47805b View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2023

  1. Configuration menu
    Copy the full SHA
    7cf0a18 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2023

  1. Configuration menu
    Copy the full SHA
    793e8ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c17b404 View commit details
    Browse the repository at this point in the history
  3. Fix imports

    osdnk committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    8674c0f View commit details
    Browse the repository at this point in the history
  4. extract out logger

    osdnk committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    d96d9e5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6dfc93e View commit details
    Browse the repository at this point in the history
  6. Bump UMC

    osdnk committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    d454446 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. proxy -- SSL (#20)

    osdnk authored Jan 31, 2023
    Configuration menu
    Copy the full SHA
    34a35c9 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2023

  1. Configuration menu
    Copy the full SHA
    c10d951 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. Key Recovery: Capsule Wallet + Signer (#19)

    Co-authored-by: osdnk <micosa97@gmail.com>
    codyborn and osdnk authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    3fe8ae3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1753c16 View commit details
    Browse the repository at this point in the history
  3. Wrapping up recovery (#24)

    osdnk authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    6d7540b View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. login + recovery (#25)

    osdnk authored Feb 6, 2023
    Configuration menu
    Copy the full SHA
    ba7ab4f View commit details
    Browse the repository at this point in the history
  2. beta env

    osdnk committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    ac8fabd View commit details
    Browse the repository at this point in the history
  3. bump!

    osdnk committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    2f040e2 View commit details
    Browse the repository at this point in the history
  4. Make ts happy again

    osdnk committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    50202d2 View commit details
    Browse the repository at this point in the history
  5. Make TS happy again

    osdnk committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    2046b6a View commit details
    Browse the repository at this point in the history
  6. bump

    osdnk committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    e4d16a4 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. remove console.log

    osdnk authored Feb 7, 2023
    Configuration menu
    Copy the full SHA
    2e5b784 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. Configuration menu
    Copy the full SHA
    b34f60f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c54613 View commit details
    Browse the repository at this point in the history
  3. Bump

    osdnk committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    c702e6e View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2023

  1. Developer Docs (#26)

    codyborn authored Feb 14, 2023
    Configuration menu
    Copy the full SHA
    cb9fb19 View commit details
    Browse the repository at this point in the history
  2. Fix after Cody's changes (#27)

    osdnk authored Feb 14, 2023
    Configuration menu
    Copy the full SHA
    0d75137 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    94c1a94 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2023

  1. Fix keyshare getting / setting

    osdnk committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    3c81964 View commit details
    Browse the repository at this point in the history
  2. Bump

    osdnk committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    496295c View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2023

  1. Transition helpers (#29)

    osdnk authored Feb 22, 2023
    Configuration menu
    Copy the full SHA
    6f008a3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40fd37a View commit details
    Browse the repository at this point in the history
  3. lint

    osdnk committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    14ef7e3 View commit details
    Browse the repository at this point in the history
  4. Bump

    osdnk committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    94cc7eb View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2023

  1. bump UMC

    osdnk committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    bf430cc View commit details
    Browse the repository at this point in the history
  2. bump v

    osdnk committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    8879d53 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. Configuration menu
    Copy the full SHA
    678c89c View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. tests fixes

    osdnk committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    6dcc454 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. fix test

    osdnk committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    eca7b55 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. Fix test!

    osdnk committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    711d4c2 View commit details
    Browse the repository at this point in the history
  2. Bump

    osdnk committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    7d4416d View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2023

  1. temp: has account

    osdnk committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    fc9d889 View commit details
    Browse the repository at this point in the history
  2. temp version

    osdnk committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    8ac73f1 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2023

  1. Update readme for npm

    nityas authored May 4, 2023
    Configuration menu
    Copy the full SHA
    5ef166c View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. subarray(1) -> slice(1)

    osdnk committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    7e0a4f4 View commit details
    Browse the repository at this point in the history
  2. random ignore

    osdnk committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    f8cec24 View commit details
    Browse the repository at this point in the history
  3. Bump

    osdnk committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    8aa126d View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Expose new methods (#30)

    * Expose new methods
    
    * address: string,
    osdnk authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    92df2a9 View commit details
    Browse the repository at this point in the history
  2. Bump

    osdnk committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    550b2a3 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. POC

    osdnk committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    f3c1236 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Configuration menu
    Copy the full SHA
    9f90858 View commit details
    Browse the repository at this point in the history
  2. applied inside wallet

    osdnk committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    2cd42da View commit details
    Browse the repository at this point in the history
  3. complete work

    osdnk committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    73b65eb View commit details
    Browse the repository at this point in the history
  4. lint

    osdnk committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    b43949b View commit details
    Browse the repository at this point in the history
  5. LoginFlow.quasitest.ts revert

    osdnk committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    7a4ebc8 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. PR 1

    osdnk committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    57e946b View commit details
    Browse the repository at this point in the history
  2. Remove old package

    osdnk committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    2e866f0 View commit details
    Browse the repository at this point in the history
  3. userid + email

    osdnk committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    e0c7250 View commit details
    Browse the repository at this point in the history