browserify / browserify/createHash

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

オープン
#30 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
53
フォーク
37
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
web-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。