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

Issues using Ebsi driver's update function #39

Open
zennur opened this issue Nov 17, 2021 · 2 comments
Open

Issues using Ebsi driver's update function #39

zennur opened this issue Nov 17, 2021 · 2 comments

Comments

@zennur
Copy link

zennur commented Nov 17, 2021

Hi,

I am having issues using the update function of ebsi driver.

Since, there is not much documentation on Ebsi, I thought I can ask from here.
I'm able to create an ebsi did, which also returns a private key curve. When I try to use that private key for updating the did document, it gives an error saying "invalid hexlify value".

I'm definitely sure that I need to change the form of the private key somehow, but I don't know to which encoding.

Could you let me know?

Kindest regards

@azuzi
Copy link
Member

azuzi commented Nov 17, 2021

@zennur seems like an issue with the driver. We will fix it asap.
In the meantime, the required params look as follows.

{
  "secret": {
    "token": "......",
    "privateKey": {
        "kty": "EC",
        "crv": "secp256k1",
        "x": "Cq-JZGojY3Yx44qj3qx2Zor6alK08OZkvJ0YxOF-J0Q",
        "y": "PwXUpi3GZjJhJK395O1Muxj6Bnl3ZCmLQxi5Ccmc71o",
        "d": "eLbfm3XUCiqRnoTuy2ynn-Hp_28nBxlN-2zmGVs8FJU",
        "kid": "did:ebsi:zs2ZdGQwbM9H9ZcFV9CMjqU#keys-1"
      }
  }
 "didDocument":{..new_Did_Doc...}
 "identifier":"did:ebsi:xxxx"
 "options": {
  }
}

Or else privateKey can be in hex-encoded as follows:

"secret": {
    "token": "......",
    "privateKey": "............"
  }

@zennur
Copy link
Author

zennur commented Nov 18, 2021

Thank you for the answer @azuzi .
I guess the status code 500 error is due to the driver problem then?

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