forked from tornado-packages/noble-curves
8 lines
244 B
JavaScript
8 lines
244 B
JavaScript
|
export function generateData(curve) {
|
||
|
const priv = curve.utils.randomPrivateKey();
|
||
|
const pub = curve.getPublicKey(priv);
|
||
|
const msg = curve.utils.randomPrivateKey();
|
||
|
const sig = curve.sign(msg, priv);
|
||
|
return { priv, pub, msg, sig };
|
||
|
}
|