browserify / browserify/createHash

Uncaught TypeError: Cannot read properties of undefined (reading 'call') at Hash.CipherBase

Abierto
#30 1 comentario 2 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
53
Forks
37
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I am using this createHash package in my code. The problem is it works fine for the algorithms i.e. 'md5', 'rmd160' and 'ripemd160' however for the sha algorithms, I am getting the error:

const hash = createHash('sha256')
.update(entropyBuffer)
.digest();

Uncaught TypeError: Cannot read properties of undefined (reading 'call')
at Hash.CipherBase (index.js:7:1)
at new Hash (browser.js:9:1)
at createHash (browser.js:29:1)
at deriveChecksumBits (bip39.ts:90:1)
at entropyToMnemonic (bip39.ts:45:1)
at generateMnemonic (bip39.ts:17:1)
at Home.tsx:25:1
at IonLifeCycleContext.tsx:67:1
at Array.forEach ()
at DefaultIonLifeCycleContext.ionViewWillEnter

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start with browser.js at createHash and new Hash, then inspect index.js at the Hash.CipherBase failure. Reproduce the provided sha256 example and compare it with the working md5, rmd160, and ripemd160 algorithms. Done means SHA algorithms no longer throw this TypeError for the shown usage.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript
Área
web-dev
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.