alepop / ed25519-hd-key

🔐 Key Derivation for ed25519
https://www.npmjs.com/package/ed25519-hd-key
MIT License
60 stars 28 forks source link

How to run this in the browser? #264

Open etale-cohomology opened 2 years ago

leoparis89 commented 1 year ago

Does anyone have a workaround ?

I'm getting


index.js:7 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'call')
    at Hmac.CipherBase (index.js:7:1)
    at new Hmac (browser.js:14:1)
    at createHmac (browser.js:61:1)
    at exports.getMasterKeyFromSeed (index.js:10:1)
    at exports.derivePath (index.js:55:1)
Nitish1Beejawat commented 1 year ago

Have anybody solved this? I am also facing this issue since past 2 days

alepop commented 1 year ago

Hi all! It's strange, because create-hmac library should be work in the browser.

Nitish1Beejawat commented 1 year ago

We are working on extension

Sylor-huang commented 10 months ago

I have the same problem, does anyone already know how to deal with? Thanks

image
Sylor-huang commented 10 months ago

When I use micro-ed25519-hdkey, it works ok.

alepop commented 10 months ago

As I understand problem is with create-hmac package dependency