earthstar-project / earthstar

Storage for private, distributed, offline-first applications.
https://earthstar-project.org
GNU Lesser General Public License v3.0
623 stars 18 forks source link

IdentityKeypair + ShareKeypair secretKey property should be Base32 encoded string #343

Closed sgwilym closed 1 month ago

sgwilym commented 1 month ago

What's the problem you want solved?

The public interface for identity and share keypairs expose the secret key as a Uint8Array, which will need to be encoded to be useful in many situations.

Is there a solution you'd like to recommend?

The secretKey of IdentityKeypair and ShareKeypair should be changed to be a base32 encoded string to be more ergonomic (e.g. easily copied to the clipboard to be put into a password manager, or vice versa).