orbit-db-identity-provider icon indicating copy to clipboard operation
orbit-db-identity-provider copied to clipboard

Export Identity class

Open 640774n6 opened this issue 3 years ago • 1 comments

I have a need to be able to cache the signatures once an identity is initially created, and recreate the identity later without the user having to resign. It appears the only way to create an instance of the Identity class is by using Identities.createIdentity() which causes the IdentityProvider to sign the publicKey+id-signature.

Is there any reason why the Identity class can't be exported along with Identities and the providers? This would allow more flexibility for creating an identity using other methods.

Thanks!

640774n6 avatar Dec 16 '21 07:12 640774n6

Hi, the TallyLab Identity provider exposes the Identity class and you may find their provider interesting:

https://github.com/tallylab/tallylab-orbitdb-identity-provider

LucaPanofsky avatar Apr 20 '22 08:04 LucaPanofsky