Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PGPNP support to iOS #3765

Merged
merged 14 commits into from
May 11, 2020
Merged

Add PGPNP support to iOS #3765

merged 14 commits into from
May 11, 2020

Conversation

jmrossy
Copy link
Contributor

@jmrossy jmrossy commented May 7, 2020

Description

  • Update to react-native-treshold-bls version that includes iOS support
  • Add private hash logic to invite saga for escrow
  • Fix minor issue with quota calculation in PGPNP service
  • Have app inform attestation service of desired sms retriever sig
  • Cleanup now dead sms retriever configs

Tested

Retrieved salt on iOS
No regressions on Android.
Tested update to Att. service on Alfa Staging + Alfajores

Related issues

Backwards compatibility

Yes (feature still behind a feature flag)

"react-native-camera": "^3.23.1",
"react-native-clock-sync": "^1.0.0",
"react-native-config": "https://github.com/luggit/react-native-config#89a602b",
"react-native-confirm-device-credentials": "git://github.com/celo-org/react-native-confirm-device-credentials#436afa9",
"react-native-contacts": "https://github.com/celo-org/react-native-contacts#e473717",
"react-native-device-info": "^5.5.6",
"react-native-exit-app": "^1.1.0",
"react-native-fast-crypto": "git+https://github.com/celo-org/react-native-fast-crypto#3946f9",
"react-native-fast-crypto": "https://github.com/celo-org/react-native-fast-crypto#df1c171",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No logical changes to this package. I just merged the branch we were using there to master to make things easier to follow.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think react-native-bip39 also has a dep there which we should update. Feel like this is another argument to move things into the monorepo 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, fixed the reference in bip39

@jmrossy jmrossy changed the title Add PGPNP support to iOS [WIP] Add PGPNP support to iOS May 7, 2020
"react-native-camera": "^3.23.1",
"react-native-clock-sync": "^1.0.0",
"react-native-config": "https://github.com/luggit/react-native-config#89a602b",
"react-native-confirm-device-credentials": "git://github.com/celo-org/react-native-confirm-device-credentials#436afa9",
"react-native-contacts": "https://github.com/celo-org/react-native-contacts#e473717",
"react-native-device-info": "^5.5.6",
"react-native-exit-app": "^1.1.0",
"react-native-fast-crypto": "git+https://github.com/celo-org/react-native-fast-crypto#3946f9",
"react-native-fast-crypto": "https://github.com/celo-org/react-native-fast-crypto#df1c171",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think react-native-bip39 also has a dep there which we should update. Feel like this is another argument to move things into the monorepo 😄

"dev:emulator": "bash ./scripts/start_emulator.sh &",
"dev:remote": "remotedev --hostname=localhost --port=8000",
"dev:emulator:list": "$ANDROID_HOME/emulator/emulator -list-avds",
"dev:emulator:run": "$ANDROID_HOME/emulator/emulator -avd",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if the functionality doesn't change it's nice to leave the name the same

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was broken before so doubt anyone was using it. I prefer it like this

@codecov
Copy link

codecov bot commented May 7, 2020

Codecov Report

Merging #3765 into master will decrease coverage by 0.15%.
The diff coverage is 15.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3765      +/-   ##
==========================================
- Coverage   75.88%   75.73%   -0.16%     
==========================================
  Files         599      601       +2     
  Lines       15497    15547      +50     
  Branches     2012     2018       +6     
==========================================
+ Hits        11760    11774      +14     
- Misses       3375     3411      +36     
  Partials      362      362              
Flag Coverage Δ
#mobile 75.49% <15.38%> (-0.24%) ⬇️
#web 76.04% <ø> (-0.05%) ⬇️
Impacted Files Coverage Δ
packages/mobile/src/identity/privacy.ts 80.00% <ø> (-0.40%) ⬇️
packages/mobile/src/invite/saga.ts 74.44% <15.38%> (-2.53%) ⬇️
packages/react-components/icons/ForwardChevron.tsx 80.00% <0.00%> (-20.00%) ⬇️
...ages/mobile/src/escrow/EscrowedPaymentListItem.tsx 75.00% <0.00%> (-9.91%) ⬇️
...s/react-components/components/PhoneNumberInput.tsx 71.42% <0.00%> (-2.94%) ⬇️
...kages/mobile/src/transactions/TransferFeedItem.tsx 82.22% <0.00%> (-1.87%) ⬇️
packages/mobile/src/account/Invite.tsx 80.30% <0.00%> (-1.52%) ⬇️
packages/mobile/src/home/NotificationBox.tsx 75.53% <0.00%> (-0.26%) ⬇️
packages/mobile/src/redux/store.ts 95.23% <0.00%> (-0.22%) ⬇️
packages/mobile/test/values.ts 100.00% <0.00%> (ø)
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4289fb0...0dd6c89. Read the comment docs.

…etriever app sig from the wallet instead of helm config
@jmrossy jmrossy changed the title [WIP] Add PGPNP support to iOS Add PGPNP support to iOS May 8, 2020
@jmrossy jmrossy marked this pull request as ready for review May 8, 2020 22:40
@jmrossy jmrossy removed the request for review from asaj May 8, 2020 23:08
Copy link
Contributor

@nambrot nambrot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attestation service changes look great, genius idea to make the requestor configure it!

Copy link
Contributor

@cmcewen cmcewen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌 nice work on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App signature hashes in Attestation Service
3 participants