Commit 482fe20
Feat/priv cred presentation (#238)
* feature(private-credential)(wip): add mina_storePrivateCredential
* chore(private-credential): lint
* chore(private-credential)(wip): add getPrivateCredential
* chore(private-credential): use minajs from pr and bump mina-credentials
* chore(private-credential)(wip): validation in sandbox
* chore(private-credential): bun lock
* feat(extension): add sandbox for running smart contracts
* feat(extension): add contract to showUserPrompt
* chore(private-credential)(wip): sandbox
* chore(private-credential)(wip): modify sandbox
* chore(private-credential)(wip): use prompt in mina-provider for credential
* chore(private-credential): update bun lock
* chore(private-credential): add contract result handling
* chore(private-credential): remove dummy add and getPromptValue
* chore(private-credential): rename contractResult to result
* chore(private-credential): stringify validation error
* feat(private-credential): store json instead of string
* feat(private-credential): add skeleton for mina_requestPresentation and modify minajs version
* chore(private-credential): skeleton for mina_requestPresentation and sandbox
* feat(private-credential)(wip): credential selection
* chore(private-credential): add credentialId to stored credential
* chore(object): refactor private credentials store
* feat(private-credential): seemingly working selector
* chore(private-credential): todo
* chore(private-credential)(wip): signing presentation wip
* chore(private-credential): add web-provider to features deps
* chore(private-credential): add windowid to signing request handler
* chore(private-credential): use sendMessage instead of runtime.sendMessage
* feat(private-credential): mina_signFieldsWithPassphrase
* chore(private-credential)(wip): move field signing to startSubmitting
* chore(private-credential): change to onSubmit in presentation-result listener
* chore(private-credential)(wip): update messages in sandbox
* chore(private-credential): update bunlock
* chore(private-credential): change from onSubmit to runtime.sendMessage
* chore(private-credential): working signing from sandbox (left in logs for later)
* chore(private-credential): update UI for credential selector
* chore(private-credential): delete cases in listener
* chore(private-credential): add fromJSONs to sandbox and compile Presentation
* chore(private-credential): bump mina-credentials
* chore(private-credential)(wip): prepare works, finalize fails with invalid owner sig
* chore(private-credentials): comment out presentation verification
* chore(private-credential): add presentation request to payload, credentialToStore
* chore(private-credential): add loading to create presentation
* chore(private-credential): add loading message
* chore(private-credential): add loading message for credential validation
* chore(private-credential): set verifierIdentity to origin
* bump mina-credentials
* chore(private-credential): exclude credential metadata from hash
* chore(private-credential): change prompt payload display for storing credential
* chore(private-credential): format credential payload in prompt (simple)
* feat(credentials): add ui for credential management
* feat(private-credential): isCredential, decodeBytes
* chore(private-credential): change icon to IdCard
* chore(private-credential): remove decode
* refactor(private-credential): render-payload
* chore(private-credential): todo
* feat(private-credential): filter credentials for presentation request (only working for one credential in request)
* chore(private-credential): extractDataFields
* feat(private-credential): change credential card ui
* chore(private-credential): extract data fields from dynamic record
* feat(private-credential): selection form only lets user select correct credentials
* feat(private-credential): render presentation request properly
* minor
* chore(private-credential): swap inputs and logic and add origin
* chore(private-credential): more human readable presentation request
* chore(private-credential): add errors
* chore(private-credential): delete todo
* chore(private-credential): property path and verifier url
* chore(private-credential): bump mina-credentials, async fromJSON
* chore(private-credential): delete logs and comments
* bump mina-credentials and o1js
* chore(private-credential): remove try-catch from sandbox
* chore(private-credential): remove unnecessary parse
* chore(private-credential): remove compile
* typo
* chore(private-credential): prompt title
* chore(private-credential): better error msg in selection form
* chore(private-credential): expect payload with presentation in selection form
* chore(private-credential): remove sanitizePayload for sandbox
* chore(private-credential): change error to any
* chore(private-credential): sanitize error in render-payload
* chore(private-credential): add arithmetic nodes to formatLogicNode
* bump packages
* chore(private-credential): constant node in formatLogicNode
* chore(private-credential): ifThenElse in formatLogicNode
* chore(private-credential): change constant node rendering
* chore(private-credential): braces in formatLogicNode
* chore(private-credential): extend Provider types with signFieldsWithPassphrase related schemas
* chore(private-credentials): set mina-js deps to current main (a9d6774)
* use locally defined zod schemas for private credentials
* move mina att dep back into extensions package
* fix presentation request rendering
* move pretty-printing to mina atts
* chore(deps): bump
* chore(deps): bump
---------
Co-authored-by: Marton Moro <moro.marton@gmail.com>
Co-authored-by: Tomasz Marciniak <tomek@Tomaszs-Air.lan>
Co-authored-by: Gregor <gregor.mitscha-baude@gmx.at>1 parent a111fc2 commit 482fe20
File tree
210 files changed
+5440
-805
lines changed- apps/extension
- src
- assets
- background
- handlers
- inject/rpc
- sandbox
- packages
- _template
- common
- contracts
- src
- add
- features
- .ladle
- src
- @types
- account-management
- components
- routes
- views
- common
- hooks
- lib
- store
- components
- credentials
- routes
- views
- error-renderer/views
- i18n
- lib
- locales
- en
- tr
- lock/routes
- onboarding
- components
- routes
- views
- send
- components
- hooks
- routes
- staking/components
- transactions
- components
- routes
- utils
- views
- wallet
- routes
- views
- web-connector
- components
- routes
- utils
- views
- key-management
- src
- chains
- Mina
- test
- mina
- util
- mina-core
- src
- Mina
- Providers/chain-history-provider
- offchain-data
- pallad-core
- src
- Mina/Providers
- account-info-provider
- chain-history-provider
- tx-submit-provider
- Pallad/providers
- account-info-provider
- tx-submit-provider
- providers
- src
- blockberry-provider/chain-history
- mina-node
- account-info
- block-listener
- chain-history
- node-status
- unified-providers
- zeko-scan/chain-history
- test
- blockberry
- mina-node
- l1-mina-node/individual-providers
- zeko-sequencer/individual-providers
- unified-providers
- individual-providers
- zeko-scan
- util
- vault
- src
- account
- credentials
- keyAgent
- lib
- network-info
- objects
- vault
- utils
- test
- account
- credentials
- keyAgent
- objects
- wallet
- web-provider
- src
- mina-network
- utils
- vault-service
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
210 files changed
+5440
-805
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
51 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| |||
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 48 | | |
56 | | - | |
57 | 49 | | |
58 | | - | |
59 | 50 | | |
60 | | - | |
61 | | - | |
62 | 51 | | |
63 | | - | |
64 | | - | |
| 52 | + | |
65 | 53 | | |
66 | 54 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments