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

equivalent resolutions #1044

Open
fqutishat opened this issue Jan 26, 2022 · 0 comments
Open

equivalent resolutions #1044

fqutishat opened this issue Jan 26, 2022 · 0 comments
Assignees
Labels

Comments

@fqutishat
Copy link
Contributor

Step 1: Download orb cli binary.

Step 2: extract a tar.

  • darwin: tar -zxf orb-cli-darwin-amd64.tar.gz
  • linux: tar -zxf orb-cli-linux-amd64.tar.gz

Step 3: create DID public keys

  • create file called create_publickeys.json
  • copy this content to create_publickeys.json
[
 {
  "id": "key1",
  "type": "Ed25519VerificationKey2018",
  "purposes": ["authentication"],
  "jwkPath": "key1_jwk.json"
 }
]
  • create file called key1_jwk.json
  • copy this content to key1_jwk.json
{
  "kty":"OKP",
  "crv":"Ed25519",
  "x":"o1bG1U7G3CNbtALMafUiFOq8ODraTyVTmPtRDO1QUWg",
  "y":""
}

Step 4: create DID services

  • create file called create_services.json
  • copy this content to create_services.json
[
  {
    "id": "svc1",
    "type": "type1",
    "priority": 1,
    "routingKeys": ["key1"],
    "recipientKeys": ["key1"],
    "serviceEndpoint": "http://www.example.com"
  }
]

Step 5: create keypair this key will be used for updatekey

  • openssl ecparam -name prime256v1 -genkey -noout -out update_privatekey.pem
  • openssl ec -in update_privatekey.pem -pubout -out update_publickey.pem
  • you should have two files update_privatekey.pem update_publickey.pem

Step 6: create keypair this key will be used for recoverkey

  • openssl ecparam -name prime256v1 -genkey -noout -out recover_privatekey.pem
  • openssl ec -in recover_privatekey.pem -pubout -out recover_publickey.pem
  • you should have two files recover_privatekey.pem recover_publickey.pem

Step 7: create orb DID

./orb-cli-darwin-amd64 did create --domain=https://orb-1.sandbox.trustbloc.dev --publickey-file=./create_publickeys.json --service-file=./create_services.json --recoverykey-file=./recover_publickey.pem --updatekey-file=./update_publickey.pem --did-anchor-origin=https://orb-1.sandbox.trustbloc.dev --tls-systemcertpool=true --sidetree-write-token=#TOKEN

Note: replace #TOKEN with real token value

Step 7: resolve orb DID after publish with equivalent DIDs

curl https://orb-1.sandbox.trustbloc.dev/sidetree/v1/identifiers/#DID_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants