Socket
Socket
Sign inDemoInstall

eth-utils

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-utils - npm Package Compare versions

Comparing version 0.1.0-alpha.3 to 0.1.0-alpha.4

@types/bn.js/index.d.ts

9

index.d.ts
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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc