-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: bPrime flow functionality #131
Conversation
66da8ea
to
12ad004
Compare
df23bb4
to
fe3643b
Compare
<Button.Outline | ||
p="$0" | ||
width="$buttonHeight" | ||
onPress={() => setSelectedFlow(selectedFlow === 'c' ? 'bprime' : 'c')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should use callback where the current value is passed to prevent weird inconsistencies
onPress={() => setSelectedFlow(selectedFlow === 'c' ? 'bprime' : 'c')} | |
onPress={() => setSelectedFlow((selectedFlow) => selectedFlow === 'c' ? 'bprime' : 'c')} |
|
||
export type ReceivePidUseCaseState = 'id-card-auth' | 'acquire-access-token' | 'retrieve-credential' | 'error' | ||
|
||
export class ReceivePidUseCaseBPrimeFlow { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess ok, but a lot of duplication between c and b' flow
apps/funke/app/(app)/index.tsx
Outdated
import { useSafeAreaInsets } from 'react-native-safe-area-context' | ||
import { ReceivePidUseCaseCFlow, type ReceivePidUseCaseState } from '../../use-cases/ReceivePidUseCaseCFlow' | ||
|
||
export default function Screen() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be undone
@@ -0,0 +1,111 @@ | |||
import { type Key, KeyType, getJwkFromKey } from '@credo-ts/core' | |||
import type { FullAppAgent } from '@package/agent' | |||
import { createPinDerivedEphKeyPop, deriveKeypairFromPin } from '../crypto/bPrime' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we now have a src directory. Also how does this relate to receivePidBPrimeFlowUsecase ?
Signed-off-by: Berend Sliedrecht <[email protected]>
Signed-off-by: Berend Sliedrecht <[email protected]>
Signed-off-by: Berend Sliedrecht <[email protected]>
fe3643b
to
5b66276
Compare
Signed-off-by: Berend Sliedrecht <[email protected]>
5b66276
to
4004465
Compare
Signed-off-by: Berend Sliedrecht [email protected]