isomorphic-secp256k1-js
Advanced tools
Comparing version 2.0.5 to 3.0.0-rc.1
{ | ||
"name": "isomorphic-secp256k1-js", | ||
"version": "2.0.5", | ||
"version": "3.0.0-rc.1", | ||
"description": "An ultra lightweight (2 kbyte) pure JavaScript implimentation for the secp256k1 curve for node and browsers.", | ||
@@ -35,3 +35,3 @@ "repository": { | ||
"types": "tsc -p jsconfig.json", | ||
"tests": "coverage-node test/index.test.mjs", | ||
"tests": "ALLOW_MISSING_COVERAGE=1 coverage-node test/index.test.mjs", | ||
"test": "npm run eslint && npm run prettier && npm run types && npm run tests", | ||
@@ -38,0 +38,0 @@ "prepublishOnly": "npm test" |
@@ -97,3 +97,6 @@ ![secp256k1 logo](https://raw.githubusercontent.com/pur3miish/universal-ecdsa/master/static/secp256k1.svg) | ||
const data = Uint8Array.from([104, 101, 108, 108, 111]); | ||
const data = Uint8Array.from([ | ||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, | ||
22, 23, 24, 25, 26, 27, 28, 29, 30, 31, | ||
]); | ||
sign({ data, private_key }).then(console.log); | ||
@@ -116,3 +119,3 @@ ``` | ||
const key_pair = await recover_public_key({ | ||
data: Uint8Array.from([2, 33, 65, 233, 23, 23, 123, 244, 23, 23, 123, 244]), | ||
data, | ||
signature: { | ||
@@ -119,0 +122,0 @@ r: number_to_array( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17357
142
307
1