atomic-server
atomic-server copied to clipboard
Make it easer for lib users to create a Default Agent
If you want to use resource.save(), the Store needs to have Some(Agent). In most examples I currently manually add this.
Some ideas:
- Create default Agent on
Storelike::init(). The easiest for the user, but how does the user know who this agent is, and what its private key is? It's not returned anywhere, so they need to know to useget_default_agent. - Add a
create_default_agentmethod. Seems pretty convenient. - Implement
::default, which callscreate_default_agent.