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

Remove references to retired APIs #66

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,8 @@ The `anchor` function is used to submit an ION operation for anchoring with an I

1. `REQUEST_BODY` - Object, *required*
2. `OPTIONS` - Object, *optional*: An object for passing the following options used in the resolution request:
- `challengeEndpoint` - URI String, *optional*: URI of the challenge endpoint for the ION node you are submitting to.
- `solutionEndpoint` - URI String, *optional*: URI of the solution endpoint for the ION node you are submitting your completed challenge to.

> NOTE: Endpoint URIs will default to `https://beta.ion.msidentity.com` if not supplied
- `challengeEndpoint` - URI String, *required*: URI of the challenge endpoint for the ION node you are submitting to.
- `solutionEndpoint` - URI String, *required*: URI of the solution endpoint for the ION node you are submitting your completed challenge to.

```javascript
const did = new DID();
Expand Down
3 changes: 1 addition & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ export async function resolve(didUri, options = { }) {

export async function anchor(anchorRequest, options = { }) {
const {
challengeEndpoint = 'https://beta.ion.msidentity.com/api/v1.0/proof-of-work-challenge',
solutionEndpoint = 'https://beta.ion.msidentity.com/api/v1.0/operations'
challengeEndpoint, solutionEndpoint
} = options;

return ProofOfWorkSDK.submitIonRequest(challengeEndpoint, solutionEndpoint, JSON.stringify(anchorRequest));
Expand Down