All Projects → ethereumjs → Ethereumjs Util

ethereumjs / Ethereumjs Util

Licence: mpl-2.0
Project is in active development and has been moved to the EthereumJS monorepo.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Ethereumjs Util

Util
A collection of useful utility functions
Stars: ✭ 201 (-62.36%)
Mutual labels:  hash, utilities
OrganizeMediaFiles
a collection of Python scripts that help you organize media files into a directory tree "year/month" based on metadata , using exiftool
Stars: ✭ 24 (-95.51%)
Mutual labels:  utilities, utils
Multisignaturewallet
311 byte EIP712 Signing Compliant Delegate-Call Enabled MultiSignature Wallet for the Ethereum Virtual Machine
Stars: ✭ 16 (-97%)
Mutual labels:  ethereum, signature
Stdlib
✨ Standard library for JavaScript and Node.js. ✨
Stars: ✭ 2,749 (+414.79%)
Mutual labels:  utilities, utils
bat
Battery management utility for Linux laptops.
Stars: ✭ 107 (-79.96%)
Mutual labels:  utilities, utils
Signature Base
Signature base for my scanner tools
Stars: ✭ 1,212 (+126.97%)
Mutual labels:  hash, signature
table2ascii
Python library for converting lists to fancy ASCII tables for displaying in the terminal and on Discord
Stars: ✭ 31 (-94.19%)
Mutual labels:  utilities, utils
Sassyfication
💅Library with sass mixins to speed up your css workflow.
Stars: ✭ 51 (-90.45%)
Mutual labels:  utilities, utils
type-predicates
A comprehensive collection of type-guards, type assertions and related utils
Stars: ✭ 44 (-91.76%)
Mutual labels:  utilities, utils
buffertools-php
Toolbox for working with binary and hex data. Similar to NodeJS Buffer.
Stars: ✭ 60 (-88.76%)
Mutual labels:  hex, buffer
Torchfunc
PyTorch functions and utilities to make your life easier
Stars: ✭ 177 (-66.85%)
Mutual labels:  utilities, utils
purescript-ffi-utils
A utility library for the purescript foreign function interface
Stars: ✭ 22 (-95.88%)
Mutual labels:  utilities, utils
Ramda Extension
🤘Utility library for functional JavaScript. With ❤️ to Ramda.
Stars: ✭ 139 (-73.97%)
Mutual labels:  utilities, utils
Loki
Loki - Simple IOC and Incident Response Scanner
Stars: ✭ 2,217 (+315.17%)
Mutual labels:  hash, signature
Schematics Utilities
🛠️ Useful exported utilities for working with Schematics
Stars: ✭ 73 (-86.33%)
Mutual labels:  utilities, utils
Node
Stampery API for NodeJS. Notarize all your data using the blockchain
Stars: ✭ 23 (-95.69%)
Mutual labels:  ethereum, hash
Ramda Adjunct
Ramda Adjunct is the most popular and most comprehensive set of functional utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
Stars: ✭ 550 (+3%)
Mutual labels:  utilities, utils
Utils
A collection of useful PHP functions, mini classes and snippets that you need and can use every day.
Stars: ✭ 750 (+40.45%)
Mutual labels:  utilities, utils
timestampy
🕒 Bunch of utilities useful when working with UNIX timestamps
Stars: ✭ 21 (-96.07%)
Mutual labels:  utilities, utils
utils.js
👷 🔧 zero dependencies vanilla JavaScript utils.
Stars: ✭ 14 (-97.38%)
Mutual labels:  hex, utils

SYNOPSIS

NPM Status Actions Status Coverage Status Discord

A collection of utility functions for Ethereum. It can be used in Node.js and in the browser with browserify.

INSTALL

npm install ethereumjs-util

USAGE

import assert from 'assert'
import { isValidChecksumAddress, unpadBuffer, BN } from 'ethereumjs-util'

const address = '0x2F015C60E0be116B1f0CD534704Db9c92118FB6A'
assert.ok(isValidChecksumAddress(address))

assert.equal(unpadBuffer(Buffer.from('000000006600', 'hex')), Buffer.from('6600', 'hex'))

assert.equal(new BN('dead', 16).add(new BN('101010', 2)), 57047)

API

Documentation

Modules

  • account
    • Account class
    • Private/public key and address-related functionality (creation, validation, conversion)
  • address
    • Address class and type
  • bytes
    • Byte-related helper and conversion functions
  • constants
    • Exposed constants
      • e.g. KECCAK256_NULL_S for string representation of Keccak-256 hash of null
  • hash
    • Hash functions
  • object
    • Helper function for creating a binary object (DEPRECATED)
  • signature
    • Signing, signature validation, conversion, recovery
  • types
    • Helpful TypeScript types
  • externals
    • Helper methods from ethjs-util
    • Re-exports of BN, rlp

ethjs-util methods

The following methods are available provided by ethjs-util:

  • arrayContainsArray
  • toBuffer
  • getBinarySize
  • stripHexPrefix
  • isHexPrefixed
  • isHexString
  • padToEven
  • intToHex
  • fromAscii
  • fromUtf8
  • toUtf8
  • toAscii
  • getKeys

They can be imported by name:

import { intToHex, stripHexPrefix } from 'ethereumjs-util'

Re-Exports

Additionally ethereumjs-util re-exports a few commonly-used libraries. These include:

EthereumJS

See our organizational documentation for an introduction to EthereumJS as well as information on current standards and best practices.

If you want to join for work or do improvements on the libraries have a look at our contribution guidelines.

LICENSE

MPL-2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].