You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Correct, cs2a and cs3a aren't updated to the newer e3x yet (perhaps next week, chunking/tcp first).
The telehash.generate is intended to be a simple/easy API that always does "use everything available", an app can always require the e3x modules directly and call their individual generate methods for special cases.
I definitely need to make another cleanup pass as you can see, there's still a lot of v2->v3 conversion work to do...
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 usese3x.generate
) API?One way is to require the same
e3x
library and add them mutuably to the list before calling thetelehash.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 sorequire
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.The text was updated successfully, but these errors were encountered: