Comparing version 0.1.0-alpha.3 to 0.1.0-alpha.4
export * from "./address"; | ||
export * from "./bn"; | ||
export * from "./buffer"; | ||
export * from "./encryption"; | ||
export * from "./compare"; | ||
export * from "./crypto"; | ||
export * from "./ecdsa"; | ||
export * from "./ens"; | ||
export * from "./hex"; | ||
export * from "./keypair"; | ||
export * from "./personalMessage"; | ||
export * from "./units"; |
@@ -7,5 +7,10 @@ "use strict"; | ||
__export(require("./address")); | ||
__export(require("./bn")); | ||
__export(require("./buffer")); | ||
__export(require("./encryption")); | ||
__export(require("./compare")); | ||
__export(require("./crypto")); | ||
__export(require("./ecdsa")); | ||
__export(require("./ens")); | ||
__export(require("./hex")); | ||
__export(require("./keypair")); | ||
__export(require("./personalMessage")); | ||
__export(require("./units")); |
{ | ||
"name": "eth-utils", | ||
"version": "0.1.0-alpha.3", | ||
"description": "Ethereum Utils", | ||
"version": "0.1.0-alpha.4", | ||
"description": "Collection of ethereum utils", | ||
"author": { | ||
@@ -10,10 +10,18 @@ "name": "Stanislaw Glogowski", | ||
"license": "MIT", | ||
"main": "./index.js", | ||
"types": "./index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/stanislaw-glogowski/eth-utils.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/stanislaw-glogowski/eth-utils/issues" | ||
}, | ||
"dependencies": { | ||
"bignumber.js": "^7.2.1", | ||
"buffer": "^5.1.0", | ||
"bn.js": "^4.11.8", | ||
"idna-uts46-hx": "^2.3.1", | ||
"keccak": "^1.4.0", | ||
"secp256k1": "^3.5.0" | ||
} | ||
"secp256k1": "^3.5.2", | ||
"unorm": "^1.4.1" | ||
}, | ||
"main": "./index.js", | ||
"types": "./index.d.ts" | ||
} |
@@ -5,5 +5,4 @@ # ETH Utils | ||
Ethereum Utils | ||
Collection of ethereum utils | ||
**WARNING!** This is experimental library, don't use it on production. | ||
@@ -19,36 +18,16 @@ | ||
### Address | ||
(COMING SOON) | ||
* `verifyAddress(value: string, caseSensitivity?: boolean): boolean` | ||
* `prepareAddress(value: string, caseSensitivity?: boolean): string` | ||
* `publicKeyToAddress(publicKey: Buffer, caseSensitivity: boolean = false): string` | ||
## Testing | ||
### Buffer | ||
```bash | ||
$ npm test | ||
``` | ||
* `anyToBuffer(value: any, options?: { size?: number; defaults?: Buffer;}): Buffer` | ||
## License | ||
The MIT License | ||
### Encryption | ||
* `sha3(...data: Buffer[]): Buffer`; | ||
### Hex | ||
* `anyToHexValue(value: any, options?: { add0x?: boolean; defaults?: string;}): string` | ||
* `prepareHexValue(value: any, add0x?: boolean): string` | ||
* `verifyHexValue(value: any, prepare?: boolean): boolean` | ||
### Key Pair | ||
* `verifyPrivateKey(privateKey: Buffer): boolean` | ||
* `verifyPublicKey(publicKey: Buffer): boolean` | ||
* `preparePublicKey(publicKey: Buffer): Buffer` | ||
* `randomPrivateKey(): Buffer` | ||
* `privateToPublicKey(privateKey: Buffer): Buffer` | ||
[npm-image]: https://badge.fury.io/js/eth-utils.svg | ||
[npm-url]: https://npmjs.org/package/eth-utils | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
27841
64
806
1
0
5
32
1
+ Addedbn.js@^4.11.8
+ Addedidna-uts46-hx@^2.3.1
+ Addedunorm@^1.4.1
+ Addedidna-uts46-hx@2.3.1(transitive)
+ Addedpunycode@2.1.0(transitive)
+ Addedunorm@1.6.0(transitive)
- Removedbignumber.js@^7.2.1
- Removedbuffer@^5.1.0
- Removedbase64-js@1.5.1(transitive)
- Removedbignumber.js@7.2.1(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedieee754@1.2.1(transitive)
Updatedsecp256k1@^3.5.2