Specification
#264 introduced our global agent which is used in our tests as a way to reduce setup time (since we no longer need to create an agent for every test). However, this solution complicates our tests by requiring all side effects to be reversed (some side effects cannot be undone, e.g. sigchain changes and some identities changes) and preventing tests that use the global agent from running in parallel.
An alternative solution is to have a pre-generated root private key that we can pass into the PolykeyAgent creation. This should sidestep the key generation process and speed up agent creation significantly.
Additional context
Tasks
Specification
#264 introduced our global agent which is used in our tests as a way to reduce setup time (since we no longer need to create an agent for every test). However, this solution complicates our tests by requiring all side effects to be reversed (some side effects cannot be undone, e.g. sigchain changes and some identities changes) and preventing tests that use the global agent from running in parallel.
An alternative solution is to have a pre-generated root private key that we can pass into the
PolykeyAgentcreation. This should sidestep the key generation process and speed up agent creation significantly.Additional context
Tasks
KeyManagergeneration to provide a root private key to skip root key-pair generation.PolykeyAgentparameterspk agent startandpk bootstrap. Including new parameter + ENV variable.tests/fixtures