Giter Club home page Giter Club logo

did-common-java's People

Contributors

bernhardfuchs avatar dependabot[bot] avatar mistermoe avatar peacekeeper avatar philpotisk avatar sambarnes 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

did-common-java's Issues

Publish to public maven repository?

This and the other universal-resolver-java maven projects look pretty complete. Could they be published to a public repository, so we can reference them in our own projects?

Request to publish JAR to maven central

Hey there, first off, thank you to the maintainers of this library. We're leveraging it in one of our backend services and it works great!

Would it be possible for y'all to upload/mirror this JAR to maven central? We're gearing up to deploy our backend service but are unable to pull the dependency within our internal network unless we go through a laborious vendor security process. I imagine that other companies have similar processes in place as well. Myself and potentially many other devs would be very grateful for the time savings!

If y'all decide to do so, here's a link with instructions on how to publish to maven central for free - https://www.jetbrains.com/help/space/publish-artifacts-to-maven-central.html

If it's too much of a lift, no worries. Thanks in advance!

cannot call `verificationMethod.getController()` unless `@context` is set

running into the following error when calling verificationMethod.getController() despite controller being present:

java.lang.IllegalArgumentException: Cannot get string 'controller' from {type=JsonWebKey2020, id=did:key:zQ3shjmnWpSDEbYKpaFm4kTs9kXyqG6N2QwCYHNPP4yubqgJS#zQ3shjmnWpSDEbYKpaFm4kTs9kXyqG6N2QwCYHNPP4yubqgJS, controller=did:key:zQ3shjmnWpSDEbYKpaFm4kTs9kXyqG6N2QwCYHNPP4yubqgJS, publicKeyJwk={kty=EC, use=sig, crv=secp256k1, kid=vvDdKCl15we8gff3Oei7PbQoAoAAb_b9VVtK9uUDiuU, x=TEIJN9vnTq1EXMkqzo7yN_867-foKc2pREv45Fw_QA8, y=9yiymlzdxKCiRbYq7p-ArRB-C1ytjHE-eb7RDTi6rVc, alg=ES256K}}
	at foundation.identity.jsonld.JsonLDUtils.jsonLdGetString(JsonLDUtils.java:162)
	at foundation.identity.did.VerificationMethod.getController(VerificationMethod.java:140)
	at web5.sdk.dids.DidKeyTest$ResolveTest.resolving a secp256k1 DID works(DidKeyTest.kt:63)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at 

digging into the code a bit. it seems as if VerificationMethod requires a JSON-LD @context in order to access the controller property.

Is this intentional? I don't see context being a required property of a verification method in the DID spec.

Maybe i'm understanding incorrectly but, if context is required, i'm not sure how this library is expected to be used to build strongly typed DID documents for did methods that do not require verification methods to include @context

refine DID object

Some minor things that may help consumers:

  • ParserException should become a RuntimeException. Maybe renamed to DidParseException.
  • all except didReference should be transient?
  • the class itself should be annotated with @JsonSerialize(using = ToStringSerializer.class) to be compatible with rest layer.
  • equals method is broken return this.didReference.equals(obj); rather than something like return obj instanceof DID && (this.didReference.equals(((DID) obj).didReference));

VC supports?

HI @peacekeeper

I have some point to clear correct me if i am wrong

Create VC with proof using verifiable-credentials-java library
And create DID from the website which you given and add the DID while generating VC
By completing above steps can generate a proper VC that can verify or upload in third party wallet like dock ?? Is any steps missing ??

consolidate Java-based repositories

currently there are many different repositories:

  • verifiable-credentials-java
  • did-common-java
  • universal-resolver-java
  • http-did-auth-proxy
  • did-auth-relying-party

some hosted here, other somewhere else. It would be great to see those (some) efforts merged into a single repository with a multi-project setup. This to:

  • simplify playing around with the entire tool stack.
  • add documentation spanning all those closely related project (e.g. with asciidoc).
  • Maybe then also to publish the artifacts to jcenter.
  • let people star it in one place... :-)
  • aligned versioning to know what works together
  • add a build system like travis to verify the components

if there is an interest, I can also help with that.

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.