mpc-crypto-test
v1.0.3
Published
``` import { generate, sign } from 'mpc-crypto-test'; const dataKey = generate(); console.log("Generate shard and recover key"); console.log(dataKey);
Downloads
8
Readme
example
import { generate, sign } from 'mpc-crypto-test';
const dataKey = generate();
console.log("Generate shard and recover key");
console.log(dataKey);
const shards = [{
"x": "1",
"y": "<y-component>"
},
{
"x": "2",
"y": "<y-component>"
},
{
"x": "3",
"y": "<y-component>"
}
];
const recoveryKey = "recovery-key";
const data = "sample data";
const signedData = sign(data, shards, recoveryKey);
console.log("Sign transaction");
console.log(signedData);