earthstar-project / earthstar

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

Check addresses #236

Closed sgwilym closed 2 years ago

sgwilym commented 2 years ago

What's the problem you solved?

It was possible to instantiate Replicas with invalid share addresses.

What solution are you recommending?

I have made it so that Replicas now throw a validation error when being constructed with an invalid share address. It is still possible to create ReplicaDrivers with invalid addresses, but I want to address how addresses are provided to drivers at another time so that they do not need to be provided twice.