Uncaught TypeError: Cannot read properties of undefined (reading 'call') at Hash.CipherBase
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- web-dev
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- JavaScript
- Stars
- 53
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from browserify/createHash
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
browserify/createHash#29 · 3 comments · 6 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
browserify/createHash#28 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
browserify/createHash#27 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
browserify/createHash#26 · 5 comments · 6 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
browserify/createHash#20 · 8 comments · 1 reaction ·
All issues in browserify/createHash
Similar issues
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AllTheMods/ATM-10-L#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SignalK/n2k-signalk#345 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
JuliaPluto/PlutoPlotly.jl#72 ·