sign.seedLength = crypto_sign_SEEDBYTES;\r
sign.signatureLength = crypto_sign_BYTES;\r
\r
- const verify = function(x, y) {\r
- checkArrayTypes(x, y);\r
- // Zero length arguments are considered not equal.\r
- if (x.length === 0 || y.length === 0) return false;\r
- if (x.length !== y.length) return false;\r
- return (vn(x, 0, y, 0, x.length) === 0) ? true : false;\r
- };\r
-\r
const setPRNG = function(fn) {\r
randombytes = fn;\r
};\r
}\r
})();\r
\r
- export { sign, verify }\r
+ export { sign }\r