Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the client and server implementation into separate exports #4

Open
stevendesu opened this issue Mar 23, 2021 · 1 comment
Open

Comments

@stevendesu
Copy link
Contributor

My client-side code shouldn't need the server-side validation logic in it. It should be possible to say:

import { clientRegister, clientAuthenticate } from "@nthparty/opaque"; // ES6 / TypeScript

// or:

const clientRegister = require("@nthparty/opaque/clientRegister");
const clientAuthenticate = require("@nthparty/opaque/clientAuthenticate");

// alternatively:

const OPAQUE = require("@nthparty/opaque/client");
const clientRegister = OPAQUE.clientRegister;
const clientAuthenticate = OPAQUE.clientAuthenticate;

This way you only import what you need

@yw662
Copy link

yw662 commented Jul 12, 2021

I totally agree that the client side and server side implementation should be splitted so that they don't need to include each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants