The Enya SDK makes secure computation effortless and straightforward. To securely compute your first result, copy the following code:
import * as EnyaSMC from 'enyasmc';
/* Configure the SDK */
EnyaSMC.configure({
AccessToken: "ACCESSTOKEN",
Algorithm: "MySecretAlgorithm"
});
/* Pass the user data */
const answers = [1, 2, 3, 4];
EnyaSMC.input.apply(this, answers)
/* Compute a score */
EnyaSMC.Linear().then((function(result){
console.log(result)
}))
/* Successful output: {secure_result: score, status_code: 200} */
Visit Get Started to learn more.
Before computing, make sure to first configure your own algorithm.