ceramicstudio / self.id

Developer suite for decentralized user identity
https://self.id
Other
99 stars 32 forks source link

get internal DID instance for JOSE JWE JWS #47

Closed franleplant closed 2 years ago

franleplant commented 3 years ago

Description

I am trying to follow this tutorial https://blog.ceramic.network/how-to-store-signed-and-encrypted-data-on-ipfs/ to store JWE and JWS data into IPFS and I need to get the DID instance but my app is authenticated through self.ID and it looks like the DID instance is private.

How can I combine both techniques?

Technical Information

Maybe just explain / document what would be the "right" way of using these two techniques together or expose the DID instance out of the self.id instance.

PaulLeCam commented 2 years ago

The SelfID class exposes the internal did, which should cover this use-case: https://developers.ceramic.network/reference/self-id/classes/web.SelfID/#did