magic-wormhole / magic-wormhole-protocols

The documentation of the protocols powering Magic Wormhole
MIT License
26 stars 12 forks source link

Spec for nameplates and passwords #43

Open felinira opened 1 week ago

felinira commented 1 week ago

We should move towards specifying something about how we expect nameplates and passwords to look like.

We have this open, which should be specified here: https://github.com/magic-wormhole/magic-wormhole-mailbox-server/issues/45

And then I was wondering about passwords. Are there any requirements or limitations on valid passwords? Considering these need to be interoperable this might make sense. For example, should spaces be allowed? Invisible characters?

I don't want to overly limit ourselves here (emoji are for example a fun alternative to passwords), but some sort of specification would be good to improve things like regex detection of codes.

If we come to the conclusion that passwords can be anything, it would at least make sense to add this to the spec.

meejah commented 1 week ago

Some thoughts:

There are some concrete use-cases to consider as well: