Skip to content

Conversation

sloops77
Copy link

No description provided.

@sloops77
Copy link
Author

HI @xaviaracil!
We finally got around to adding VN Credential Kid resolution. I would appreceiate your feedback

@xaviaracil
Copy link
Contributor

This is good news @sloops77!
I'd extract the parameters of VelocityNetworkDidResolver to a configuration parameter so that we could set this public repository with empty values, and have 1EdTech's deployment with the right values. If you'd agree with it, I could perform the changes by myself

@sloops77 sloops77 force-pushed the feat/velocity-network-credential-did-resolution branch from d1df9e7 to 95db6fd Compare July 10, 2025 04:08
@@ -8,6 +8,11 @@
<version>1.3.7</version>
</parent>
<artifactId>inspector-vc</artifactId>

<properties>
<web3j.version>4.14.0</web3j.version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version throws some errors when compiling with the JDK 17:

[ERROR] class file has wrong version 65.0, should be 61.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.

I've tried to downgrade this version to 4.10.3, which has support for JDK 17, but then I got the error:

[ERROR] /Users/xavi/Developer/1EdTech/vc-public-validator/inspector-vc/src/main/java/org/velocitynetwork/contracts/VelocityNetworkMetadataRegistry.java:[546,51] cannot find symbol
symbol: class LinkReference
location: class org.web3j.tx.Contract

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved by downgrading it to 4.13.0

@@ -67,6 +68,21 @@ public class OB30Inspector extends VCInspector implements SubInspector {
protected final List<Probe<VerifiableCredential>> userProbes;
protected final String didResolutionUrl;

private Map<String, Map<String, String>> velocityNetworkConfigs = Map.of(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you ok to have these values hardwired here?


import java.util.List;

public class VelocityNetworkTests {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These hardwired data are test data, so it is ok to have it here. Am I right?

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

Successfully merging this pull request may close these issues.

2 participants