How to use keccak256 - 1 common examples

To help you get started, we’ve selected a few keccak256 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github unstoppabledomains / resolution / src / utils / contract.ts View on Github external
private fourBytesHash(method: string): FourBytes {
    return '0x' + keccak256(method).toString('hex').slice(0,8);
  }

keccak256

A wrapper for the keccak library to compute 256 bit keccak hash in JavaScript

MIT
Latest version published 3 years ago

Package Health Score

50 / 100
Full package analysis

Popular keccak256 functions