Skip to content

Commit

Permalink
Updates language to remove Centre for Circle; removes Centre-related …
Browse files Browse the repository at this point in the history
…schema.
  • Loading branch information
jheron-circle committed Oct 12, 2023
1 parent 9cd464f commit 5f3965d
Show file tree
Hide file tree
Showing 25 changed files with 46 additions and 50 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Occasionally, the local hardhat ethereum node and MetaMask become out of sync. I

## Contributors

- [Kim Hamilton Duffy](https://github.com/kimdhamilton) ([Centre Consortium](https://centre.io))
- [Kim Hamilton Duffy](https://github.com/kimdhamilton)
- [Sean Neville](https://github.com/psnevio) ([Xdotzero](http://xdotzero.com))
- [Brice Stacey](https://github.com/bricestacey) ([M2 Labs](https://m2.xyz))
- [Matt Venables](https://github.com/venables) ([M2 Labs](https://m2.xyz))
Expand Down
2 changes: 1 addition & 1 deletion packages/contract/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Since the full, fixed supply is issued to the contract creator, we used that sam

## Contributors

- [Kim Hamilton Duffy](https://github.com/kimdhamilton) ([Centre Consortium](https://centre.io))
- [Kim Hamilton Duffy](https://github.com/kimdhamilton)
- [Sean Neville](https://github.com/psnevio) ([Xdotzero](http://xdotzero.com))
- [Brice Stacey](https://github.com/bricestacey) ([M2 Labs](https://m2.xyz))
- [Matt Venables](https://github.com/venables) ([M2 Labs](https://m2.xyz))
2 changes: 1 addition & 1 deletion packages/contract/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ task(
}

const verificationResult = {
schema: "centre.io/credentials/kyc",
schema: "",
subject: taskArgs.address,
expiration: Math.floor(Date.now() / 1000) + 60 // 1 minute
}
Expand Down
8 changes: 4 additions & 4 deletions packages/contract/scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async function registerVerifications(registry: Contract, addresses: string[]) {

for (const address of addresses) {
const verificationResult = {
schema: "centre.io/credentials/kyc",
schema: "",
subject: address,
expiration: expiration
}
Expand Down Expand Up @@ -151,9 +151,9 @@ async function createTrustedVerifier(
) {
for (const address of verifiers) {
const testVerifierInfo = {
name: hre.ethers.utils.formatBytes32String("Centre Consortium"),
did: "did:web:centre.io",
url: "https://centre.io/about",
name: hre.ethers.utils.formatBytes32String("Circle Internet Financial"),
did: "did:web:circle.com",
url: "https://www.circle.com/en/about-circle",
signer: address
}

Expand Down
12 changes: 6 additions & 6 deletions packages/contract/test/VerificationRegistryTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ describe("VerificationRegistry", function () {

// create a test verifier
const testVerifierInfo = {
name: ethers.utils.formatBytes32String("Centre Consortium"),
did: "did:web:centre.io",
url: "https://centre.io/about",
name: ethers.utils.formatBytes32String("Circle Internet Financial"),
did: "did:web:circle.com",
url: "https://www.circle.com/en/about-circle",
signer: signer.address
}

Expand Down Expand Up @@ -71,7 +71,7 @@ describe("VerificationRegistry", function () {
})

it("Should update an existing verifier", async function () {
testVerifierInfo.url = "https://centre.io"
testVerifierInfo.url = "https://circle.com"
const setVerifierTx = await verificationRegistry.updateVerifier(
contractOwnerAddress,
testVerifierInfo
Expand Down Expand Up @@ -137,7 +137,7 @@ describe("VerificationRegistry", function () {
]
}
verificationResult = {
schema: "centre.io/credentials/kyc",
schema: "",
subject: subjectAddress,
expiration: expiration
}
Expand Down Expand Up @@ -239,7 +239,7 @@ describe("VerificationRegistry", function () {
// register owner as verified
it("Should register token owner as verified", async function () {
verificationResult = {
schema: "centre.io/credentials/kyc",
schema: "",
subject: tokenOwner,
expiration: expiration
}
Expand Down
2 changes: 1 addition & 1 deletion packages/demo-issuer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Note that this is contingent on metamask actually supporting Verite.

## Contributors

- [Kim Hamilton Duffy](https://github.com/kimdhamilton) ([Centre Consortium](https://centre.io))
- [Kim Hamilton Duffy](https://github.com/kimdhamilton)
- [Sean Neville](https://github.com/psnevio) ([Xdotzero](http://xdotzero.com))
- [Brice Stacey](https://github.com/bricestacey) ([M2 Labs](https://m2.xyz))
- [Matt Venables](https://github.com/venables) ([M2 Labs](https://m2.xyz))
2 changes: 1 addition & 1 deletion packages/demo-revocation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can read more about the Next.js folder structure in [their documentation](ht

## Contributors

- [Kim Hamilton Duffy](https://github.com/kimdhamilton) ([Centre Consortium](https://centre.io))
- [Kim Hamilton Duffy](https://github.com/kimdhamilton)
- [Sean Neville](https://github.com/psnevio) ([Xdotzero](http://xdotzero.com))
- [Brice Stacey](https://github.com/bricestacey) ([M2 Labs](https://m2.xyz))
- [Matt Venables](https://github.com/venables) ([M2 Labs](https://m2.xyz))
2 changes: 1 addition & 1 deletion packages/demo-verifier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Issuance to metamask, or some browser-based extension wallet, is very similar. S

## Contributors

- [Kim Hamilton Duffy](https://github.com/kimdhamilton) ([Centre Consortium](https://centre.io))
- [Kim Hamilton Duffy](https://github.com/kimdhamilton)
- [Sean Neville](https://github.com/psnevio) ([Xdotzero](http://xdotzero.com))
- [Brice Stacey](https://github.com/bricestacey) ([M2 Labs](https://m2.xyz))
- [Matt Venables](https://github.com/venables) ([M2 Labs](https://m2.xyz))
4 changes: 2 additions & 2 deletions packages/docs/blog/2022-03-30-introducing_verite.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ The answer is Verifiable Credentials (VCs). VCs are on a web standards track and

## What Is Verite?

Verite is a collaborative and open source initiative spearheaded by the [Centre Consortium](https://www.centre.io/). Centre's focus is to "provide the governance and standards for the future digital financial ecosystem." Verite is one output of the collaborative effort of Centre.
Verite is a collaborative and open source initiative spearheaded by the Circle, and its focus is to "provide the governance and standards for the future digital financial ecosystem." Verite is one output of the collaborative effort.

While contributions to the VCs standards themselves is important, and Centre is an active participant alongside the W3C, tools that make it easy to implement and leverage VCs are just as important. As such, Centre began work last year on Verite, an open source library designed to make managing VCs easier.
While contributions to the VCs standards themselves is important, and Circle is an active participant alongside the W3C, tools that make it easy to implement and leverage VCs are just as important. As such, Circle began work last year on Verite, an open source library designed to make managing VCs easier.

Currently available in TypeScript and [published through NPM](https://www.npmjs.com/package/verite), the Verite library seeks to make it easier to implement VCs in a variety of forms. The library is early and an additional goal of the library is to collect community feedback.

Expand Down
4 changes: 2 additions & 2 deletions packages/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ const lightCodeTheme = require("prism-react-renderer/themes/github")
module.exports = {
title: "Verite Documentation",
tagline: "Verite decentralized identity for DeFi",
url: "https://docs.centre.io",
url: "https://verite.id/",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "centre.io",
organizationName: "circle.com",
projectName: "verite-docs",
themeConfig: {
navbar: {
Expand Down
3 changes: 1 addition & 2 deletions packages/docs/verite/appendix/primer.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ But Circle's use cases can also involve no knowledge of a holder endpoint at fir
```json
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://centre.io/contexts/identity.jsonld"
"https://www.w3.org/2018/credentials/v1"
],
"type": [
"VerifiableCredential",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ Now that we've seen the contract properly reject an address that is not listed a
```js
// create a test verifier
const testVerifierInfo = {
name: ethers.utils.formatBytes32String("Centre Consortium"),
did: "did:web:centre.io",
url: "https://centre.io/about",
name: ethers.utils.formatBytes32String("Circle Internet Financial"),
did: "did:web:circle.com",
url: "https://www.circle.com/en/about-circle",
signer: signer.address
}

Expand Down Expand Up @@ -229,7 +229,7 @@ Verifier information can change, so it's important to be able to update verifier

```js
it("Should update an existing verifier", async function () {
testVerifierInfo.url = "https://centre.io"
testVerifierInfo.url = "https://circle.com"
const setVerifierTx = await verificationRegistry.updateVerifier(
contractOwnerAddress,
testVerifierInfo
Expand Down Expand Up @@ -305,7 +305,7 @@ it("Should format a structured verification result", async function () {
]
}
verificationResult = {
schema: "centre.io/credentials/kyc",
schema: "circle.com/credentials/kyc",
subject: subjectAddress,
expiration: expiration
}
Expand Down
5 changes: 1 addition & 4 deletions packages/docs/verite/developers/wallet-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ sidebar_position: 9

# Verite Wallet Integration Guide

**Contact**: [[email protected]](mailto:[email protected])

This guide is written for developers seeking to integrate the "wallet-bound" Verite flows and data models into custodial or non-custodial wallets. What follows is best understood as a checklist for adding "identity wallet" capabilities (handling Verifiable Credentials natively and as flexible as built-for-purpose identity wallets do) to an existing mobile wallet, whether non-custodial, custodial, or semi-custodial (MPC, multi-sig, etc).

## Minimal Wallet Requirements - Summary
Expand Down Expand Up @@ -339,8 +337,7 @@ Note: In the Presentation Object that follows (a signed VP in JWT form), the `ve
"verifiableCredential": [
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://centre.io/contexts/identity.jsonld"
"https://www.w3.org/2018/credentials/v1"
],
"type": ["VerifiableCredential", "KYCAMLCredential"],
"credentialSubject": {
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The addresses to fill are:

## Contributors

- [Kim Hamilton Duffy](https://github.com/kimdhamilton) ([Centre Consortium](https://centre.io))
- [Sean Neville](https://github.com/psnevio) ([Circle, Centre, Xdotzero](http://xdotzero.com))
- [Kim Hamilton Duffy](https://github.com/kimdhamilton)
- [Sean Neville](https://github.com/psnevio) ([Circle, Xdotzero](http://xdotzero.com))
- [Brice Stacey](https://github.com/bricestacey) ([M2 Labs](https://m2.xyz))
- [Matt Venables](https://github.com/venables) ([M2 Labs](https://m2.xyz))
2 changes: 1 addition & 1 deletion packages/e2e-demo/components/shared/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Layout: FC<Props> = ({ children, title, bgColor }) => {
{children}
</main>
<footer className="py-8 text-sm text-center text-gray-500 text-extralight">
&copy;{new Date().getFullYear()} Centre | Software open sourced
&copy;{new Date().getFullYear()} Circle Internet Financial Limited | Software open sourced
under the MIT license
</footer>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-demo/pages/demos/issuer/kyc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const KycAmlPage: NextPage<Props> = ({
</Link>{" "}
defining the credentials that the issuer can issue and how a wallet
can request them. Credential Manifests are a developing standard by
the Decentralized Identity Foundation (of which Centre is a member).
the Decentralized Identity Foundation.
</p>

<pre>{JSON.stringify(qrCodeData, null, 4)}</pre>
Expand Down
2 changes: 1 addition & 1 deletion packages/solana/programs/verity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub mod verity {

// Require that the schema is KYC
msg!("Schema: {}", verification_result.schema);
require!(verification_result.schema == "centre.io/credentials/kyc", ErrorCode::InvalidSchema);
require!(verification_result.schema == "", ErrorCode::InvalidSchema);

// Recover the address that signed the signature
let mut message = Vec::new();
Expand Down
2 changes: 1 addition & 1 deletion packages/solana/tests/verity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe("verity", () => {
cluster: "localnet", // 12 bytes
subject: alice.publicKey, // 32 bytes
expiration, // 8 bytes
schema: "centre.io/credentials/kyc" // 29 bytes
schema: "" // 29 bytes
}

// Allocate buffer for the message and borsh encode the data. Each type has
Expand Down
2 changes: 1 addition & 1 deletion packages/verite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ lib/utils/ Contains shared utility functions

## Contributors

- [Kim Hamilton Duffy](https://github.com/kimdhamilton) ([Centre Consortium](https://centre.io))
- [Kim Hamilton Duffy](https://github.com/kimdhamilton)
- [Sean Neville](https://github.com/psnevio) ([Xdotzero](http://xdotzero.com))
- [Brice Stacey](https://github.com/bricestacey) ([M2 Labs](https://m2.xyz))
- [Matt Venables](https://github.com/venables) ([M2 Labs](https://m2.xyz))
4 changes: 2 additions & 2 deletions packages/verite/lib/verifier/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import type { VerificationResultResponse } from "../../types"
* @param contractAddress The VerificationRegistry contract address
* @param signerPrivateKey The signer's private key
* @param chainId The chain this verification is intended to be used upon
* @param schema The schema that this verification result is for. Defaults to `centre.io/credentials/kyc` for backwards compatability.
* @param schema The schema that this verification result is for, which you can publish at a path such as "<YOUR_URL>/credentials/kyc". Defaults to "".
* @returns an object containing a VerificationResult and a signature
*/
export const verificationResult = async (
subject: string,
contractAddress: string,
signerPrivateKey: string,
chainId: number,
schema = "centre.io/credentials/kyc"
schema = ""
): Promise<VerificationResultResponse> => {
// A production verifier would integrate with its own persistent wallet, but
// this example merely regenerates a new signer trusted signer when needed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ describe("kycAmlPresentationDefinition", () => {

it("allows you to customize the list of trusted issuers", () => {
// Example where you might only want to accept credentials issued by
// did:web:centre.io or did:web:example.com
// did:web:circle.com or did:web:example.com
const definitions = kycAmlPresentationDefinition([
"did:web:centre.io",
"did:web:circle.com",
"did:web:example.com"
])

Expand Down Expand Up @@ -147,7 +147,7 @@ describe("kycAmlPresentationDefinition", () => {
},
{
filter: {
pattern: "^did:web:centre.io$|^did:web:example.com$",
pattern: "^did:web:circle.com$|^did:web:example.com$",
type: "string"
},
path: ["$.issuer.id", "$.issuer", "$.vc.issuer", "$.iss"],
Expand Down
6 changes: 3 additions & 3 deletions packages/verite/test/lib/verifier/result.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("verificationResult", () => {
// signature: "0x19e88da2f358047dc6c2388115c037dc0fa4f6e8af1b3a6ee61af5af1972457c11374071d0e44db96b05eb8fb8a6b85398879b938ca1ff00c99db856bafb885a1c",
verificationResult: {
// expiration: 1636574690,
schema: "centre.io/credentials/kyc",
schema: "",
subject: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
}
})
Expand Down Expand Up @@ -59,12 +59,12 @@ describe("verificationResult", () => {
contractAddress,
verifierPrivateKey,
chainId,
"centre.io/credentials/address"
""
)

expect(result).toMatchObject({
verificationResult: {
schema: "centre.io/credentials/address",
schema: "",
subject: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
}
})
Expand Down
4 changes: 2 additions & 2 deletions packages/verite/test/lib/verifier/verification-offer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("verification offer", () => {
const from = "did:web:example.com"
const replyUrl = "https://example.com/123"
const statusUrl = "https://example.com/status/123"
const trustedAuthorities: string[] = ["did:web:centre.io"]
const trustedAuthorities: string[] = ["did:web:circle.com"]

const offer = buildKycVerificationOffer(
id,
Expand Down Expand Up @@ -80,7 +80,7 @@ describe("verification offer", () => {
},
{
filter: {
pattern: "^did:web:centre.io$",
pattern: "^did:web:circle.com$",
type: "string"
},
path: ["$.issuer.id", "$.issuer", "$.vc.issuer", "$.iss"],
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The Verite wallet is a sample implementation of core Verite flows, but it makes

## Contributors

- [Kim Hamilton Duffy](https://github.com/kimdhamilton) ([Centre Consortium](https://centre.io))
- [Kim Hamilton Duffy](https://github.com/kimdhamilton)
- [Sean Neville](https://github.com/psnevio) ([Xdotzero](http://xdotzero.com))
- [Brice Stacey](https://github.com/bricestacey) ([M2 Labs](https://m2.xyz))
- [Matt Venables](https://github.com/venables) ([M2 Labs](https://m2.xyz))
2 changes: 1 addition & 1 deletion packages/wallet/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "io.centre.verity.demo.ios"
"bundleIdentifier": ""
},
"android": {
"adaptiveIcon": {
Expand Down

0 comments on commit 5f3965d

Please sign in to comment.