owned this note
owned this note
Published
Linked with GitHub
# Public Profile
The public profile allows an organization to share public information about itself in the form of a W3C Verifiable Presentation (VP).
The public profile can be seen as a very simple, limited implementation of an Identity Hub for an organisation.
## Rationale
- Provide basc public information without relying on DIDcomm and Indy Credentials (Anoncreds), i.e. such that even a human with a browser and a ledger explorer can read the data.
- Allow the integration of documents (self-attested data) and credentials (third-party attested data)
- Allow the public profile to be a "static" ressource, i.e. a request should not require access to cryptographic keys.
## Design
### Profile Endpoint
The service that returns the public profile VP is advertised in the DID document as a service endpoint of type `profile`.
```
{
"service":
[{
"type":"profile",
"serviceEndpoint":"https://alice.iil.network/profile.jsonld"
}]
}
```
### Organizational Profile
### Indy Credentials (Anoncreds)
### Example
```
{
"@context":[
"https://www.w3.org/2018/credentials/v1"
],
"type":[
"VerifiablePresentation"
],
"verifiableCredential":[
{
"@context":[
"https://www.w3.org/2018/credentials/v1",
"https://raw.githubusercontent.com/iil-network/contexts/master/masterdata.jsonld",
"https://raw.githubusercontent.com/iil-network/contexts/master/labeled-credential.jsonld"
],
"type":[
"VerifiableCredential",
"LabeledCredential",
"OrganizationalProfileCredential"
],
"id":"urn:992c5897-e897-484f-99b2-33070593a128",
"issuer":"did:sov:iil:VoSfM3eGaPxduty34ySygw",
"issuanceDate":"2020-12-14T14:48:08Z",
"credentialSubject":{
"id":"did:sov:iil:VoSfM3eGaPxduty34ySygw",
"type":"Legal Entity",
"altName":"",
"legalName":"Robert Bosch GmbH (ILL)",
"identifier":[
{
"id":"123",
"type":"D-U-N-S"
}
],
"registeredSite":{
"id":"ff35b805-c7c2-49aa-bb1c-d90383fd3919",
"address":{
"city":"Gerlingen",
"region":"",
"country":"Germany",
"zipCode":"79999",
"streetAddress":"Mauserstrasse 1"
}
}
},
"label":"Robert Bosch GmbH (ILL)"
},
{
"@context":[
"https://www.w3.org/2018/credentials/v1",
{
"@context":{
"sc":"did:sov:iil:M6Mbe3qx7vB4wpZF4sBRjt:2:bank_account:1.0",
"bic":{
"@id":"sc:bic"
},
"iban":{
"@id":"sc:iban"
}
}
},
"https://raw.githubusercontent.com/iil-network/contexts/master/indycredential.jsonld"
],
"type":[
"VerifiableCredential",
"IndyCredential"
],
"id":"urn:583100e7-9141-4444-b3bf-3bd27fb1e33e",
"issuanceDate":"2020-12-09T19:21:58Z",
"credentialSubject":{
"bic":"456",
"iban":"1234"
},
"label":"1234",
"indyIssuer":"did:sov:iil:M6Mbe3qx7vB4wpZF4sBRjt",
"schemaId":"M6Mbe3qx7vB4wpZF4sBRjt:2:bank_account:1.0",
"credDefId":"M6Mbe3qx7vB4wpZF4sBRjt:3:CL:571:bank_account_no_revoc"
}
],
"proof":{
"type":"Ed25519Signature2018",
"created":"2020-12-14T14:48:08Z",
"verificationMethod":"did:sov:iil:VoSfM3eGaPxduty34ySygw#key-1",
"proofPurpose":"authentication",
"jws":"eyJhbGciOiAiRWREU0EiLCAiYjY0IjogZmFsc2UsICJjcml0IjogWyJiNjQiXX0..fYhHd3qJlGZjsiDMgYH-0cFlhgPlvW4NQw5pkKQX5KN0_jBKhbjJwIwzrplo9tPDASB2tRJAXnWBykgKPz8FAQ"
}
}
```