RuiSiang / PoW-Shield

Found single char variable name JS-C1002
Anti-pattern
Minor
8 months ago8 months old
Variable name is too small
19}
20
21const hash = (nonce: Buffer, prefix: string) => {
22  const h = createHash('sha256')23  if (prefix) h.update(prefix, 'hex')
24  h.update(nonce)
25  return h.digest()