Skip to content

Endpoint generation API #10

@Kagami

Description

@Kagami

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions