As for now only cs1a implements CS API mentioned in README. cs2a and cs3a don't export .generate function, so we can't add them to the supported ciphersets list.
Also, what is the best way for using cs2a and cs3a ciphersets via high-level telehash.generate (which uses e3x.generate) API?
One way is to require the same e3x library and add them mutuably to the list before calling the telehash.generate but it's very tricky and error-prone: we need to have the same library version at the top of the node dependency tree so require will return the same object.
Another is to require wanted cipherset and call it directly but what is the purpose of telehash.generate function then?
Another quirk: how can we choose cipherset to use? telehash.generate doesn't take such parameters.
As for now only cs1a implements CS API mentioned in README. cs2a and cs3a don't export
.generatefunction, so we can't add them to the supported ciphersets list.Also, what is the best way for using cs2a and cs3a ciphersets via high-level
telehash.generate(which usese3x.generate) API?One way is to require the same
e3xlibrary and add them mutuably to the list before calling thetelehash.generatebut it's very tricky and error-prone: we need to have the same library version at the top of the node dependency tree sorequirewill return the same object.Another is to require wanted cipherset and call it directly but what is the purpose of
telehash.generatefunction then?Another quirk: how can we choose cipherset to use?
telehash.generatedoesn't take such parameters.