Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit cfbb4e0

Browse files
author
Philipp Etschel
authored
Merge pull request #838 from boschresearch/fix/default-ledger
switch default ledger
2 parents d1970eb + bd4be67 commit cfbb4e0

File tree

11 files changed

+30
-38
lines changed

11 files changed

+30
-38
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ The Business Partner Agent is built on top of the Hyperledger Self-Sovereign Ide
9191

9292
A first alpha version of Business Partner Agent is available, see
9393
[Helm Chart](https://github.com/hyperledger-labs/business-partner-agent-chart) and [Docker images](https://github.com/orgs/hyperledger-labs/packages/container/package/business-partner-agent)
94-
It is not ready for production use. Releases are in general considered "alpha", which means API may change at any time and we do not have explicit / planned system tests (See also [Publishing](PUBLISHING.md)).
94+
It is not ready for production use. Releases are in general considered "alpha", which means API may change at any time, and we do not have explicit / planned system tests (See also [Publishing](PUBLISHING.md)).
9595

9696
# Getting Started
9797

9898
The Business Partner Agent supports two modes
9999
1. Web mode: Serves a did:web identity and allows to publish a public organizational profile.
100-
2. Indy mode: Utilizes an identity on an Hyperledger Indy ledger (default: https://indy-test.idu.network/)
100+
2. Indy mode: Utilizes an identity on an Hyperledger Indy ledger (default: http://test.bcovrin.vonx.io/)
101101

102102
Both modes are currently coupled with a specific instance of an Indy network in order to read schemas and credential definitions.
103103
The agent is started in Indy mode per default and tries to connect with our test network. Please refer to the [.env-example file](scripts/.env-example) to start the agent in web mode or connect to a different Indy network.

backend/business-partner-agent/src/main/resources/schemas.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ bpa:
22
schemas:
33
#test ledger schemas, can be overwritten / extended when e.g. working with other ledger
44
bank-account:
5-
ledgerId: "BoschTest"
6-
id: "M6Mbe3qx7vB4wpZF4sBRjt:2:bank_account:1.0"
5+
ledgerId: "bcorvinTest"
6+
id: "F6dB7dMVHUQSC64qemnBi7:2:bank_account:1.0"
77
label: "Bank Account"
88
defaultAttributeName: "iban"
99
# Note: this also works json style restrictions: [{id: 123, label: myLabel}]
1010
restrictions:
11-
- issuerDid: "${bpa.did.prefix}M6Mbe3qx7vB4wpZF4sBRjt"
11+
- issuerDid: "${bpa.did.prefix}F6dB7dMVHUQSC64qemnBi7"
1212
label: "Demo Bank"
1313
bank-account-idunion:
1414
ledgerId: "IDUnionTest"
@@ -19,20 +19,20 @@ bpa:
1919
- issuerDid: "${bpa.did.prefix}UmZ25DANwS6ngGWB4ye4tN"
2020
label: "Demo Bank"
2121
commercial-register:
22-
ledgerId: "BoschTest"
23-
id: "5mwQSWnRePrZ3oF67C4KqD:2:commercialregister:1.0"
22+
ledgerId: "bcorvinTest"
23+
id: "F6dB7dMVHUQSC64qemnBi7:2:commercialregister:1.0"
2424
label: "Commercial Register"
2525
defaultAttributeName: "companyName"
2626
restrictions:
27-
- issuerDid: "${bpa.did.prefix}5mwQSWnRePrZ3oF67C4KqD"
27+
- issuerDid: "${bpa.did.prefix}F6dB7dMVHUQSC64qemnBi7"
2828
label: "Commercial Register"
2929
commercial-register-idunion:
3030
ledgerId: "IDUnionTest"
31-
id: "R6WR6n7CQVDjvvmwofHK6S:2:commercialregister:0.1"
31+
id: "3WDPV5zrNEWhAy9oRS2g8i:2:commercialregister:1.0"
3232
label: "Commercial Register"
3333
defaultAttributeName: "companyName"
3434
restrictions:
35-
- issuerDid: "${bpa.did.prefix}R6WR6n7CQVDjvvmwofHK6S"
35+
- issuerDid: "${bpa.did.prefix}3WDPV5zrNEWhAy9oRS2g8i"
3636
label: "Commercial Register"
3737
permanent-resident:
3838
id: "https://w3id.org/citizenship/v1"
@@ -48,4 +48,4 @@ bpa:
4848
- "birthDate"
4949
tags:
5050
- "myInitTag"
51-
- "myOtherInitTag"
51+
- "myOtherInitTag"

backend/business-partner-agent/src/test/java/org/hyperledger/bpa/client/LedgerExplorerClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class LedgerExplorerClientTest extends BaseTest {
3232
// TODO migrate to okhttp mock
3333
void test() {
3434
LedgerExplorerClient c = new LedgerExplorerClient();
35-
c.setUrl("https://indy-test.idu.network");
35+
c.setUrl("http://test.bcovrin.vonx.io");
3636
c.setMapper(mapper);
3737

3838
final Optional<List<PartnerCredentialType>> credDefIds = c.queryCredentialDefinitions(

docs/source/concepts/public_profile.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The service that returns the public profile VP is advertised in the DID document
2121
"service":
2222
[{
2323
"type":"profile",
24-
"serviceEndpoint":"https://alice.iil.network/profile.jsonld"
24+
"serviceEndpoint":"http://localhost:8080/profile.jsonld"
2525
}]
2626
}
2727
```
@@ -37,15 +37,15 @@ In order to embed Indy Anconcreds in the public profile, we wrap their content i
3737

3838
#### Example of a wrapped in Indy Credential
3939

40-
Given an Indy Credential based on [this schema](https://indy-test.idu.network/browse/domain?page=1&query=M6Mbe3qx7vB4wpZF4sBRjt%3A2%3Abank_account%3A1.0&txn_type=), we dynamically create the following unsigned VC.
40+
Given an Indy Credential based on [this schema](http://test.bcovrin.vonx.io/browse/domain?page=1&query=F6dB7dMVHUQSC64qemnBi7%3A2%3Abank_account%3A1.0&txn_type=), we dynamically create the following unsigned VC.
4141
It becomes verifiably self-attested by including it in a signed VP (see example at the end). The actual content of the original credential gets included in the `credentialSubject`.
4242
```
4343
{
4444
"@context":[
4545
"https://www.w3.org/2018/credentials/v1",
4646
{
4747
"@context":{
48-
"sc":"did:sov:M6Mbe3qx7vB4wpZF4sBRjt:2:bank_account:1.0",
48+
"sc":"did:sov:F6dB7dMVHUQSC64qemnBi7:2:bank_account:1.0",
4949
"bic":{
5050
"@id":"sc:bic"
5151
},
@@ -67,9 +67,9 @@ It becomes verifiably self-attested by including it in a signed VP (see example
6767
"iban":"1234"
6868
},
6969
"label":"1234",
70-
"indyIssuer":"did:sov:M6Mbe3qx7vB4wpZF4sBRjt",
71-
"schemaId":"M6Mbe3qx7vB4wpZF4sBRjt:2:bank_account:1.0",
72-
"credDefId":"M6Mbe3qx7vB4wpZF4sBRjt:3:CL:571:bank_account_no_revoc"
70+
"indyIssuer":"did:sov:F6dB7dMVHUQSC64qemnBi7",
71+
"schemaId":"F6dB7dMVHUQSC64qemnBi7:2:bank_account:1.0",
72+
"credDefId":"F6dB7dMVHUQSC64qemnBi7:3:CL:571:bank_account_no_revoc"
7373
}
7474
```
7575

scripts/.env-example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ BPA_DOCKER_IMAGE=ghcr.io/hyperledger-labs/business-partner-agent-new:edge
3939
BPA_CREDDEF_REVOCATION_REGISTRY_SIZE=3000
4040

4141
# Optional: bcgov ledger explorer (https://github.com/bcgov/von-network)
42-
BPA_LEDGER_BROWSER=https://indy-test.idu.network
42+
BPA_LEDGER_BROWSER=http://test.bcovrin.vonx.io
4343

4444
# Optional: If set bpa renders a link to an external imprint page
4545
BPA_IMPRINT_URL=
@@ -61,8 +61,8 @@ BPA_PRIVACY_POLICY_URL=
6161
#ACAPY_READ_ONLY_MODE=--read-only-ledger
6262

6363
# To support revocation set the 2 URLs of an existing tails server
64-
ACAPY_TAILS_BASE_URL="--tails-server-base-url https://tails-dev.vonx.io"
65-
ACAPY_TAILS_UPLOAD_URL="--tails-server-upload-url https://tails-dev.vonx.io"
64+
ACAPY_TAILS_BASE_URL="--tails-server-base-url https://tails-test.vonx.io"
65+
ACAPY_TAILS_UPLOAD_URL="--tails-server-upload-url https://tails-test.vonx.io"
6666

6767
#
6868
# Identity

scripts/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Registering DID for ACAPY_SEED
9393
"seed": "12345678912345678912345678912300",
9494
"verkey": "FW4MZZhmcSsFnDZLCT5689EoUvzuEXqNRNYem1X6PZFYt"
9595
}
96-
Registration on https://indy-test.idu.network successful
96+
Registration on http://test.bcovrin.vonx.io successful
9797
Setting ACAPY_SEED in .env file
9898
.env does not exist
9999
Creating .env from .env-example
@@ -103,7 +103,7 @@ Registering DID for ACAPY_SEED2
103103

104104
Alternatively, you can register a DID manually:
105105

106-
1. Go to https://indy-test.idu.network/
106+
1. Go to http://test.bcovrin.vonx.io/
107107
2. Provide a 32 character wallet seed on the right side under "Authenticate a new DID" and click on "Register DID"
108108
3. Make a copy of the provided [.env-example file](.env-example) with the name `.env`. Set the `AGENT1_SEED` to the wallet seed. Repeat this process for the second DID if needed, and set the `ACAPY_SEED2` to the second wallet seed.
109109

scripts/genesis-transaction-list.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# https://github.com/hyperledger/aries-cloudagent-python/blob/main/Multiledger.md
2-
- id: BoschTest
3-
is_production: true
4-
is_write: true
5-
genesis_url: 'https://indy-test.idu.network/genesis'
62
- id: bcorvinTest
73
is_production: false
8-
is_write: false
4+
is_write: true
95
genesis_url: 'http://test.bcovrin.vonx.io/genesis'
106
- id: IDUnionTest
117
is_production: false

scripts/register-dids.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SRC_FILE=${SRC_FILE:-".env-example"}
3434
DEST_FILE=${DEST_FILE:-".env"}
3535

3636
# Set URL
37-
URL=${LEDGER_URL:-https://indy-test.idu.network}
37+
URL=${LEDGER_URL:-http://test.bcovrin.vonx.io}
3838

3939
register_did() {
4040
# arg 1 is the env file var we are replacing

scripts/scenarios/keycloak-vcauthn/.env-example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ BPA_DOCKER_IMAGE=ghcr.io/hyperledger-labs/business-partner-agent:edge
3939

4040
# Optional: bcgov ledger explorer (https://github.com/bcgov/von-network)
4141
# BPA_LEDGER_BROWSER=
42-
BPA_LEDGER_BROWSER=https://indy-test.idu.network
42+
BPA_LEDGER_BROWSER=http://test.bcovrin.vonx.io
4343

4444
# Optional: If set bpa renders a link to an external imprint page
4545
BPA_IMPRINT_URL=
@@ -58,11 +58,11 @@ BPA_CREDDEF_REVOCATION_REGISTRY_SIZE=3000
5858
# Run in read only mode, requires BPA_WEB_MODE to be true.
5959
#ACAPY_READ_ONLY_MODE=--read-only-ledger
6060

61-
ACAPY_GENESIS_URL=https://indy-test.idu.network/genesis
61+
ACAPY_GENESIS_URL=http://test.bcovrin.vonx.io/genesis
6262

6363
# To support revocation set the 2 URLs of an existing tails server
64-
ACAPY_TAILS_BASE_URL=--tails-server-base-url https://tails-dev.vonx.io
65-
ACAPY_TAILS_UPLOAD_URL=--tails-server-upload-url https://tails-dev.vonx.io
64+
ACAPY_TAILS_BASE_URL=--tails-server-base-url https://tails-test.vonx.io
65+
ACAPY_TAILS_UPLOAD_URL=--tails-server-upload-url https://tails-test.vonx.io
6666

6767
#
6868
# Identity

scripts/scenarios/local-network/genesis-transaction-list.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
is_production: false
66
is_write: true
77
genesis_url: 'http://host.docker.internal:9000/genesis'
8-
- id: BoschTest
9-
is_production: false
10-
is_write: false
11-
genesis_url: 'https://indy-test.idu.network/genesis'
128
- id: bcorvinTest
139
is_production: false
1410
is_write: false

0 commit comments

Comments
 (0)