-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/origin/main' into cooldown-changes
- Loading branch information
Showing
7 changed files
with
78 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,9 @@ The wallet proxy provides the following endpoints: | |
* `PUT /v0/testnetGTUDrop/{account address}`: request a CCD drop to the specified account | ||
* `GET /v0/health`: get a response specifying if the wallet proxy is up to date | ||
* `GET /v0/global`: get the cryptographic parameters obtained from the node it is connected to | ||
* `GET /v0/ip_info`: get the identity providers information, including links for | ||
submitting initial identity issuance requests. | ||
* `GET /v0/ip_info`: get the identity providers information with links for submitting initial identity issuance requests. | ||
* `GET /v1/ip_info`: get the identity providers information with links for submitting identity issuance and recovery requests. | ||
* `GET /v2/ip_info`: get the identity providers information (including company ID providers) with for submitting identity issuance and recovery requests. | ||
* `GET /v0/bakerPool/{bakerId}`: get the status of a baker pool given the baker ID. | ||
* `GET /v0/chainParameters`: get the chain parameters. | ||
* `GET /v0/nextPayday`: get the next payday. | ||
|
@@ -1150,6 +1151,7 @@ wallet-proxy --grpc-ip 127.0.0.1\ | |
--db "host=localhost port=5432 dbname=transaction-outcome user=postgres password=postgres"\ | ||
--ip-data identity-providers-with-metadata.json\ | ||
--ip-data-v1 identity-providers-with-metadata-v1.json\ | ||
--ip-data-v2 identity-providers-with-metadata-v2.json\ | ||
--drop-account gtu-drop-account-0.json\ | ||
--forced-update-config-v0 forced-update-config-v0.json\ | ||
--forced-update-config-v1 forced-update-config-v1.json\ | ||
|
@@ -1164,6 +1166,7 @@ where | |
- `--db "host=localhost port=5432 dbname=transaction-outcome user=postgres password=postgres"` is the transaction outcome database connection string | ||
- `--ip-data identity-providers-with-metadata.json` JSON file with identity providers, anonymity revokers and metadata needed for the version 0 identity flow | ||
- `--ip-data-v1 identity-providers-with-metadata.json` JSON file with identity providers and anonymity revokers and metadata needed for the version 1 identity flow | ||
- `--ip-data-v2 identity-providers-with-metadata.json` JSON file with identity providers (including company ID providers) and anonymity revokers and metadata needed for the version 1 identity flow | ||
- `--drop-account gtu-drop-account-0.json` keys of the gtu drop account | ||
- `--forced-update-config-v0 forced-update-config-v0.json` file with app update configuration for the old mobile wallet | ||
- `--forced-update-config-v1 forced-update-config-v1.json` file with app update configuration for the new mobile wallet | ||
|
@@ -1282,6 +1285,62 @@ Where | |
|
||
NB: It is OK to have the same identity provider listed multiple times in this file, i.e., the same identity provider could have two verification backends, in which case they would be listed twice in the list, the difference between the two instances being the `issuanceStart` and `icon` fields. | ||
|
||
### For the version 2 identity issuance flow | ||
This must be a valid JSON file which contains an array of JSON objects of the following form | ||
```json | ||
{ | ||
"metadata": { | ||
"display": "Alternative display name", | ||
"issuanceStart": "https://identity.provider/issuance-start", | ||
"recoveryStart": "https://identity.provider/recovery-start", | ||
"icon": "base 64 encoded png image", | ||
"support": "<[email protected]>" | ||
}, | ||
"ipInfo": { | ||
"ipIdentity": 0, | ||
"ipDescription": { | ||
"name": "Short name as it appears on the chain.", | ||
"url": "http/identity.provider", | ||
"description": "Free form description" | ||
}, | ||
"ipVerifyKey": "...", | ||
"ipCdiVerifyKey": "74e905294a9377408d87ab4ddc4202731c4f971561eeaf423e82ae9509b8d057" | ||
}, | ||
"arsInfos": { | ||
"1": { | ||
"arIdentity": 1, | ||
"arDescription": { | ||
"name": "AR-1", | ||
"url": "", | ||
"description": "" | ||
}, | ||
"arPublicKey": "93fdc40bb8af4cb75caf8a53928d247be6285784b29578a06df312c28854c1bfac2fd0183967338b578772398d41201886a215138ec53d870e2878bbe731381927e08eaafe97003f6f4831f18e47c9ee8913c5f806064b57341785f0376af" | ||
}, | ||
"2": { | ||
"arIdentity": 2, | ||
"arDescription": { | ||
"name": "AR-2", | ||
"url": "", | ||
"description": "" | ||
}, | ||
"arPublicKey": "93fdc40bb8af4cb75caf8a53928d247be6285784b29578a06df312c28854c1bfac2fd0183967338b578772398d41201ac7295a21c3c687112f454c1d222d74e0d9cc9249b3c1eef58eb66a8a039c0decf3ea413a656f6f2dbebb497b7a527" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
Where | ||
- the `ipInfo` field is the contents of the `identity-provider-*.pub.json` files generated by the genesis tool, minus the outer versioning. | ||
- the `arsInfos` field has the same format (minus the versioning) as the `anonymity_revokers.json` file generated by the genesis tool. | ||
- the `metadata` field needs to be constructed manually based on the desired setup and in communication with partners. | ||
- the `issuanceStart` link is where the wallet submits the initial identity creation request. | ||
- the `issuanceRecovery` link is where the wallet submits the identity recovery request. | ||
- the `icon` needs to be a base64 encoded png image that should be obtained from the relevant identity provider. | ||
- the `support` field must contain a valid support email of the identity provider. | ||
- the `display` field is optional and is the name to display for this identity provider, this is useful for when the same ID provider is listed twice, to allow them to be distinguished. | ||
|
||
NB: It is OK to have the same identity provider listed multiple times in this file, i.e., the same identity provider could have two verification backends, in which case they would be listed twice in the list, the difference between the two instances being the `issuanceStart` and `icon` fields. | ||
|
||
## Database setup | ||
|
||
The wallet-proxy needs access to the transaction logging database in the form of a PostgreSQL database. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule concordium-client
updated
6 files
+1 −1 | .github/workflows/ci.yaml | |
+6 −0 | ChangeLog.md | |
+9 −1 | src/Concordium/Client/Output.hs | |
+220 −74 | src/Concordium/Client/Runner.hs | |
+0 −3 | src/Concordium/Client/Types/Transaction.hs | |
+37 −2 | test/SimpleClientTests/AccountSpec.hs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: wallet-proxy | ||
version: 0.30.1-0 | ||
version: 0.31.0-2 | ||
github: "Concordium/concordium-wallet-proxy" | ||
author: "Concordium" | ||
maintainer: "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters