-
Notifications
You must be signed in to change notification settings - Fork 15
Reuse identities across tests #13
Comments
I've made https://github.com/mkg20001/aegir-keycache which hopefully will fix some of the slowness caused by key generation (demo) (c&p from #12 (comment)) |
Not sure having a http endpoint is the right way, I want to avoid having to deal with ports and connections as much as possible. Also, more network requests = slower tests. I would like to see it as a module that you can point to a directory which keeps keys there. Directory structure would basically be directory name is the peer ID and the private key is a file inside that directory. |
@victorbjelkholm That would be all nice and good weren't it for the browsers. |
@mkg20001 the writes of keys would just happen once and be commited into SCM. Then later tests would just read the keys. |
I can't wait for us to move to x25519 crypto. Identity generation problems will be gone then. Private key is 32 bytes of random data and public key is hash and small transformation of that. EDIT: there was a type x29919 -> x25519 |
@Kubuxu Spec for x29919 crypto please! And what is "small transformation"? |
From IRC #ipfs-dev:
TLDR: We can generate X node identities, save them and have them ready to be used for tests so nodes can reuse identities instead of generating a new one (per node) for each test.
The text was updated successfully, but these errors were encountered: