UNPKG

@waku/rln

Version:

RLN (Rate Limiting Nullifier) implementation for Waku

9 lines (6 loc) 203 B
import { keccak256 } from '../../keccak256/lib.esm/index.js'; import { toUtf8Bytes } from '../../strings/lib.esm/utf8.js'; function id(text) { return keccak256(toUtf8Bytes(text)); } export { id };