iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.41k stars 1.42k forks source link

wtf is this function #565

Closed Bleizgwenn closed 2 years ago

Bleizgwenn commented 2 years ago

Hey ! i'm trying to understand all the code but at line :183 in src/index.js i see a function named ".toSeed(arg, arg)". i searched but i never see this function defined, anybody to help me ? (sorry for my english, i tried by my best)

cryptopivot commented 2 years ago

Don't do it man, don't do it! lol.

wigy-opensource-developer commented 2 years ago

I guess the WTF was what started this thread rolling down the hill.

ralphtheninja commented 2 years ago

Hey ! i'm trying to understand all the code but at line :183 in src/index.js i see a function named ".toSeed(arg, arg)". i searched but i never see this function defined, anybody to help me ? (sorry for my english, i tried by my best)

I don't know where you are looking, there isn't any function named .toSeed() on that line, but there's one on line 697 https://github.com/iancoleman/bip39/blob/master/src/js/index.js#L697 , which is a member function of the Mnemonic class and implemented here https://github.com/iancoleman/bip39/blob/master/src/js/jsbip39.js#L141-L152

Bleizgwenn commented 2 years ago

thank you so much and sorry for the wtf haha, i found what i need