Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCs presentation #713

Open
naltamura opened this issue Sep 28, 2022 · 3 comments
Open

VCs presentation #713

naltamura opened this issue Sep 28, 2022 · 3 comments

Comments

@naltamura
Copy link

#integration-services hello and thank you in advance. How in SSi-bridge does the node present its own verifiable credentials?
For example, I have a master node running SSI-Bridge, an "Admin" with its own identity who is delegated to create other DIDs for other nodes within the domain.
How do the other nodes present the VC to claim that it belongs to a defined domain?

@dominic22
Copy link
Contributor

dominic22 commented Oct 4, 2022

I don't know if I understand you correctly but I'll try to answer your question or give you some hints where you might want to look at.

You could for instance find out the server id of the ssi-bridge using the /info endpoint returning:

{
"commitHash":"not defined",
"hostname":"localhost",
"id":"did:iota:BPvL2gG71pcNCnqpk1uqFYRK25ELxoVKLDW18reyCnfy",
"version":"v0.2"
}

Then you could query the identity details using the /api/v0.2/identities/<server-id> endpoint returning the credentials that can then be checked via the /api/v0.2/verification/check-credential endpoint.

{
    "id": "did:iota:BPvL2gG71pcNCnqpk1uqFYRK25ELxoVKLDW18reyCnfy",
    "username": "root-identity",
    "registrationDate": "2022-07-25T16:09:18+02:00",
    "claim": {
        "type": "Service",
        "name": "Integration Service"
    },
    "verifiableCredentials": [
        {
            "@context": "https://www.w3.org/2018/credentials/v1",
            "id": "did:iota:BPvL2gG71pcNCnqpk1uqFYRK25ELxoVKLDW18reyCnfy",
            "type": [
                "VerifiableCredential",
                "VerifiedIdentityCredential"
            ],
            "credentialSubject": {
                "id": "did:iota:BPvL2gG71pcNCnqpk1uqFYRK25ELxoVKLDW18reyCnfy",
                "@context": "https://schema.org/",
                "initiator": "did:iota:BPvL2gG71pcNCnqpk1uqFYRK25ELxoVKLDW18reyCnfy",
                "name": "Integration Service",
                "type": "Service"
            },
            "issuer": "did:iota:BPvL2gG71pcNCnqpk1uqFYRK25ELxoVKLDW18reyCnfy",
            "issuanceDate": "2022-07-25T14:09:49Z",
            "credentialStatus": {
                "id": "did:iota:BPvL2gG71pcNCnqpk1uqFYRK25ELxoVKLDW18reyCnfy#signature-bitmap-0",
                "type": "RevocationBitmap2022",
                "revocationBitmapIndex": 0
            },
            "proof": {
                "type": "JcsEd25519Signature2020",
                "verificationMethod": "did:iota:BPvL2gG71pcNCnqpk1uqFYRK25ELxoVKLDW18reyCnfy#sign-0",
                "signatureValue": "1gwMDR7vfRBuaFbU9QYWND9NLuosYtvmHEd6XuWY7uUTYfejMp7eS5FBepQE8MK9DpXYEeB2efBPDrbU5Q3MsSp"
            }
        }
    ],
    "role": "User"
}

Other nodes would need to add the id of the server to the trusted-roots in order to trust credentials signed by this identity.

@naltamura
Copy link
Author

naltamura commented Oct 4, 2022 via email

@naltamura
Copy link
Author

What about VC are relased by trusted third entity but is revoked by the original SSi-Bridge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants