Giter Site home page Giter Site logo

verifiable-credentials-java's People

Contributors

azuzi avatar bernhardfuchs avatar dependabot[bot] avatar peacekeeper avatar philpotisk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

verifiable-credentials-java's Issues

Verifiable Credentials Cannot Be Resolved from Maven or Jitpack

This started happening earlier today.

Repro steps:

  1. Spin up a gradle project and pull in verifiable credentials as a dependency: implementation 'com.danubetech:verifiable-credentials-java:1.9.0'
  2. clear gradle cache (if you have already downloaded the dependency): rm -rf <user-home>/.gradle/caches
  3. attempt to resolve dependencies with --info: gradle dependencies --info
  4. Observe the response:
Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/com/danubetech/verifiable-credentials-java/1.9.0/verifiable-credentials-java-1.9.0.pom]
Resource missing. [HTTP GET: https://jitpack.io/com/danubetech/verifiable-credentials-java/1.9.0/verifiable-credentials-java-1.9.0.pom]

What is the purpose??

		signer.setVerificationMethod(URI.create("https://example.com/jdoe/keys/1"));
		signer.setDomain("example.com");
		signer.setNonce("343s$FSFDa-");

what is domain and verification method in proof?

500 Internal Error in downloading verifiable-credentials-java:1.6.0

Hi! Thanks for creating this library. We are currently using it in our repository as a dependency.

We are currently getting a 500 Server Error when trying to download verifiable-credentials-java:1.6.0 via mvn install

We are also currently unable to render the repo website by browser - same 500 Server Error appears.

Because of this, we can't build our repo, which blocks our team.

Build error message, if you're interested:

Failed to execute goal on project kotlin-testsuite: Could not resolve dependencies for 
project website.tbd.developer.site:kotlin-testsuite:jar:0.1.0-SNAPSHOT: 
Failed to collect dependencies at xyz.block:tbdex:jar:0.10.0-beta -> 
xyz.block:tbdex-protocol:jar:0.10.0-beta -> 
xyz.block:web5:jar:0.0.11 -> 
xyz.block:web5-credentials:jar:0.0.11 -> 
com.danubetech:verifiable-credentials-java:jar:1.6.0: 
Failed to read artifact descriptor for com.danubetech:verifiable-credentials-java:jar:1.6.0: 

The following artifacts could not be resolved: 
com.danubetech:verifiable-credentials-java:pom:1.6.0 (absent): 
Could not transfer artifact com.danubetech:verifiable-credentials-java:pom:1.6.0 
from/to danubetech (https://repo.danubetech.com/repository/maven-public/): 
status code: 500, reason phrase: Server Error (500) -> [Help 1]

cc @peacekeeper @BernhardFuchs @azuzi

Verifying VC in dock verifier is throwing error

Hi @peacekeeper

While verifying this VC i am getting this error from the site https://certs.dock.io/credentials/verify
" verification method should have type Ed25519VerificationKey2018 and have the base58 public key"

this is the VC which i have generated
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"type": [
"UniversityDegreeCredential",
"VerifiableCredential",
"Ed25519VerificationKey2018"
],
"issuer": "did:web:did-web.uniregistrar.io:72206333-435f-4960-97d7-35a496fbae10",
"issuanceDate": "2019-06-16T18:56:59Z",
"expirationDate": "2023-06-17T18:56:59Z",
"credentialSubject": {
"degree": {
"name": "Bachelor of Science and Arts",
"type": "BachelorDegree"
}
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2022-09-26T06:38:38Z",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:web:did-web.uniregistrar.io:72206333-435f-4960-97d7-35a496fbae10",
"jws": "eyJiNjQiOmZhbHNlLCJjcml0IjpbImI2NCJdLCJhbGciOiJFZERTQSJ9..oIEKh6LJhhe_SY12OhluKDBp3p-3YbnhzCYbgM3k9IW2wmDa3sjad3yZo_09w1uJ29BJ943PZeyRwPvYj68iBg"
}
}

this is my diddocument

{
"state": "finished",
"secret": null,
"didDocument": {
"@context": "https://www.w3.org/ns/did/v1",
"service": [
{
"type": "ServiceEndpointProxyService",
"serviceEndpoint": "https://sysveda.co.in"
}
],
"verificationMethod": [
{
"type": "Ed25519VerificationKey2018",
"publicKeyBase64": "de8777a28f8da1a74e7a13090ed974d879bf692d001cddee16e4cc9f84b60580"
}
],
"id": "did:web:did-web.uniregistrar.io:72206333-435f-4960-97d7-35a496fbae10"
},
"did": "did:web:did-web.uniregistrar.io:72206333-435f-4960-97d7-35a496fbae10"
}

Need support to generate did?

Hi @peacekeeper need to clear some point correct me if wrong

1.Using this library I have create a VC
2.I need to verify that VC in dock wallet but for that I need DID so I have planned to use WEB method.
3.For creating did document i have to mentioned the public used in this library verification?
4.I am going to use did:web method for that I have to anchor the did in block chain?
5.In w3c they have not mentioned the did document structure for ed22519signer
6.In VC the I'd inside the credentials subject and I'd above the issuer is mandatory or optional?

can we create context?

this is about verifiable-credentials-java library,
when i create a new context,
i cannot generate proof i am getting exception like this

JsonLdError[code=There was a problem encountered loading a remote context [code=LOADING_REMOTE_CONTEXT_FAILED]., message=There was a problem encountered loading a remote context [code=LOADING_REMOTE_CONTEXT_FAILED].]

How to add context in this format ? is it possible.

Hi @peacekeeper i need to add new context like below.
This library support that ?
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
{
"dk": "https://ld.dock.io/credentials#",
"BasicCredential": "dk:BasicCredential",
"name": "dk:name",
"title": "dk:title",
"description": "dk:description",
"logo": "dk:logo"
}

],

Add support for multiple subjects in a Verifiable Credential

To improve conformance with the Verifiable Credential data model v1.1, add support for multiple subjects in a Verifiable Credential.

From the following excerpt at https://www.w3.org/TR/vc-data-model/#credential-subject, this entails supporting an array of subjects in the credentialSubject field in addition to an object.

It is possible to express information related to multiple subjects in a verifiable credential. The example below specifies two subjects who are spouses. Note the use of array notation to associate multiple subjects with the credentialSubject property.

EXAMPLE 7: Specifying multiple subjects in a verifiable credential

{
  "@context": [
    "https://www.w3.org/2018/credentials/v1",
    "https://www.w3.org/2018/credentials/examples/v1"
  ],
  "id": "http://example.edu/credentials/3732",
  "type": ["VerifiableCredential", "RelationshipCredential"],
  "issuer": "https://example.com/issuer/123",
  "issuanceDate": "2010-01-01T00:00:00Z",
  "credentialSubject": [{
    "id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
    "name": "Jayden Doe",
    "spouse": "did:example:c276e12ec21ebfeb1f712ebc6f1"
  }, {
    "id": "did:example:c276e12ec21ebfeb1f712ebc6f1",
    "name": "Morgan Doe",
    "spouse": "did:example:ebfeb1f712ebc6f1c276e12ec21"
  }]
}

I will propose a pull request with an implementation.

supported by this library

1.how can i create a new context because i have to add new attributes in the credential subject
2.the id above the issuer is optional or mandatory what is the propose of that ??

JwtKeywords.JWT_CLAIM_VC or JwtKeywords.JWT_CLAIM_VP ๏ผŸ

hi, it looks like this is should be JwtKeywords.JWT_CLAIM_VP at src/main/java/com/danubetech/verifiablecredentials/jwt/JwtVerifiablePresentation.java, line 29

	public static JwtVerifiablePresentation fromCompactSerialization(String compactSerialization) throws ParseException {

		SignedJWT signedJWT = SignedJWT.parse(compactSerialization);

		JWTClaimsSet jwtPayload = signedJWT.getJWTClaimsSet();
		Map<String, Object> jsonObject = (Map<String, Object>) jwtPayload.getClaims().get(**JwtKeywords.JWT_CLAIM_VP**);
		VerifiablePresentation payloadVerifiablePresentation = VerifiablePresentation.fromJsonObject(new LinkedHashMap<>(jsonObject));

		return new JwtVerifiablePresentation(jwtPayload, payloadVerifiablePresentation, signedJWT, compactSerialization);
	}

It support VDR??

this library support verifiable data registry ??
generated VC can be verifier in other system??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.