* Add toU8a conversions * Add u8a utilities * @polkadot/rlp with encoding * Decoding test runthrough * Update util locations * Convert util-triehash to use util-rlp * Allow keccak from Uint8Array * Pass Uint8Array to keccak input * Update documentation * Skip some doc generation * Update @polkadot/dev * Update doc typo * Update allocations * Retrieve tests from ethereumjs-testing * Simplify test retrieval * Exclude etereumjs-testing from flow
2.1 KiB
2.1 KiB
@polkadot/util
Various useful utility functions that are used across all projects in the @polkadot namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.
It is split up into a number of internal packages -
- packages/util General utilities
- packages/util-crypto Crypto and hashing utilities
- packages/util-rlp RLP encoding & decoding
- packages/util-triehash Calculation of trie hashes
Contributing
- Make sure you have Lerna installed,
yarn install -g lerna - Bootstrap the dependencies,
yarn - Make any changes in the relevant package, on master merges new versions will be published automatically