micro-eth-signer
Advanced tools
Comparing version 0.4.7 to 0.4.8
@@ -396,3 +396,3 @@ "use strict"; | ||
recovered: true, | ||
extraEntropy: extraEntropy === false ? undefined : true | ||
extraEntropy: extraEntropy === false ? undefined : true, | ||
}); | ||
@@ -399,0 +399,0 @@ const signature = secp256k1.Signature.fromHex(hex); |
{ | ||
"name": "micro-eth-signer", | ||
"version": "0.4.7", | ||
"description": "Create, sign and validate Ethereum transactions & addresses with minimum deps. Supports London & Berlin txs", | ||
"version": "0.4.8", | ||
"description": "Create, sign and validate Ethereum transactions & addresses with minimum deps. Supports EIP1559", | ||
"main": "index.js", | ||
@@ -12,2 +12,3 @@ "files": [ | ||
"build": "tsc -d && rollup -c rollup.config.js", | ||
"bench": "node test/benchmark.js", | ||
"lint": "prettier --print-width 100 --single-quote --check index.ts", | ||
@@ -44,14 +45,15 @@ "test": "node test/test.js" | ||
"dependencies": { | ||
"@noble/hashes": "~1.0.0", | ||
"@noble/secp256k1": "~1.5.2", | ||
"@noble/hashes": "~1.1.0", | ||
"@noble/secp256k1": "~1.6.0", | ||
"rlp": "3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^17.1.0", | ||
"@rollup/plugin-node-resolve": "^11.2.0", | ||
"micro-should": "^0.1.4", | ||
"prettier": "^2.2.1", | ||
"rollup": "^2.42.4", | ||
"typescript": "^4.5.3" | ||
"@rollup/plugin-commonjs": "22.0.0", | ||
"@rollup/plugin-node-resolve": "13.3.0", | ||
"micro-bmark": "0.1.3", | ||
"micro-should": "0.1.4", | ||
"prettier": "2.6.2", | ||
"rollup": "2.75.5", | ||
"typescript": "4.7.3" | ||
} | ||
} |
@@ -23,4 +23,7 @@ # micro-eth-signer | ||
value: 10n ** 18n, // 1 eth in wei | ||
nonce: 1 | ||
nonce: 1, | ||
maxPriorityFeePerGas: 0, | ||
chainId: 1 | ||
}); | ||
const privateKey = '6b911fd37cdf5c81d4c0adb1ab7fa822ed253ab0ad9aa18d77257c88b29b718e'; | ||
@@ -148,2 +151,10 @@ const signedTx = await tx.sign(privateKey); // Uint8Array is also accepted | ||
## Performance | ||
Transaction signature matches `noble-secp256k1` `sign()` speed, which means over 4000 times per second on M1 Mac. | ||
The first call of `sign` will take 20ms+ due to noble-secp256k1 `utils.precompute`. | ||
To run benchmarks, execute `npm run bench`. | ||
## License | ||
@@ -150,0 +161,0 @@ |
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
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
29758
163
7
+ Added@noble/hashes@1.1.5(transitive)
+ Added@noble/secp256k1@1.6.3(transitive)
- Removed@noble/hashes@1.0.0(transitive)
- Removed@noble/secp256k1@1.5.5(transitive)
Updated@noble/hashes@~1.1.0
Updated@noble/secp256k1@~1.6.0