You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is to say I think it would make a lot more sense if we wrote JSON.serialize(signer.toArchive()) into secrets and then read loaded it with Signer.from(JSON.parse(secret)).
Also note that this would remove need for signer.withDID(did) dance as long as what we stored in secrets is ed25519.parse('...').withDID(did)
P.S. Only reason toArchive does not return bytes or a string today is because in browsers we won't be able to serialize non-extractible keys, yet we could store object containing them into indexedDB.
Context: #15 (comment)