šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

solidity-bits

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solidity-bits

[![Test](https://github.com/estarriolvetch/solidity-bits/actions/workflows/node.js.yml/badge.svg)](https://github.com/estarriolvetch/solidity-bits/actions/workflows/node.js.yml) [![Publish Package to npmjs](https://github.com/estarriolvetch/solidity-bits/

0.4.0
latest
npm
Version published
Weekly downloads
1.3K
39.6%
Maintainers
1
Weekly downloads
Ā 
Created
Source

solidity-bits

Test Publish Package to npmjs npm version

This library provides useful tools for bit tricks with solidity and gas-efficient data sturctures powered by these bit tricks.

  • BitScan: Powered by de Bruijn sequence, this library provides gas efficient functions to find the index of the least and most significant set bits. It can also be used for efficiently calculating the log2 of a value.
  • Popcount: Calculate the number of 1 bits of an unsigned integer.
  • BitMaps: A modified Openzeppelin's BitMaps library with additional functions to efficiently find the closest set bit.

Installaion

npm

npm install --save-dev solidity-bits

yarn

yarn add --dev solidity-bits

Projects powered by solidity-bits

Contributor

FAQs

Package last updated on 26 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts