TBD54566975 / web5-wallet

A reference implementation of a web5 wallet in react native
Apache License 2.0
13 stars 8 forks source link

adding portable did to keychain #184

Closed nitro-neal closed 7 months ago

nitro-neal commented 7 months ago

As we create the identity manager, we build it with a portable did, and save this portable did to keychain

  const portableDid: PortableDid = await DidIonMethod.create(didOptions);
  await setItemAsync(name, JSON.stringify(portableDid));

  const identity = await agent.identityManager.create({
    did: portableDid,
    name,
    kms
  });

the reason we do this is so we can access it later for creating vcs and signing