Generates an Ed25519 key pair, writes the secret half to path, and returns
the public half in the form registry() takes. The seed comes from the
operating system's cryptographic random source, not from R's generator,
whose stream is reproducible by design.
Details
The secret file is the one thing in this package that must not be published. It is written with owner-only permissions where the platform has them, and belongs outside the package source tree so that no build can sweep it up.