Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ make deploy-idcard # IdCard contract to Base
| Contract | Both Chains |
|---|---|
| Semaphore | `0x8A1fd199516489B0Fb7153EB5f075cDAC83c693D` |
| CredentialRegistry | `0xbF9b2556e6Dd64D60E08E3669CeF2a4293e006db` |
| DefaultScorer | `0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c` |
| ScorerFactory | `0xAa03996D720C162Fdff246E1D3CEecc792986750` |
| CredentialRegistry | `0x17a22f130d4e1c4ba5C20a679a5a29F227083A62` |
| DefaultScorer | `0x6791B588dAdeb4323bc1C3d987130bC13cBe3625` |
| ScorerFactory | `0x016bC46169533a8d3284c5D8DD590C91783C8C06` |

Owner: `0x6F0CDcd334BA91A5E221582665Cce0431aD4Fc0b`
Owner: `0x677112864ED447866f8D461ABe284E5e907bB4F8`
Trusted verifier (Sepolia): `0x3c50f7055D804b51e506Bc1EA7D082cB1548376C`
Trusted verifier (mainnet): `0x9186aA65288bFfa67fB58255AeeaFfc4515535d9`

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ Contract addresses are identical on both chains (same deployer, same nonce).
| Contract | Address |
|---|---|
| Semaphore | [`0x8A1fd199516489B0Fb7153EB5f075cDAC83c693D`](https://basescan.org/address/0x8A1fd199516489B0Fb7153EB5f075cDAC83c693D) |
| CredentialRegistry | [`0xbF9b2556e6Dd64D60E08E3669CeF2a4293e006db`](https://basescan.org/address/0xbF9b2556e6Dd64D60E08E3669CeF2a4293e006db) |
| DefaultScorer | [`0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c`](https://basescan.org/address/0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c) |
| ScorerFactory | [`0xAa03996D720C162Fdff246E1D3CEecc792986750`](https://basescan.org/address/0xAa03996D720C162Fdff246E1D3CEecc792986750) |
| CredentialRegistry | [`0x17a22f130d4e1c4ba5C20a679a5a29F227083A62`](https://basescan.org/address/0x17a22f130d4e1c4ba5C20a679a5a29F227083A62) |
| DefaultScorer | [`0x6791B588dAdeb4323bc1C3d987130bC13cBe3625`](https://basescan.org/address/0x6791B588dAdeb4323bc1C3d987130bC13cBe3625) |
| ScorerFactory | [`0x016bC46169533a8d3284c5D8DD590C91783C8C06`](https://basescan.org/address/0x016bC46169533a8d3284c5D8DD590C91783C8C06) |

### Base Sepolia (chain ID 84532)

| Contract | Address |
|---|---|
| Semaphore | [`0x8A1fd199516489B0Fb7153EB5f075cDAC83c693D`](https://sepolia.basescan.org/address/0x8A1fd199516489B0Fb7153EB5f075cDAC83c693D) |
| CredentialRegistry | [`0xbF9b2556e6Dd64D60E08E3669CeF2a4293e006db`](https://sepolia.basescan.org/address/0xbF9b2556e6Dd64D60E08E3669CeF2a4293e006db) |
| DefaultScorer | [`0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c`](https://sepolia.basescan.org/address/0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c) |
| ScorerFactory | [`0xAa03996D720C162Fdff246E1D3CEecc792986750`](https://sepolia.basescan.org/address/0xAa03996D720C162Fdff246E1D3CEecc792986750) |
| CredentialRegistry | [`0x17a22f130d4e1c4ba5C20a679a5a29F227083A62`](https://sepolia.basescan.org/address/0x17a22f130d4e1c4ba5C20a679a5a29F227083A62) |
| DefaultScorer | [`0x6791B588dAdeb4323bc1C3d987130bC13cBe3625`](https://sepolia.basescan.org/address/0x6791B588dAdeb4323bc1C3d987130bC13cBe3625) |
| ScorerFactory | [`0x016bC46169533a8d3284c5D8DD590C91783C8C06`](https://sepolia.basescan.org/address/0x016bC46169533a8d3284c5D8DD590C91783C8C06) |

### Credential Groups

Expand Down
6 changes: 3 additions & 3 deletions docs/app-manager-specs.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A web dashboard for third-party app developers to self-manage their BringID inte

All interactions go to two contracts on Base (mainnet 8453 / Sepolia 84532):

### CredentialRegistry (`0xbF9b2556e6Dd64D60E08E3669CeF2a4293e006db`)
### CredentialRegistry (`0x17a22f130d4e1c4ba5C20a679a5a29F227083A62`)

| Function | Access | Description |
|---|---|---|
Expand All @@ -31,7 +31,7 @@ All interactions go to two contracts on Base (mainnet 8453 / Sepolia 84532):
| `credentialGroups(uint256 id)` | View | Returns `(status, validityDuration, familyId)`. |
| `getCredentialGroupIds()` | View | Returns all registered credential group IDs. |

### DefaultScorer (`0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c`)
### DefaultScorer (`0x6791B588dAdeb4323bc1C3d987130bC13cBe3625`)

Read-only from the dashboard's perspective (only BringID owner can write):

Expand All @@ -41,7 +41,7 @@ Read-only from the dashboard's perspective (only BringID owner can write):
| `getScores(uint256[] credentialGroupIds)` | View | Scores for multiple groups. |
| `getAllScores()` | View | All group IDs + scores. |

### ScorerFactory (`0xAa03996D720C162Fdff246E1D3CEecc792986750`)
### ScorerFactory (`0x016bC46169533a8d3284c5D8DD590C91783C8C06`)

Deploys DefaultScorer instances owned by the caller. Same address on both chains.

Expand Down
8 changes: 4 additions & 4 deletions docs/fetching-scores.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The `DefaultScorer` contract stores global scores for each credential group. Scores can be read on-chain in a single call — no iteration or multicall needed.

**DefaultScorer address (Base mainnet & Sepolia):** `0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c`
**DefaultScorer address (Base mainnet & Sepolia):** `0x6791B588dAdeb4323bc1C3d987130bC13cBe3625`

## Get All Scores

Expand All @@ -11,7 +11,7 @@ The `DefaultScorer` contract stores global scores for each credential group. Sco
### cast (Foundry)

```bash
cast call 0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c \
cast call 0x6791B588dAdeb4323bc1C3d987130bC13cBe3625 \
"getAllScores()(uint256[],uint256[])" \
--rpc-url $BASE_RPC_URL
```
Expand All @@ -20,7 +20,7 @@ cast call 0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c \

```js
const scorer = new ethers.Contract(
"0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c",
"0x6791B588dAdeb4323bc1C3d987130bC13cBe3625",
["function getAllScores() view returns (uint256[], uint256[])"],
provider
);
Expand All @@ -33,7 +33,7 @@ const [groupIds, scores] = await scorer.getAllScores();

```js
const [groupIds, scores] = await publicClient.readContract({
address: "0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c",
address: "0x6791B588dAdeb4323bc1C3d987130bC13cBe3625",
abi: [{
name: "getAllScores",
type: "function",
Expand Down
4 changes: 2 additions & 2 deletions docs/integration-test/test-verifier-prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const signature = await wallet.signMessage(ethers.getBytes(hash));
const body = {
message: message,
signature: signature,
registry: "0xbF9b2556e6Dd64D60E08E3669CeF2a4293e006db",
registry: "0x17a22f130d4e1c4ba5C20a679a5a29F227083A62",
chain_id: "84532", // Base Sepolia
credential_group_id: "5", // github.com, min score 30
app_id: "1",
Expand All @@ -66,7 +66,7 @@ The response should be:
```json
{
"attestation": {
"registry": "0xbf9b2556e6dd64d60e08e3669cef2a4293e006db",
"registry": "0x17a22f130d4e1c4ba5c20a679a5a29f227083a62",
"chain_id": 84532,
"credential_group_id": "...",
"credential_id": "0x...",
Expand Down
8 changes: 4 additions & 4 deletions docs/migration-guide-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Contract addresses are identical on both chains (same deployer, same nonce).
| Contract | Address | Chains |
|---|---|---|
| Semaphore | `0x8A1fd199516489B0Fb7153EB5f075cDAC83c693D` | mainnet (8453), Sepolia (84532) |
| CredentialRegistry | `0xbF9b2556e6Dd64D60E08E3669CeF2a4293e006db` | mainnet (8453), Sepolia (84532) |
| DefaultScorer | `0x315044578dd9480Dd25427E4a4d94b0fc2Fa4f8c` | mainnet (8453), Sepolia (84532) |
| ScorerFactory | `0xAa03996D720C162Fdff246E1D3CEecc792986750` | mainnet (8453), Sepolia (84532) |
| CredentialRegistry | `0x17a22f130d4e1c4ba5C20a679a5a29F227083A62` | mainnet (8453), Sepolia (84532) |
| DefaultScorer | `0x6791B588dAdeb4323bc1C3d987130bC13cBe3625` | mainnet (8453), Sepolia (84532) |
| ScorerFactory | `0x016bC46169533a8d3284c5D8DD590C91783C8C06` | mainnet (8453), Sepolia (84532) |

Owner: `0x6F0CDcd334BA91A5E221582665Cce0431aD4Fc0b`
Owner: `0x677112864ED447866f8D461ABe284E5e907bB4F8`
Trusted verifier (Sepolia): `0x3c50f7055D804b51e506Bc1EA7D082cB1548376C`
Trusted verifier (mainnet): `0x9186aA65288bFfa67fB58255AeeaFfc4515535d9`

Expand Down
2 changes: 1 addition & 1 deletion docs/migration-instructions/task-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Update user-facing error messages:
### 9. Environment Variables

Add or update:
- `REGISTRY_ADDRESS` — new CredentialRegistry address: `0xbF9b2556e6Dd64D60E08E3669CeF2a4293e006db` (same on both Base mainnet 8453 and Sepolia 84532)
- `REGISTRY_ADDRESS` — new CredentialRegistry address: `0x17a22f130d4e1c4ba5C20a679a5a29F227083A62` (same on both Base mainnet 8453 and Sepolia 84532)

## No Changes Required

Expand Down
4 changes: 2 additions & 2 deletions docs/migration-instructions/verify-proof-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ Contract addresses are identical on both chains (same deployer, same nonce).
```diff
export const chainRegistries: Record<number, string[]> = {
- 84532: ['0x0b2Ab187a6FD2d2F05fACc158611838c284E3a9c'],
+ 84532: ['0xbF9b2556e6Dd64D60E08E3669CeF2a4293e006db'],
+ 8453: ['0xbF9b2556e6Dd64D60E08E3669CeF2a4293e006db'],
+ 84532: ['0x17a22f130d4e1c4ba5C20a679a5a29F227083A62'],
+ 8453: ['0x17a22f130d4e1c4ba5C20a679a5a29F227083A62'],
}
```

Expand Down
Loading