UNPKG

@waku/rln

Version:

RLN (Rate Limiting Nullifier) implementation for Waku

9 lines (6 loc) 210 B
import sha3 from '../../../js-sha3/src/sha3.js'; import { arrayify } from '../../bytes/lib.esm/index.js'; function keccak256(data) { return '0x' + sha3.keccak_256(arrayify(data)); } export { keccak256 };