Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thinking about the broader spaces protocol operator ecosystem, a future entity that wants to provide a platform to service space owners would want the ability to require that a top-level space it indeed owned by the person claiming to own it.
This can be easily accomplished by providing a simple nostr event and asking the owner to sign it with their key.
space-cli signevent
The signed event could then be returned to the platform operator and verified with.
space-cli verifyevent
While this works in a rudimentary way, if the platform operator and/or the space owner wants to keep the line of communication open for future announcements and/or questions and/or billing/payment issues without actually knowing who each other are, it is cumbersome to continue using the space-cli subcommands.
This new subcommand exportspacensec behaves similar to exportwallet in that it creates a file with the exported content. In this case it is the nostr nsec and hex encoded format of the private key for that derivative path of that space.
This allows for easy Nostr client account setup and allows for monitoring of messages and using direct messages between the space owner and the platform operator.