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

if challengeEndpoint is not defined, the solution endpoint defaults to microsoft API #11

Open
lemoustachiste opened this issue Jul 12, 2021 · 4 comments

Comments

@lemoustachiste
Copy link

As per https://github.com/decentralized-identity/ion-tools/blob/main/ion.js/lib.js#L96, one cannot specify only one of the endpoints otherwise they both are reset to the default microsoft endpoints.

Subsequently, why is the challenge endpoint not available locally? Or did I miss it?

@csuwildcat
Copy link
Member

@lemoustachiste the challenge and the submission must be from the same ION node instance (because they are linked request/response endpoints that have data shared between them). For this reason, you can't take a challenge from one place and submit it somewhere else, because the server you are submitting to is the one that you need to satisfy the POW challenge for.

@lemoustachiste
Copy link
Author

Thanks for your reply, I get the logic behind it.
However it seems I didn't have the challenge endpoint on my local node?

@csuwildcat
Copy link
Member

@lemoustachiste yes, we didn't add the POW challenge setup to the node's code (it's just a thing we needed at Microsoft for ours) because we didn't think people would really be running open write nodes like we are (we also didn't have the time to generalize it as a contribution). Is this needed for your uses? We can think about landing that here, if there's a strong community desire.

@lemoustachiste
Copy link
Author

@csuwildcat it's too early for me to know exactly what we'll need since I'm still at PoC stage. I think we have a catch up today so we can discuss that then. I guess it all boils down to if you want to maintain an endpoint for consumers to reach or, if consumers are going to run a node anyway, they might as be autonomous all the way through.

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