ethers-io / ethers.js

Complete Ethereum library and wallet implementation in JavaScript.
https://ethers.org/
MIT License
7.8k stars 1.8k forks source link

Error: BIP39 Wordlist for en FAILED #4460

Open pdcolandrea opened 8 months ago

pdcolandrea commented 8 months ago

Ethers Version

6.8.1

Search Terms

wordList, word-list, undefined

Describe the Problem

Following the update of my react-native application to ethers.js version 6, I am encountering an issue where wallet generation from mnemonics is not functioning as expected; to make it even more weird - the behavior seems to be isolated to Android. With no way to pass in a wordlist; not sure where to go from here.

Seems like the library isn't able to find the wordlist? I wish I could debug more; unfamiliar with rebuilding/rollup

Code Snippet

async generate(): Promise<void> {
    const buf = await randomBytes(16);

    // generate mnemonic 
    this.secret = bip39.entropyToMnemonic(buf.toString("hex"));

    // attempt to connect provider to new wallet instance
    this.walletProv = new AnkrProvider(ETH_TESTING, API_KEY);
    this.walletObj = Wallet.fromPhrase(this.secret, this.provider);
  }

Contract ABI

No response

Errors

Error: BIP39 Wordlist for en FAILED

Environment

React Native/Expo/JavaScriptCore

Environment (Other)

react-native: 0.66.4

ricmoo commented 8 months ago

That indicates that the wordlist after reconstruction failed its checksum validation; which, when I added it I thought may be overkill, but glad to see it saved someone.

Could you add console.log to the wordlist-en.js, possibly, to dump out the result of the list before it is passed to the keccak256?

I can’t imagine what non-standard thing that version of Android could be doing to the English wordset…

pdcolandrea commented 8 months ago

That indicates that the wordlist after reconstruction failed its checksum validation; which, when I added it I thought may be overkill, but glad to see it saved _some_one.

Could you add console.log to the wordlist-en.js, possibly, to dump out the result of the list before it is passed to the keccak256?

I can’t imagine what non-standard thing that version of Android could be doing to the English wordset…

I suppose you mean wordlists/lang-en.js? Apologize for my confusion; still acclimating to the v6 file structure layout. Is it possible to implement these debugging steps directly within the node_modules, or is it recommended to clone the repository for such modifications in-order to rebuild & see the changes? Thanks again for the prompt response.

ricmoo commented 8 months ago

Oh yes, sorry, you’re correct, lang-en.js.

Yes, you can modify the node_modules/ directly. I just need the output of joining the words with the "\n". :)

pdcolandrea commented 8 months ago

Hmm - if that's the case; let me verify something more funky isn't happening on my side. Applying changes to ethers/src.ts/wallet/wallet.ts has no effect. Gave /ethers/dist/ether.js a shot and it ALSO reflected none of the added console logs.

EDIT: ahh -- the /commonjs changes do reflect

ricmoo commented 8 months ago

It will depend on your build process which it uses, the lib.commonjs/ or /lib.esm/. :)

pdcolandrea commented 7 months ago

I've added a console.log to both hdwallet.js as well as lang-en.js. Both seemed to print out { "locale": "en" }

I'm guessing that's not what you were after. Again, apologize if I'm missing something obvious here.

ricmoo commented 7 months ago

Sorry, looking at it, you would need a bit more intimate knowledge of how the ethers compression and inheritance works; more than any rational human should. ;)

At the equivalent line in your JavaScript can you add here the line console.log(words.join("\n").

This should get triggered the first time you try using the English words (which are lazy and only loaded on their first usage).

pdcolandrea commented 7 months ago

To make things more interesting -- looks like a valid bip39 list to me

Output

``` abandon ability able about above absent absorb abstract absurd abuse access accident account accuse achieve acid acoustic acquire across act action actor actress actual adapt add addict address adjust admit adult advance advice aerobic affair afford afraid again age agent agree ahead aim air airport aisle alarm album alcohol alert alien all alley allow almost alone alpha already also alter always amateur amazing among amount amused analyst anchor ancient anger angle angry animal ankle announce annual another answer antenna antique anxiety any apart apology appear apple approve april arch arctic area arena argue arm armed armor army around arrange arrest arrive arrow art artefact artist artwork ask aspect assault asset assist assume asthma athlete atom attack attend attitude attract auction audit august aunt author auto autumn average avocado avoid awake aware away awesome awful awkward axis baby bachelor bacon badge bag balance balcony ball bamboo banana banner bar barely bargain barrel base basic basket battle beach bean beauty because become beef before begin behave behind believe below belt bench benefit best betray better between beyond bicycle bid bike bind biology bird birth bitter black blade blame blanket blast bleak bless blind blood blossom blouse blue blur blush board boat body boil bomb bone bonus book boost border boring borrow boss bottom bounce box boy bracket brain brand brass brave bread breeze brick bridge brief bright bring brisk broccoli broken bronze broom brother brown brush bubble buddy budget buffalo build bulb bulk bullet bundle bunker burden burger burst bus business busy butter buyer buzz cabbage cabin cable cactus cage cake call calm camera camp can canal cancel candy cannon canoe canvas canyon capable capital captain car carbon card cargo carpet carry cart case cash casino castle casual cat catalog catch category cattle caught cause caution cave ceiling celery cement census century cereal certain chair chalk champion change chaos chapter charge chase chat cheap check cheese chef cherry chest chicken chief child chimney choice choose chronic chuckle chunk churn cigar cinnamon circle citizen city civil claim clap clarify claw clay clean clerk clever click client cliff climb clinic clip clock clog close cloth cloud clown club clump cluster clutch coach coast coconut code coffee coil coin collect color column combine come comfort comic common company concert conduct confirm congress connect consider control convince cook cool copper copy coral core corn correct cost cotton couch country couple course cousin cover coyote crack cradle craft cram crane crash crater crawl crazy cream credit creek crew cricket crime crisp critic crop cross crouch crowd crucial cruel cruise crumble crunch crush cry crystal cube culture cup cupboard curious current curtain curve cushion custom cute cycle dad damage damp dance danger daring dash daughter dawn day deal debate debris decade december decide decline decorate decrease deer defense define defy degree delay deliver demand demise denial dentist deny depart depend deposit depth deputy derive describe desert design desk despair destroy detail detect develop device devote diagram dial diamond diary dice diesel diet differ digital dignity dilemma dinner dinosaur direct dirt disagree discover disease dish dismiss disorder display distance divert divide divorce dizzy doctor document dog doll dolphin domain donate donkey donor door dose double dove draft dragon drama drastic draw dream dress drift drill drink drip drive drop drum dry duck dumb dune during dust dutch duty dwarf dynamic eager eagle early earn earth easily east easy echo ecology economy edge edit educate effort egg eight either elbow elder electric elegant element elephant elevator elite else embark embody embrace emerge emotion employ empower empty enable enact end endless endorse enemy energy enforce engage engine enhance enjoy enlist enough enrich enroll ensure enter entire entry envelope episode equal equip era erase erode erosion error erupt escape essay essence estate eternal ethics evidence evil evoke evolve exact example excess exchange excite exclude excuse execute exercise exhaust exhibit exile exist exit exotic expand expect expire explain expose express extend extra eye eyebrow fabric face faculty fade faint faith fall false fame family famous fan fancy fantasy farm fashion fat fatal father fatigue fault favorite feature february federal fee feed feel female fence festival fetch fever few fiber fiction field figure file film filter final find fine finger finish fire firm first fiscal fish fit fitness fix flag flame flash flat flavor flee flight flip float flock floor flower fluid flush fly foam focus fog foil fold follow food foot force forest forget fork fortune forum forward fossil foster found fox fragile frame frequent fresh friend fringe frog front frost frown frozen fruit fuel fun funny furnace fury future gadget gain galaxy gallery game gap garage garbage garden garlic garment gas gasp gate gather gauge gaze general genius genre gentle genuine gesture ghost giant gift giggle ginger giraffe girl give glad glance glare glass glide glimpse globe gloom glory glove glow glue goat goddess gold good goose gorilla gospel gossip govern gown grab grace grain grant grape grass gravity great green grid grief grit grocery group grow grunt guard guess guide guilt guitar gun gym habit hair half hammer hamster hand happy harbor hard harsh harvest hat have hawk hazard head health heart heavy hedgehog height hello helmet help hen hero hidden high hill hint hip hire history hobby hockey hold hole holiday hollow home honey hood hope horn horror horse hospital host hotel hour hover hub huge human humble humor hundred hungry hunt hurdle hurry hurt husband hybrid ice icon idea identify idle ignore ill illegal illness image imitate immense immune impact impose improve impulse inch include income increase index indicate indoor industry infant inflict inform inhale inherit initial inject injury inmate inner innocent input inquiry insane insect inside inspire install intact interest into invest invite involve iron island isolate issue item ivory jacket jaguar jar jazz jealous jeans jelly jewel job join joke journey joy judge juice jump jungle junior junk just kangaroo keen keep ketchup key kick kid kidney kind kingdom kiss kit kitchen kite kitten kiwi knee knife knock know lab label labor ladder lady lake lamp language laptop large later latin laugh laundry lava law lawn lawsuit layer lazy leader leaf learn leave lecture left leg legal legend leisure lemon lend length lens leopard lesson letter level liar liberty library license life lift light like limb limit link lion liquid list little live lizard load loan lobster local lock logic lonely long loop lottery loud lounge love loyal lucky luggage lumber lunar lunch luxury lyrics machine mad magic magnet maid mail main major make mammal man manage mandate mango mansion manual maple marble march margin marine market marriage mask mass master match material math matrix matter maximum maze meadow mean measure meat mechanic medal media melody melt member memory mention menu mercy merge merit merry mesh message metal method middle midnight milk million mimic mind minimum minor minute miracle mirror misery miss mistake mix mixed mixture mobile model modify mom moment monitor monkey monster month moon moral more morning mosquito mother motion motor mountain mouse move movie much muffin mule multiply muscle museum mushroom music must mutual myself mystery myth naive name napkin narrow nasty nation nature near neck need negative neglect neither nephew nerve nest net network neutral never news next nice night noble noise nominee noodle normal north nose notable note nothing notice novel now nuclear number nurse nut oak obey object oblige obscure observe obtain obvious occur ocean october odor off offer office often oil okay old olive olympic omit once one onion online only open opera opinion oppose option orange orbit orchard order ordinary organ orient original orphan ostrich other outdoor outer output outside oval oven over own owner oxygen oyster ozone pact paddle page pair palace palm panda panel panic panther paper parade parent park parrot party pass patch path patient patrol pattern pause pave payment peace peanut pear peasant pelican pen penalty pencil people pepper perfect permit person pet phone photo phrase physical piano picnic picture piece pig pigeon pill pilot pink pioneer pipe pistol pitch pizza place planet plastic plate play please pledge pluck plug plunge poem poet point polar pole police pond pony pool popular portion position possible post potato pottery poverty powder power practice praise predict prefer prepare present pretty prevent price pride primary print priority prison private prize problem process produce profit program project promote proof property prosper protect proud provide public pudding pull pulp pulse pumpkin punch pupil puppy purchase purity purpose purse push put puzzle pyramid quality quantum quarter question quick quit quiz quote rabbit raccoon race rack radar radio rail rain raise rally ramp ranch random range rapid rare rate rather raven raw razor ready real reason rebel rebuild recall receive recipe record recycle reduce reflect reform refuse region regret regular reject relax release relief rely remain remember remind remove render renew rent reopen repair repeat replace report require rescue resemble resist resource response result retire retreat return reunion reveal review reward rhythm rib ribbon rice rich ride ridge rifle right rigid ring riot ripple risk ritual rival river road roast robot robust rocket romance roof rookie room rose rotate rough round route royal rubber rude rug rule run runway rural sad saddle sadness safe sail salad salmon salon salt salute same sample sand satisfy satoshi sauce sausage save say scale scan scare scatter scene scheme school science scissors scorpion scout scrap screen script scrub sea search season seat second secret section security seed seek segment select sell seminar senior sense sentence series service session settle setup seven shadow shaft shallow share shed shell sheriff shield shift shine ship shiver shock shoe shoot shop short shoulder shove shrimp shrug shuffle shy sibling sick side siege sight sign silent silk silly silver similar simple since sing siren sister situate six size skate sketch ski skill skin skirt skull slab slam sleep slender slice slide slight slim slogan slot slow slush small smart smile smoke smooth snack snake snap sniff snow soap soccer social sock soda soft solar soldier solid solution solve someone song soon sorry sort soul sound soup source south space spare spatial spawn speak special speed spell spend sphere spice spider spike spin spirit split spoil sponsor spoon sport spot spray spread spring spy square squeeze squirrel stable stadium staff stage stairs stamp stand start state stay steak steel stem step stereo stick still sting stock stomach stone stool story stove strategy street strike strong struggle student stuff stumble style subject submit subway success such sudden suffer sugar suggest suit summer sun sunny sunset super supply supreme sure surface surge surprise surround survey suspect sustain swallow swamp swap swarm swear sweet swift swim swing switch sword symbol symptom syrup system table tackle tag tail talent talk tank tape target task taste tattoo taxi teach team tell ten tenant tennis tent term test text thank that theme then theory there they thing this thought three thrive throw thumb thunder ticket tide tiger tilt timber time tiny tip tired tissue title toast tobacco today toddler toe together toilet token tomato tomorrow tone tongue tonight tool tooth top topic topple torch tornado tortoise toss total tourist toward tower town toy track trade traffic tragic train transfer trap trash travel tray treat tree trend trial tribe trick trigger trim trip trophy trouble truck true truly trumpet trust truth try tube tuition tumble tuna tunnel turkey turn turtle twelve twenty twice twin twist two type typical ugly umbrella unable unaware uncle uncover under undo unfair unfold unhappy uniform unique unit universe unknown unlock until unusual unveil update upgrade uphold upon upper upset urban urge usage use used useful useless usual utility vacant vacuum vague valid valley valve van vanish vapor various vast vault vehicle velvet vendor venture venue verb verify version very vessel veteran viable vibrant vicious victory video view village vintage violin virtual virus visa visit visual vital vivid vocal voice void volcano volume vote voyage wage wagon wait walk wall walnut want warfare warm warrior wash wasp waste water wave way wealth weapon wear weasel weather web wedding weekend weird welcome west wet whale what wheat wheel when where whip whisper wide width wife wild will win window wine wing wink winner winter wire wisdom wise wish witness wolf woman wonder wood wool word work world worry worth wrap wreck wrestle wrist write wrong yard year yellow you young youth zebra zero zone zoo ```

When comparing vs bip wordlist https://www.diffchecker.com/gNTPeIh0/

ricmoo commented 7 months ago

Can you add another line after that to compute the console.log(id(words.join("\n") + "\n"));? I wonder if there is some issue converting the strings to UTF-8 bytes?

ricmoo commented 7 months ago

(Depending on the outcome of that, I may get you to dump out the entire UTF-8 data as a hex string to find the offending bytes; but we’ll cross that bridge when we get there)

pdcolandrea commented 7 months ago

Could the issue originate from the cryptographic aspect of checksum generation? Seems to be a typical issue mostly exclusive to React Native & crypto.

0xacb6221228e83dbab9ddee8daed293db21de9fe667ad75d40216d8a01042c8d5

Heres that mentioned hex string data on words.join("\n") + "\n")

6162616e646f6ea6162696c697479a61626c65a61626f7574a61626f7665a616273656e74a6162736f7262a6162737472616374a616273757264a6162757365a616363657373a6163636964656e74a6163636f756e74a616363757365a61636869657665a61636964a61636f7573746963a61637175697265a6163726f7373a616374a616374696f6ea6163746f72a61637472657373a61637475616ca6164617074a616464a616464696374a61646472657373a61646a757374a61646d6974a6164756c74a616476616e6365a616476696365a6165726f626963a616666616972a6166666f7264a616672616964a616761696ea616765a6167656e74a6167726565a6168656164a61696da616972a616972706f7274a6169736c65a616c61726da616c62756da616c636f686f6ca616c657274a616c69656ea616c6ca616c6c6579a616c6c6f77a616c6d6f7374a616c6f6e65a616c706861a616c7265616479a616c736fa616c746572a616c77617973a616d6174657572a616d617a696e67a616d6f6e67a616d6f756e74a616d75736564a616e616c797374a616e63686f72a616e6369656e74a616e676572a616e676c65a616e677279a616e696d616ca616e6b6c65a616e6e6f756e6365a616e6e75616ca616e6f74686572a616e73776572a616e74656e6e61a616e7469717565a616e7869657479a616e79a6170617274a61706f6c6f6779a617070656172a6170706c65a617070726f7665a617072696ca61726368a617263746963a61726561a6172656e61a6172677565a61726da61726d6564a61726d6f72a61726d79a61726f756e64a617272616e6765a617272657374a617272697665a6172726f77a617274a6172746566616374a617274697374a617274776f726ba61736ba617370656374a61737361756c74a6173736574a617373697374a617373756d65a617374686d61a6174686c657465a61746f6da61747461636ba617474656e64a6174746974756465a61747472616374a61756374696f6ea6175646974a617567757374a61756e74a617574686f72a6175746fa617574756d6ea61766572616765a61766f6361646fa61766f6964a6177616b65a6177617265a61776179a617765736f6d65a617766756ca61776b77617264a61786973a62616279a62616368656c6f72a6261636f6ea6261646765a626167a62616c616e6365a62616c636f6e79a62616c6ca62616d626f6fa62616e616e61a62616e6e6572a626172a626172656c79a6261726761696ea62617272656ca62617365a6261736963a6261736b6574a626174746c65a6265616368a6265616ea626561757479a62656361757365a6265636f6d65a62656566a6265666f7265a626567696ea626568617665a626568696e64a62656c69657665a62656c6f77a62656c74a62656e6368a62656e65666974a62657374a626574726179a626574746572a6265747765656ea6265796f6e64a62696379636c65a626964a62696b65a62696e64a62696f6c6f6779a62697264a6269727468a626974746572a626c61636ba626c616465a626c616d65a626c616e6b6574a626c617374a626c65616ba626c657373a626c696e64a626c6f6f64a626c6f73736f6da626c6f757365a626c7565a626c7572a626c757368a626f617264a626f6174a626f6479a626f696ca626f6d62a626f6e65a626f6e7573a626f6f6ba626f6f7374a626f72646572a626f72696e67a626f72726f77a626f7373a626f74746f6da626f756e6365a626f78a626f79a627261636b6574a627261696ea6272616e64a6272617373a6272617665a6272656164a627265657a65a627269636ba627269646765a6272696566a627269676874a6272696e67a627269736ba62726f63636f6c69a62726f6b656ea62726f6e7a65a62726f6f6da62726f74686572a62726f776ea6272757368a627562626c65a6275646479a627564676574a62756666616c6fa6275696c64a62756c62a62756c6ba62756c6c6574a62756e646c65a62756e6b6572a62757264656ea627572676572a6275727374a627573a627573696e657373a62757379a627574746572a6275796572a62757a7aa63616262616765a636162696ea6361626c65a636163747573a63616765a63616b65a63616c6ca63616c6da63616d657261a63616d70a63616ea63616e616ca63616e63656ca63616e6479a63616e6e6f6ea63616e6f65a63616e766173a63616e796f6ea63617061626c65a6361706974616ca6361707461696ea636172a636172626f6ea63617264a636172676fa636172706574a6361727279a63617274a63617365a63617368a636173696e6fa636173746c65a63617375616ca636174a636174616c6f67a6361746368a63617465676f7279a636174746c65a636175676874a6361757365a63617574696f6ea63617665a6365696c696e67a63656c657279a63656d656e74a63656e737573a63656e74757279a63657265616ca6365727461696ea6368616972a6368616c6ba6368616d70696f6ea6368616e6765a6368616f73a63686170746572a636861726765a6368617365a63686174a6368656170a636865636ba636865657365a63686566a636865727279a6368657374a636869636b656ea6368696566a6368696c64a6368696d6e6579a63686f696365a63686f6f7365a6368726f6e6963a636875636b6c65a6368756e6ba636875726ea6369676172a63696e6e616d6f6ea636972636c65a636974697a656ea63697479a636976696ca636c61696da636c6170a636c6172696679a636c6177a636c6179a636c65616ea636c65726ba636c65766572a636c69636ba636c69656e74a636c696666a636c696d62a636c696e6963a636c6970a636c6f636ba636c6f67a636c6f7365a636c6f7468a636c6f7564a636c6f776ea636c7562a636c756d70a636c7573746572a636c75746368a636f616368a636f617374a636f636f6e7574a636f6465a636f66666565a636f696ca636f696ea636f6c6c656374a636f6c6f72a636f6c756d6ea636f6d62696e65a636f6d65a636f6d666f7274a636f6d6963a636f6d6d6f6ea636f6d70616e79a636f6e63657274a636f6e64756374a636f6e6669726da636f6e6772657373a636f6e6e656374a636f6e7369646572a636f6e74726f6ca636f6e76696e6365a636f6f6ba636f6f6ca636f70706572a636f7079a636f72616ca636f7265a636f726ea636f7272656374a636f7374a636f74746f6ea636f756368a636f756e747279a636f75706c65a636f75727365a636f7573696ea636f766572a636f796f7465a637261636ba637261646c65a6372616674a6372616da6372616e65a6372617368a637261746572a637261776ca6372617a79a637265616da637265646974a637265656ba63726577a637269636b6574a6372696d65a6372697370a637269746963a63726f70a63726f7373a63726f756368a63726f7764a6372756369616ca637275656ca637275697365a6372756d626c65a6372756e6368a6372757368a637279a6372797374616ca63756265a63756c74757265a637570a637570626f617264a637572696f7573a63757272656e74a6375727461696ea6375727665a63757368696f6ea637573746f6da63757465a6379636c65a646164a64616d616765a64616d70a64616e6365a64616e676572a646172696e67a64617368a6461756768746572a6461776ea646179a6465616ca646562617465a646562726973a646563616465a646563656d626572a646563696465a6465636c696e65a6465636f72617465a6465637265617365a64656572a646566656e7365a646566696e65a64656679a646567726565a64656c6179a64656c69766572a64656d616e64a64656d697365a64656e69616ca64656e74697374a64656e79a646570617274a646570656e64a6465706f736974a6465707468a646570757479a646572697665a6465736372696265a646573657274a64657369676ea6465736ba64657370616972a64657374726f79a64657461696ca646574656374a646576656c6f70a646576696365a6465766f7465a6469616772616da6469616ca6469616d6f6e64a6469617279a64696365a64696573656ca64696574a646966666572a6469676974616ca6469676e697479a64696c656d6d61a64696e6e6572a64696e6f73617572a646972656374a64697274a6469736167726565a646973636f766572a64697365617365a64697368a6469736d697373a6469736f72646572a646973706c6179a64697374616e6365a646976657274a646976696465a6469766f726365a64697a7a79a646f63746f72a646f63756d656e74a646f67a646f6c6ca646f6c7068696ea646f6d61696ea646f6e617465a646f6e6b6579a646f6e6f72a646f6f72a646f7365a646f75626c65a646f7665a6472616674a647261676f6ea6472616d61a64726173746963a64726177a647265616da6472657373a6472696674a6472696c6ca6472696e6ba64726970a6472697665a64726f70a6472756da647279a6475636ba64756d62a64756e65a647572696e67a64757374a6475746368a64757479a6477617266a64796e616d6963a6561676572a6561676c65a6561726c79a6561726ea6561727468a656173696c79a65617374a65617379a6563686fa65636f6c6f6779a65636f6e6f6d79a65646765a65646974a65647563617465a6566666f7274a656767a6569676874a656974686572a656c626f77a656c646572a656c656374726963a656c6567616e74a656c656d656e74a656c657068616e74a656c657661746f72a656c697465a656c7365a656d6261726ba656d626f6479a656d6272616365a656d65726765a656d6f74696f6ea656d706c6f79a656d706f776572a656d707479a656e61626c65a656e616374a656e64a656e646c657373a656e646f727365a656e656d79a656e65726779a656e666f726365a656e67616765a656e67696e65a656e68616e6365a656e6a6f79a656e6c697374a656e6f756768a656e72696368a656e726f6c6ca656e73757265a656e746572a656e74697265a656e747279a656e76656c6f7065a657069736f6465a657175616ca6571756970a657261a6572617365a65726f6465a65726f73696f6ea6572726f72a6572757074a657363617065a6573736179a657373656e6365a657374617465a657465726e616ca657468696373a65766964656e6365a6576696ca65766f6b65a65766f6c7665a6578616374a6578616d706c65a657863657373a65786368616e6765a657863697465a6578636c756465a657863757365a65786563757465a6578657263697365a65786861757374a65786869626974a6578696c65a6578697374a65786974a65786f746963a657870616e64a657870656374a657870697265a6578706c61696ea6578706f7365a65787072657373a657874656e64a6578747261a657965a65796562726f77a666162726963a66616365a666163756c7479a66616465a6661696e74a6661697468a66616c6ca66616c7365a66616d65a66616d696c79a66616d6f7573a66616ea66616e6379a66616e74617379a6661726da66617368696f6ea666174a666174616ca666174686572a66617469677565a6661756c74a6661766f72697465a66656174757265a6665627275617279a6665646572616ca666565a66656564a6665656ca66656d616c65a66656e6365a666573746976616ca6665746368a6665766572a666577a6669626572a66696374696f6ea6669656c64a666967757265a66696c65a66696c6da66696c746572a66696e616ca66696e64a66696e65a66696e676572a66696e697368a66697265a6669726da6669727374a66697363616ca66697368a666974a6669746e657373a666978a666c6167a666c616d65a666c617368a666c6174a666c61766f72a666c6565a666c69676874a666c6970a666c6f6174a666c6f636ba666c6f6f72a666c6f776572a666c756964a666c757368a666c79a666f616da666f637573a666f67a666f696ca666f6c64a666f6c6c6f77a666f6f64a666f6f74a666f726365a666f72657374a666f72676574a666f726ba666f7274756e65a666f72756da666f7277617264a666f7373696ca666f73746572a666f756e64a666f78a66726167696c65a6672616d65a6672657175656e74a6672657368a667269656e64a6672696e6765a66726f67a66726f6e74a66726f7374a66726f776ea66726f7a656ea6672756974a6675656ca66756ea66756e6e79a6675726e616365a66757279a667574757265a676164676574a6761696ea67616c617879a67616c6c657279a67616d65a676170a676172616765a67617262616765a67617264656ea6761726c6963a6761726d656e74a676173a67617370a67617465a676174686572a6761756765a67617a65a67656e6572616ca67656e697573a67656e7265a67656e746c65a67656e75696e65a67657374757265a67686f7374a6769616e74a67696674a676967676c65a67696e676572a67697261666665a6769726ca67697665a676c6164a676c616e6365a676c617265a676c617373a676c696465a676c696d707365a676c6f6265a676c6f6f6da676c6f7279a676c6f7665a676c6f77a676c7565a676f6174a676f6464657373a676f6c64a676f6f64a676f6f7365a676f72696c6c61a676f7370656ca676f73736970a676f7665726ea676f776ea67726162a6772616365a677261696ea6772616e74a6772617065a6772617373a67726176697479a6772656174a677265656ea67726964a6772696566a67726974a67726f63657279a67726f7570a67726f77a6772756e74a6775617264a6775657373a6775696465a6775696c74a677569746172a67756ea67796da6861626974a68616972a68616c66a68616d6d6572a68616d73746572a68616e64a6861707079a686172626f72a68617264a6861727368a68617276657374a686174a68617665a6861776ba68617a617264a68656164a6865616c7468a6865617274a6865617679a6865646765686f67a686569676874a68656c6c6fa68656c6d6574a68656c70a68656ea6865726fa68696464656ea68696768a68696c6ca68696e74a686970a68697265a686973746f7279a686f626279a686f636b6579a686f6c64a686f6c65a686f6c69646179a686f6c6c6f77a686f6d65a686f6e6579a686f6f64a686f7065a686f726ea686f72726f72a686f727365a686f73706974616ca686f7374a686f74656ca686f7572a686f766572a687562a68756765a68756d616ea68756d626c65a68756d6f72a68756e64726564a68756e677279a68756e74a687572646c65a6875727279a68757274a68757362616e64a687962726964a696365a69636f6ea69646561a6964656e74696679a69646c65a69676e6f7265a696c6ca696c6c6567616ca696c6c6e657373a696d616765a696d6974617465a696d6d656e7365a696d6d756e65a696d70616374a696d706f7365a696d70726f7665a696d70756c7365a696e6368a696e636c756465a696e636f6d65a696e637265617365a696e646578a696e646963617465a696e646f6f72a696e647573747279a696e66616e74a696e666c696374a696e666f726da696e68616c65a696e6865726974a696e697469616ca696e6a656374a696e6a757279a696e6d617465a696e6e6572a696e6e6f63656e74a696e707574a696e7175697279a696e73616e65a696e73656374a696e73696465a696e7370697265a696e7374616c6ca696e74616374a696e746572657374a696e746fa696e76657374a696e76697465a696e766f6c7665a69726f6ea69736c616e64a69736f6c617465a6973737565a6974656da69766f7279a6a61636b6574a6a6167756172a6a6172a6a617a7aa6a65616c6f7573a6a65616e73a6a656c6c79a6a6577656ca6a6f62a6a6f696ea6a6f6b65a6a6f75726e6579a6a6f79a6a75646765a6a75696365a6a756d70a6a756e676c65a6a756e696f72a6a756e6ba6a757374a6b616e6761726f6fa6b65656ea6b656570a6b657463687570a6b6579a6b69636ba6b6964a6b69646e6579a6b696e64a6b696e67646f6da6b697373a6b6974a6b69746368656ea6b697465a6b697474656ea6b697769a6b6e6565a6b6e696665a6b6e6f636ba6b6e6f77a6c6162a6c6162656ca6c61626f72a6c6164646572a6c616479a6c616b65a6c616d70a6c616e6775616765a6c6170746f70a6c61726765a6c61746572a6c6174696ea6c61756768a6c61756e647279a6c617661a6c6177a6c61776ea6c617773756974a6c61796572a6c617a79a6c6561646572a6c656166a6c6561726ea6c65617665a6c656374757265a6c656674a6c6567a6c6567616ca6c6567656e64a6c656973757265a6c656d6f6ea6c656e64a6c656e677468a6c656e73a6c656f70617264a6c6573736f6ea6c6574746572a6c6576656ca6c696172a6c696265727479a6c696272617279a6c6963656e7365a6c696665a6c696674a6c69676874a6c696b65a6c696d62a6c696d6974a6c696e6ba6c696f6ea6c6971756964a6c697374a6c6974746c65a6c697665a6c697a617264a6c6f6164a6c6f616ea6c6f6273746572a6c6f63616ca6c6f636ba6c6f676963a6c6f6e656c79a6c6f6e67a6c6f6f70a6c6f7474657279a6c6f7564a6c6f756e6765a6c6f7665a6c6f79616ca6c75636b79a6c756767616765a6c756d626572a6c756e6172a6c756e6368a6c7578757279a6c7972696373a6d616368696e65a6d6164a6d61676963a6d61676e6574a6d616964a6d61696ca6d61696ea6d616a6f72a6d616b65a6d616d6d616ca6d616ea6d616e616765a6d616e64617465a6d616e676fa6d616e73696f6ea6d616e75616ca6d61706c65a6d6172626c65a6d61726368a6d617267696ea6d6172696e65a6d61726b6574a6d61727269616765a6d61736ba6d617373a6d6173746572a6d61746368a6d6174657269616ca6d617468a6d6174726978a6d6174746572a6d6178696d756da6d617a65a6d6561646f77a6d65616ea6d656173757265a6d656174a6d656368616e6963a6d6564616ca6d65646961a6d656c6f6479a6d656c74a6d656d626572a6d656d6f7279a6d656e74696f6ea6d656e75a6d65726379a6d65726765a6d65726974a6d65727279a6d657368a6d657373616765a6d6574616ca6d6574686f64a6d6964646c65a6d69646e69676874a6d696c6ba6d696c6c696f6ea6d696d6963a6d696e64a6d696e696d756da6d696e6f72a6d696e757465a6d697261636c65a6d6972726f72a6d6973657279a6d697373a6d697374616b65a6d6978a6d69786564a6d697874757265a6d6f62696c65a6d6f64656ca6d6f64696679a6d6f6da6d6f6d656e74a6d6f6e69746f72a6d6f6e6b6579a6d6f6e73746572a6d6f6e7468a6d6f6f6ea6d6f72616ca6d6f7265a6d6f726e696e67a6d6f73717569746fa6d6f74686572a6d6f74696f6ea6d6f746f72a6d6f756e7461696ea6d6f757365a6d6f7665a6d6f766965a6d756368a6d756666696ea6d756c65a6d756c7469706c79a6d7573636c65a6d757365756da6d757368726f6f6da6d75736963a6d757374a6d757475616ca6d7973656c66a6d797374657279a6d797468a6e61697665a6e616d65a6e61706b696ea6e6172726f77a6e61737479a6e6174696f6ea6e6174757265a6e656172a6e65636ba6e656564a6e65676174697665a6e65676c656374a6e656974686572a6e6570686577a6e65727665a6e657374a6e6574a6e6574776f726ba6e65757472616ca6e65766572a6e657773a6e657874a6e696365a6e69676874a6e6f626c65a6e6f697365a6e6f6d696e6565a6e6f6f646c65a6e6f726d616ca6e6f727468a6e6f7365a6e6f7461626c65a6e6f7465a6e6f7468696e67a6e6f74696365a6e6f76656ca6e6f77a6e75636c656172a6e756d626572a6e75727365a6e7574a6f616ba6f626579a6f626a656374a6f626c696765a6f627363757265a6f627365727665a6f627461696ea6f6276696f7573a6f63637572a6f6365616ea6f63746f626572a6f646f72a6f6666a6f66666572a6f6666696365a6f6674656ea6f696ca6f6b6179a6f6c64a6f6c697665a6f6c796d706963a6f6d6974a6f6e6365a6f6e65a6f6e696f6ea6f6e6c696e65a6f6e6c79a6f70656ea6f70657261a6f70696e696f6ea6f70706f7365a6f7074696f6ea6f72616e6765a6f72626974a6f726368617264a6f72646572a6f7264696e617279a6f7267616ea6f7269656e74a6f726967696e616ca6f727068616ea6f737472696368a6f74686572a6f7574646f6f72a6f75746572a6f7574707574a6f757473696465a6f76616ca6f76656ea6f766572a6f776ea6f776e6572a6f787967656ea6f7973746572a6f7a6f6e65a70616374a706164646c65a70616765a70616972a70616c616365a70616c6da70616e6461a70616e656ca70616e6963a70616e74686572a7061706572a706172616465a706172656e74a7061726ba706172726f74a7061727479a70617373a7061746368a70617468a70617469656e74a706174726f6ca7061747465726ea7061757365a70617665a7061796d656e74a7065616365a7065616e7574a70656172a70656173616e74a70656c6963616ea70656ea70656e616c7479a70656e63696ca70656f706c65a706570706572a70657266656374a7065726d6974a706572736f6ea706574a70686f6e65a70686f746fa706872617365a706879736963616ca7069616e6fa7069636e6963a70696374757265a7069656365a706967a706967656f6ea70696c6ca70696c6f74a70696e6ba70696f6e656572a70697065a706973746f6ca7069746368a70697a7a61a706c616365a706c616e6574a706c6173746963a706c617465a706c6179a706c65617365a706c65646765a706c75636ba706c7567a706c756e6765a706f656da706f6574a706f696e74a706f6c6172a706f6c65a706f6c696365a706f6e64a706f6e79a706f6f6ca706f70756c6172a706f7274696f6ea706f736974696f6ea706f737369626c65a706f7374a706f7461746fa706f7474657279a706f7665727479a706f77646572a706f776572a7072616374696365a707261697365a70726564696374a707265666572a70726570617265a70726573656e74a707265747479a70726576656e74a7072696365a7072696465a7072696d617279a7072696e74a7072696f72697479a707269736f6ea70726976617465a7072697a65a70726f626c656da70726f63657373a70726f64756365a70726f666974a70726f6772616da70726f6a656374a70726f6d6f7465a70726f6f66a70726f7065727479a70726f73706572a70726f74656374a70726f7564a70726f76696465a7075626c6963a70756464696e67a70756c6ca70756c70a70756c7365a70756d706b696ea70756e6368a707570696ca7075707079a7075726368617365a707572697479a707572706f7365a7075727365a70757368a707574a70757a7a6c65a707972616d6964a7175616c697479a7175616e74756da71756172746572a7175657374696f6ea717569636ba71756974a7175697aa71756f7465a726162626974a726163636f6f6ea72616365a7261636ba7261646172a726164696fa7261696ca7261696ea7261697365a72616c6c79a72616d70a72616e6368a72616e646f6da72616e6765a7261706964a72617265a72617465a726174686572a726176656ea726177a72617a6f72a7265616479a7265616ca726561736f6ea726562656ca72656275696c64a726563616c6ca72656365697665a726563697065a7265636f7264a72656379636c65a726564756365a7265666c656374a7265666f726da726566757365a726567696f6ea726567726574a726567756c6172a72656a656374a72656c6178a72656c65617365a72656c696566a72656c79a72656d61696ea72656d656d626572a72656d696e64a72656d6f7665a72656e646572a72656e6577a72656e74a72656f70656ea726570616972a726570656174a7265706c616365a7265706f7274a72657175697265a726573637565a726573656d626c65a726573697374a7265736f75726365a726573706f6e7365a726573756c74a726574697265a72657472656174a72657475726ea7265756e696f6ea72657665616ca726576696577a726577617264a72687974686da726962a726962626f6ea72696365a72696368a72696465a7269646765a7269666c65a7269676874a7269676964a72696e67a72696f74a726970706c65a7269736ba72697475616ca726976616ca7269766572a726f6164a726f617374a726f626f74a726f62757374a726f636b6574a726f6d616e6365a726f6f66a726f6f6b6965a726f6f6da726f7365a726f74617465a726f756768a726f756e64a726f757465a726f79616ca727562626572a72756465a727567a72756c65a72756ea72756e776179a727572616ca736164a736164646c65a7361646e657373a73616665a7361696ca73616c6164a73616c6d6f6ea73616c6f6ea73616c74a73616c757465a73616d65a73616d706c65a73616e64a73617469736679a7361746f736869a7361756365a73617573616765a73617665a736179a7363616c65a7363616ea7363617265a73636174746572a7363656e65a736368656d65a7363686f6f6ca736369656e6365a73636973736f7273a73636f7270696f6ea73636f7574a7363726170a73637265656ea736372697074a7363727562a736561a736561726368a736561736f6ea73656174a7365636f6e64a736563726574a73656374696f6ea7365637572697479a73656564a7365656ba7365676d656e74a73656c656374a73656c6ca73656d696e6172a73656e696f72a73656e7365a73656e74656e6365a736572696573a73657276696365a73657373696f6ea736574746c65a7365747570a736576656ea736861646f77a7368616674a7368616c6c6f77a7368617265a73686564a7368656c6ca73686572696666a736869656c64a7368696674a7368696e65a73686970a736869766572a73686f636ba73686f65a73686f6f74a73686f70a73686f7274a73686f756c646572a73686f7665a736872696d70a7368727567a73687566666c65a736879a7369626c696e67a7369636ba73696465a7369656765a7369676874a7369676ea73696c656e74a73696c6ba73696c6c79a73696c766572a73696d696c6172a73696d706c65a73696e6365a73696e67a736972656ea736973746572a73697475617465a736978a73697a65a736b617465a736b65746368a736b69a736b696c6ca736b696ea736b697274a736b756c6ca736c6162a736c616da736c656570a736c656e646572a736c696365a736c696465a736c69676874a736c696da736c6f67616ea736c6f74a736c6f77a736c757368a736d616c6ca736d617274a736d696c65a736d6f6b65a736d6f6f7468a736e61636ba736e616b65a736e6170a736e696666a736e6f77a736f6170a736f63636572a736f6369616ca736f636ba736f6461a736f6674a736f6c6172a736f6c64696572a736f6c6964a736f6c7574696f6ea736f6c7665a736f6d656f6e65a736f6e67a736f6f6ea736f727279a736f7274a736f756ca736f756e64a736f7570a736f75726365a736f757468a7370616365a7370617265a7370617469616ca737061776ea737065616ba7370656369616ca7370656564a7370656c6ca7370656e64a737068657265a7370696365a737069646572a7370696b65a7370696ea737069726974a73706c6974a73706f696ca73706f6e736f72a73706f6f6ea73706f7274a73706f74a7370726179a737072656164a737072696e67a737079a737175617265a73717565657a65a737175697272656ca737461626c65a7374616469756da7374616666a7374616765a737461697273a7374616d70a7374616e64a7374617274a7374617465a73746179a737465616ba737465656ca7374656da73746570a73746572656fa737469636ba7374696c6ca7374696e67a73746f636ba73746f6d616368a73746f6e65a73746f6f6ca73746f7279a73746f7665a7374726174656779a737472656574a737472696b65a7374726f6e67a7374727567676c65a73747564656e74a7374756666a7374756d626c65a7374796c65a7375626a656374a7375626d6974a737562776179a73756363657373a73756368a73756464656ea737566666572a7375676172a73756767657374a73756974a73756d6d6572a73756ea73756e6e79a73756e736574a7375706572a737570706c79a73757072656d65a73757265a73757266616365a7375726765a7375727072697365a737572726f756e64a737572766579a73757370656374a7375737461696ea7377616c6c6f77a7377616d70a73776170a737761726da7377656172a7377656574a7377696674a7377696da7377696e67a737769746368a73776f7264a73796d626f6ca73796d70746f6da7379727570a73797374656da7461626c65a7461636b6c65a746167a7461696ca74616c656e74a74616c6ba74616e6ba74617065a746172676574a7461736ba7461737465a746174746f6fa74617869a7465616368a7465616da74656c6ca74656ea74656e616e74a74656e6e6973a74656e74a7465726da74657374a74657874a7468616e6ba74686174a7468656d65a7468656ea7468656f7279a7468657265a74686579a7468696e67a74686973a74686f75676874a7468726565a746872697665a7468726f77a7468756d62a7468756e646572a7469636b6574a74696465a7469676572a74696c74a74696d626572a74696d65a74696e79a746970a7469726564a746973737565a7469746c65a746f617374a746f626163636fa746f646179a746f64646c6572a746f65a746f676574686572a746f696c6574a746f6b656ea746f6d61746fa746f6d6f72726f77a746f6e65a746f6e677565a746f6e69676874a746f6f6ca746f6f7468a746f70a746f706963a746f70706c65a746f726368a746f726e61646fa746f72746f697365a746f7373a746f74616ca746f7572697374a746f77617264a746f776572a746f776ea746f79a747261636ba7472616465a74726166666963a747261676963a747261696ea7472616e73666572a74726170a7472617368a74726176656ca74726179a7472656174a74726565a7472656e64a747269616ca7472696265a747269636ba74726967676572a7472696da74726970a74726f706879a74726f75626c65a747275636ba74727565a7472756c79a7472756d706574a7472757374a7472757468a747279a74756265a74756974696f6ea74756d626c65a74756e61a74756e6e656ca7475726b6579a7475726ea747572746c65a7477656c7665a7477656e7479a7477696365a7477696ea7477697374a74776fa74797065a7479706963616ca75676c79a756d6272656c6c61a756e61626c65a756e6177617265a756e636c65a756e636f766572a756e646572a756e646fa756e66616972a756e666f6c64a756e6861707079a756e69666f726da756e69717565a756e6974a756e697665727365a756e6b6e6f776ea756e6c6f636ba756e74696ca756e757375616ca756e7665696ca757064617465a75706772616465a7570686f6c64a75706f6ea7570706572a7570736574a757262616ea75726765a7573616765a757365a75736564a75736566756ca7573656c657373a757375616ca7574696c697479a766163616e74a76616375756da7661677565a76616c6964a76616c6c6579a76616c7665a76616ea76616e697368a7661706f72a766172696f7573a76617374a7661756c74a76656869636c65a76656c766574a76656e646f72a76656e74757265a76656e7565a76657262a766572696679a76657273696f6ea76657279a76657373656ca7665746572616ea766961626c65a76696272616e74a766963696f7573a766963746f7279a766964656fa76696577a76696c6c616765a76696e74616765a76696f6c696ea7669727475616ca7669727573a76697361a7669736974a76697375616ca766974616ca7669766964a766f63616ca766f696365a766f6964a766f6c63616e6fa766f6c756d65a766f7465a766f79616765a77616765a7761676f6ea77616974a77616c6ba77616c6ca77616c6e7574a77616e74a77617266617265a7761726da77617272696f72a77617368a77617370a7761737465a7761746572a77617665a776179a7765616c7468a776561706f6ea77656172a77656173656ca77656174686572a776562a77656464696e67a7765656b656e64a7765697264a77656c636f6d65a77657374a776574a7768616c65a77686174a7768656174a776865656ca7768656ea7768657265a77686970a77686973706572a77696465a7769647468a77696665a77696c64a77696c6ca77696ea77696e646f77a77696e65a77696e67a77696e6ba77696e6e6572a77696e746572a77697265a776973646f6da77697365a77697368a7769746e657373a776f6c66a776f6d616ea776f6e646572a776f6f64a776f6f6ca776f7264a776f726ba776f726c64a776f727279a776f727468a77726170a777265636ba77726573746c65a7772697374a7772697465a77726f6e67a79617264a79656172a79656c6c6f77a796f75a796f756e67a796f757468a7a65627261a7a65726fa7a6f6e65a7a6f6fa
ricmoo commented 7 months ago

So, I've isolated the error based on your hex string... I have no idea why yet, but am trying to figure it out. It's snipping off the top 4 bits from each new line during the join, or more likely during the UTF-8 calculation. Which also has the strange artifact that all the odd words are correct (since the two 4-bit snips trim off 8, a full byte).

I'll get back to you soon with some sort of fix to try. I just need to try breaking my local code in the same way to better understand what operation Android is doing differently. :)

ricmoo commented 7 months ago

For a quick example, here is the debug data I'm working with:

0 android=97 (01100001) correct=97 (01100001) androidStr="a"
1 android=98 (01100010) correct=98 (01100010) androidStr="b"
2 android=97 (01100001) correct=97 (01100001) androidStr="a"
3 android=110 (01101110) correct=110 (01101110) androidStr="n"
4 android=100 (01100100) correct=100 (01100100) androidStr="d"
5 android=111 (01101111) correct=111 (01101111) androidStr="o"
6 android=110 (01101110) correct=110 (01101110) androidStr="n"
7 android=166 (10100110) correct=10 (00001010) androidStr="¦"
8 android=22 (00010110) correct=97 (01100001) androidStr="\u0016"
9 android=38 (00100110) correct=98 (01100010) androidStr="&"
10 android=150 (10010110) correct=105 (01101001) androidStr="–"
11 android=198 (11000110) correct=108 (01101100) androidStr="Æ"
12 android=151 (10010111) correct=105 (01101001) androidStr="—"
13 android=71 (01000111) correct=116 (01110100) androidStr="G"
14 android=154 (10011010) correct=121 (01111001) androidStr="š"
15 android=97 (01100001) correct=10 (00001010) androidStr="a"
16 android=98 (01100010) correct=97 (01100001) androidStr="b"
17 android=108 (01101100) correct=98 (01100010) androidStr="l"
18 android=101 (01100101) correct=108 (01101100) androidStr="e"

Notice in (7), the first 4 bits are 10, followed by the upper bits of 8 and from then on, everything is off-by-4-bits until, the next word, where we are off-by-8-bits, then fine until the next word... :p

ricmoo commented 7 months ago

So, I've concluded it's even more specific; only the "\n" which is 0x0a, is dropping the leading 0, so it is getting injected into the output as just the hex value a. So, the string 123\n456\n which should be:

// Should be:
// 1 2 3 \n  4 5 6 \n
0x313233 0a 343536 0a

// But getting:
// 1 2 3 !  4 5 6 !  <-- The ! indicate the 0 was dropped from the 0a
0x313233 a 343536 a

How did you compute the hex? Did you use ethers hexlify? Or something custom?

pdcolandrea commented 7 months ago

So, I've concluded it's even more specific; only the "\n" which is 0x0a, is dropping the leading 0, so it is getting injected into the output as just the hex value a. So, the string 123\n456\n which should be:

// Should be:
// 1 2 3 \n  4 5 6 \n
0x313233 0a 343536 0a

// But getting:
// 1 2 3 !  4 5 6 !  <-- The ! indicate the 0 was dropped from the 0a
0x313233 a 343536 a

How did you compute the hex? Did you use ethers hexlify? Or something custom?

Originally used a custom implementation but upon trying the ethers native hexlify w/ console.log(index_js_2.hexlify(words.join("\n") + "\n")) but it seemed pretty unhappy about the format of the list

TypeError: invalid BytesLike value (argument="value", value="abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napp
pdcolandrea commented 7 months ago

Perhaps converting to utf8 will help😜 console.log(index_js_2.hexlify(index_js_2.toUtf8Bytes(words.join("\n") + "\n")))

0x6162616e646f6e0a6162696c6974790a61626c650a61626f75740a61626f76650a616273656e740a6162736f72620a61627374726163740a6162737572640a61627573650a6163636573730a6163636964656e740a6163636f756e740a6163637573650a616368696576650a616369640a61636f75737469630a616371756972650a6163726f73730a6163740a616374696f6e0a6163746f720a616374726573730a61637475616c0a61646170740a6164640a6164646963740a616464726573730a61646a7573740a61646d69740a6164756c740a616476616e63650a6164766963650a6165726f6269630a6166666169720a6166666f72640a6166726169640a616761696e0a6167650a6167656e740a61677265650a61686561640a61696d0a6169720a616972706f72740a6169736c650a616c61726d0a616c62756d0a616c636f686f6c0a616c6572740a616c69656e0a616c6c0a616c6c65790a616c6c6f770a616c6d6f73740a616c6f6e650a616c7068610a616c72656164790a616c736f0a616c7465720a616c776179730a616d61746575720a616d617a696e670a616d6f6e670a616d6f756e740a616d757365640a616e616c7973740a616e63686f720a616e6369656e740a616e6765720a616e676c650a616e6772790a616e696d616c0a616e6b6c650a616e6e6f756e63650a616e6e75616c0a616e6f746865720a616e737765720a616e74656e6e610a616e74697175650a616e78696574790a616e790a61706172740a61706f6c6f67790a6170706561720a6170706c650a617070726f76650a617072696c0a617263680a6172637469630a617265610a6172656e610a61726775650a61726d0a61726d65640a61726d6f720a61726d790a61726f756e640a617272616e67650a6172726573740a6172726976650a6172726f770a6172740a61727465666163740a6172746973740a617274776f726b0a61736b0a6173706563740a61737361756c740a61737365740a6173736973740a617373756d650a617374686d610a6174686c6574650a61746f6d0a61747461636b0a617474656e640a61747469747564650a617474726163740a61756374696f6e0a61756469740a6175677573740a61756e740a617574686f720a6175746f0a617574756d6e0a617665726167650a61766f6361646f0a61766f69640a6177616b650a61776172650a617761790a617765736f6d650a617766756c0a61776b776172640a617869730a626162790a62616368656c6f720a6261636f6e0a62616467650a6261670a62616c616e63650a62616c636f6e790a62616c6c0a62616d626f6f0a62616e616e610a62616e6e65720a6261720a626172656c790a6261726761696e0a62617272656c0a626173650a62617369630a6261736b65740a626174746c650a62656163680a6265616e0a6265617574790a626563617573650a6265636f6d650a626565660a6265666f72650a626567696e0a6265686176650a626568696e640a62656c696576650a62656c6f770a62656c740a62656e63680a62656e656669740a626573740a6265747261790a6265747465720a6265747765656e0a6265796f6e640a62696379636c650a6269640a62696b650a62696e640a62696f6c6f67790a626972640a62697274680a6269747465720a626c61636b0a626c6164650a626c616d650a626c616e6b65740a626c6173740a626c65616b0a626c6573730a626c696e640a626c6f6f640a626c6f73736f6d0a626c6f7573650a626c75650a626c75720a626c7573680a626f6172640a626f61740a626f64790a626f696c0a626f6d620a626f6e650a626f6e75730a626f6f6b0a626f6f73740a626f726465720a626f72696e670a626f72726f770a626f73730a626f74746f6d0a626f756e63650a626f780a626f790a627261636b65740a627261696e0a6272616e640a62726173730a62726176650a62726561640a627265657a650a627269636b0a6272696467650a62726965660a6272696768740a6272696e670a627269736b0a62726f63636f6c690a62726f6b656e0a62726f6e7a650a62726f6f6d0a62726f746865720a62726f776e0a62727573680a627562626c650a62756464790a6275646765740a62756666616c6f0a6275696c640a62756c620a62756c6b0a62756c6c65740a62756e646c650a62756e6b65720a62757264656e0a6275726765720a62757273740a6275730a627573696e6573730a627573790a6275747465720a62757965720a62757a7a0a636162626167650a636162696e0a6361626c650a6361637475730a636167650a63616b650a63616c6c0a63616c6d0a63616d6572610a63616d700a63616e0a63616e616c0a63616e63656c0a63616e64790a63616e6e6f6e0a63616e6f650a63616e7661730a63616e796f6e0a63617061626c650a6361706974616c0a6361707461696e0a6361720a636172626f6e0a636172640a636172676f0a6361727065740a63617272790a636172740a636173650a636173680a636173696e6f0a636173746c650a63617375616c0a6361740a636174616c6f670a63617463680a63617465676f72790a636174746c650a6361756768740a63617573650a63617574696f6e0a636176650a6365696c696e670a63656c6572790a63656d656e740a63656e7375730a63656e747572790a63657265616c0a6365727461696e0a63686169720a6368616c6b0a6368616d70696f6e0a6368616e67650a6368616f730a636861707465720a6368617267650a63686173650a636861740a63686561700a636865636b0a6368656573650a636865660a6368657272790a63686573740a636869636b656e0a63686965660a6368696c640a6368696d6e65790a63686f6963650a63686f6f73650a6368726f6e69630a636875636b6c650a6368756e6b0a636875726e0a63696761720a63696e6e616d6f6e0a636972636c650a636974697a656e0a636974790a636976696c0a636c61696d0a636c61700a636c61726966790a636c61770a636c61790a636c65616e0a636c65726b0a636c657665720a636c69636b0a636c69656e740a636c6966660a636c696d620a636c696e69630a636c69700a636c6f636b0a636c6f670a636c6f73650a636c6f74680a636c6f75640a636c6f776e0a636c75620a636c756d700a636c75737465720a636c757463680a636f6163680a636f6173740a636f636f6e75740a636f64650a636f666665650a636f696c0a636f696e0a636f6c6c6563740a636f6c6f720a636f6c756d6e0a636f6d62696e650a636f6d650a636f6d666f72740a636f6d69630a636f6d6d6f6e0a636f6d70616e790a636f6e636572740a636f6e647563740a636f6e6669726d0a636f6e67726573730a636f6e6e6563740a636f6e73696465720a636f6e74726f6c0a636f6e76696e63650a636f6f6b0a636f6f6c0a636f707065720a636f70790a636f72616c0a636f72650a636f726e0a636f72726563740a636f73740a636f74746f6e0a636f7563680a636f756e7472790a636f75706c650a636f757273650a636f7573696e0a636f7665720a636f796f74650a637261636b0a637261646c650a63726166740a6372616d0a6372616e650a63726173680a6372617465720a637261776c0a6372617a790a637265616d0a6372656469740a637265656b0a637265770a637269636b65740a6372696d650a63726973700a6372697469630a63726f700a63726f73730a63726f7563680a63726f77640a6372756369616c0a637275656c0a6372756973650a6372756d626c650a6372756e63680a63727573680a6372790a6372797374616c0a637562650a63756c747572650a6375700a637570626f6172640a637572696f75730a63757272656e740a6375727461696e0a63757276650a63757368696f6e0a637573746f6d0a637574650a6379636c650a6461640a64616d6167650a64616d700a64616e63650a64616e6765720a646172696e670a646173680a64617567687465720a6461776e0a6461790a6465616c0a6465626174650a6465627269730a6465636164650a646563656d6265720a6465636964650a6465636c696e650a6465636f726174650a64656372656173650a646565720a646566656e73650a646566696e650a646566790a6465677265650a64656c61790a64656c697665720a64656d616e640a64656d6973650a64656e69616c0a64656e746973740a64656e790a6465706172740a646570656e640a6465706f7369740a64657074680a6465707574790a6465726976650a64657363726962650a6465736572740a64657369676e0a6465736b0a646573706169720a64657374726f790a64657461696c0a6465746563740a646576656c6f700a6465766963650a6465766f74650a6469616772616d0a6469616c0a6469616d6f6e640a64696172790a646963650a64696573656c0a646965740a6469666665720a6469676974616c0a6469676e6974790a64696c656d6d610a64696e6e65720a64696e6f736175720a6469726563740a646972740a64697361677265650a646973636f7665720a646973656173650a646973680a6469736d6973730a6469736f726465720a646973706c61790a64697374616e63650a6469766572740a6469766964650a6469766f7263650a64697a7a790a646f63746f720a646f63756d656e740a646f670a646f6c6c0a646f6c7068696e0a646f6d61696e0a646f6e6174650a646f6e6b65790a646f6e6f720a646f6f720a646f73650a646f75626c650a646f76650a64726166740a647261676f6e0a6472616d610a647261737469630a647261770a647265616d0a64726573730a64726966740a6472696c6c0a6472696e6b0a647269700a64726976650a64726f700a6472756d0a6472790a6475636b0a64756d620a64756e650a647572696e670a647573740a64757463680a647574790a64776172660a64796e616d69630a65616765720a6561676c650a6561726c790a6561726e0a65617274680a656173696c790a656173740a656173790a6563686f0a65636f6c6f67790a65636f6e6f6d790a656467650a656469740a656475636174650a6566666f72740a6567670a65696768740a6569746865720a656c626f770a656c6465720a656c6563747269630a656c6567616e740a656c656d656e740a656c657068616e740a656c657661746f720a656c6974650a656c73650a656d6261726b0a656d626f64790a656d62726163650a656d657267650a656d6f74696f6e0a656d706c6f790a656d706f7765720a656d7074790a656e61626c650a656e6163740a656e640a656e646c6573730a656e646f7273650a656e656d790a656e657267790a656e666f7263650a656e676167650a656e67696e650a656e68616e63650a656e6a6f790a656e6c6973740a656e6f7567680a656e726963680a656e726f6c6c0a656e737572650a656e7465720a656e746972650a656e7472790a656e76656c6f70650a657069736f64650a657175616c0a65717569700a6572610a65726173650a65726f64650a65726f73696f6e0a6572726f720a65727570740a6573636170650a65737361790a657373656e63650a6573746174650a657465726e616c0a6574686963730a65766964656e63650a6576696c0a65766f6b650a65766f6c76650a65786163740a6578616d706c650a6578636573730a65786368616e67650a6578636974650a6578636c7564650a6578637573650a657865637574650a65786572636973650a657868617573740a657868696269740a6578696c650a65786973740a657869740a65786f7469630a657870616e640a6578706563740a6578706972650a6578706c61696e0a6578706f73650a657870726573730a657874656e640a65787472610a6579650a65796562726f770a6661627269630a666163650a666163756c74790a666164650a6661696e740a66616974680a66616c6c0a66616c73650a66616d650a66616d696c790a66616d6f75730a66616e0a66616e63790a66616e746173790a6661726d0a66617368696f6e0a6661740a666174616c0a6661746865720a666174696775650a6661756c740a6661766f726974650a666561747572650a66656272756172790a6665646572616c0a6665650a666565640a6665656c0a66656d616c650a66656e63650a666573746976616c0a66657463680a66657665720a6665770a66696265720a66696374696f6e0a6669656c640a6669677572650a66696c650a66696c6d0a66696c7465720a66696e616c0a66696e640a66696e650a66696e6765720a66696e6973680a666972650a6669726d0a66697273740a66697363616c0a666973680a6669740a6669746e6573730a6669780a666c61670a666c616d650a666c6173680a666c61740a666c61766f720a666c65650a666c696768740a666c69700a666c6f61740a666c6f636b0a666c6f6f720a666c6f7765720a666c7569640a666c7573680a666c790a666f616d0a666f6375730a666f670a666f696c0a666f6c640a666f6c6c6f770a666f6f640a666f6f740a666f7263650a666f726573740a666f726765740a666f726b0a666f7274756e650a666f72756d0a666f72776172640a666f7373696c0a666f737465720a666f756e640a666f780a66726167696c650a6672616d650a6672657175656e740a66726573680a667269656e640a6672696e67650a66726f670a66726f6e740a66726f73740a66726f776e0a66726f7a656e0a66727569740a6675656c0a66756e0a66756e6e790a6675726e6163650a667572790a6675747572650a6761646765740a6761696e0a67616c6178790a67616c6c6572790a67616d650a6761700a6761726167650a676172626167650a67617264656e0a6761726c69630a6761726d656e740a6761730a676173700a676174650a6761746865720a67617567650a67617a650a67656e6572616c0a67656e6975730a67656e72650a67656e746c650a67656e75696e650a676573747572650a67686f73740a6769616e740a676966740a676967676c650a67696e6765720a676972616666650a6769726c0a676976650a676c61640a676c616e63650a676c6172650a676c6173730a676c6964650a676c696d7073650a676c6f62650a676c6f6f6d0a676c6f72790a676c6f76650a676c6f770a676c75650a676f61740a676f64646573730a676f6c640a676f6f640a676f6f73650a676f72696c6c610a676f7370656c0a676f737369700a676f7665726e0a676f776e0a677261620a67726163650a677261696e0a6772616e740a67726170650a67726173730a677261766974790a67726561740a677265656e0a677269640a67726965660a677269740a67726f636572790a67726f75700a67726f770a6772756e740a67756172640a67756573730a67756964650a6775696c740a6775697461720a67756e0a67796d0a68616269740a686169720a68616c660a68616d6d65720a68616d737465720a68616e640a68617070790a686172626f720a686172640a68617273680a686172766573740a6861740a686176650a6861776b0a68617a6172640a686561640a6865616c74680a68656172740a68656176790a6865646765686f670a6865696768740a68656c6c6f0a68656c6d65740a68656c700a68656e0a6865726f0a68696464656e0a686967680a68696c6c0a68696e740a6869700a686972650a686973746f72790a686f6262790a686f636b65790a686f6c640a686f6c650a686f6c696461790a686f6c6c6f770a686f6d650a686f6e65790a686f6f640a686f70650a686f726e0a686f72726f720a686f7273650a686f73706974616c0a686f73740a686f74656c0a686f75720a686f7665720a6875620a687567650a68756d616e0a68756d626c650a68756d6f720a68756e647265640a68756e6772790a68756e740a687572646c650a68757272790a687572740a68757362616e640a6879627269640a6963650a69636f6e0a696465610a6964656e746966790a69646c650a69676e6f72650a696c6c0a696c6c6567616c0a696c6c6e6573730a696d6167650a696d69746174650a696d6d656e73650a696d6d756e650a696d706163740a696d706f73650a696d70726f76650a696d70756c73650a696e63680a696e636c7564650a696e636f6d650a696e6372656173650a696e6465780a696e6469636174650a696e646f6f720a696e6475737472790a696e66616e740a696e666c6963740a696e666f726d0a696e68616c650a696e68657269740a696e697469616c0a696e6a6563740a696e6a7572790a696e6d6174650a696e6e65720a696e6e6f63656e740a696e7075740a696e71756972790a696e73616e650a696e736563740a696e736964650a696e73706972650a696e7374616c6c0a696e746163740a696e7465726573740a696e746f0a696e766573740a696e766974650a696e766f6c76650a69726f6e0a69736c616e640a69736f6c6174650a69737375650a6974656d0a69766f72790a6a61636b65740a6a61677561720a6a61720a6a617a7a0a6a65616c6f75730a6a65616e730a6a656c6c790a6a6577656c0a6a6f620a6a6f696e0a6a6f6b650a6a6f75726e65790a6a6f790a6a756467650a6a756963650a6a756d700a6a756e676c650a6a756e696f720a6a756e6b0a6a7573740a6b616e6761726f6f0a6b65656e0a6b6565700a6b6574636875700a6b65790a6b69636b0a6b69640a6b69646e65790a6b696e640a6b696e67646f6d0a6b6973730a6b69740a6b69746368656e0a6b6974650a6b697474656e0a6b6977690a6b6e65650a6b6e6966650a6b6e6f636b0a6b6e6f770a6c61620a6c6162656c0a6c61626f720a6c61646465720a6c6164790a6c616b650a6c616d700a6c616e67756167650a6c6170746f700a6c617267650a6c617465720a6c6174696e0a6c617567680a6c61756e6472790a6c6176610a6c61770a6c61776e0a6c6177737569740a6c617965720a6c617a790a6c65616465720a6c6561660a6c6561726e0a6c656176650a6c6563747572650a6c6566740a6c65670a6c6567616c0a6c6567656e640a6c6569737572650a6c656d6f6e0a6c656e640a6c656e6774680a6c656e730a6c656f706172640a6c6573736f6e0a6c65747465720a6c6576656c0a6c6961720a6c6962657274790a6c6962726172790a6c6963656e73650a6c6966650a6c6966740a6c696768740a6c696b650a6c696d620a6c696d69740a6c696e6b0a6c696f6e0a6c69717569640a6c6973740a6c6974746c650a6c6976650a6c697a6172640a6c6f61640a6c6f616e0a6c6f62737465720a6c6f63616c0a6c6f636b0a6c6f6769630a6c6f6e656c790a6c6f6e670a6c6f6f700a6c6f74746572790a6c6f75640a6c6f756e67650a6c6f76650a6c6f79616c0a6c75636b790a6c7567676167650a6c756d6265720a6c756e61720a6c756e63680a6c75787572790a6c79726963730a6d616368696e650a6d61640a6d616769630a6d61676e65740a6d6169640a6d61696c0a6d61696e0a6d616a6f720a6d616b650a6d616d6d616c0a6d616e0a6d616e6167650a6d616e646174650a6d616e676f0a6d616e73696f6e0a6d616e75616c0a6d61706c650a6d6172626c650a6d617263680a6d617267696e0a6d6172696e650a6d61726b65740a6d617272696167650a6d61736b0a6d6173730a6d61737465720a6d617463680a6d6174657269616c0a6d6174680a6d61747269780a6d61747465720a6d6178696d756d0a6d617a650a6d6561646f770a6d65616e0a6d6561737572650a6d6561740a6d656368616e69630a6d6564616c0a6d656469610a6d656c6f64790a6d656c740a6d656d6265720a6d656d6f72790a6d656e74696f6e0a6d656e750a6d657263790a6d657267650a6d657269740a6d657272790a6d6573680a6d6573736167650a6d6574616c0a6d6574686f640a6d6964646c650a6d69646e696768740a6d696c6b0a6d696c6c696f6e0a6d696d69630a6d696e640a6d696e696d756d0a6d696e6f720a6d696e7574650a6d697261636c650a6d6972726f720a6d69736572790a6d6973730a6d697374616b650a6d69780a6d697865640a6d6978747572650a6d6f62696c650a6d6f64656c0a6d6f646966790a6d6f6d0a6d6f6d656e740a6d6f6e69746f720a6d6f6e6b65790a6d6f6e737465720a6d6f6e74680a6d6f6f6e0a6d6f72616c0a6d6f72650a6d6f726e696e670a6d6f73717569746f0a6d6f746865720a6d6f74696f6e0a6d6f746f720a6d6f756e7461696e0a6d6f7573650a6d6f76650a6d6f7669650a6d7563680a6d756666696e0a6d756c650a6d756c7469706c790a6d7573636c650a6d757365756d0a6d757368726f6f6d0a6d757369630a6d7573740a6d757475616c0a6d7973656c660a6d7973746572790a6d7974680a6e616976650a6e616d650a6e61706b696e0a6e6172726f770a6e617374790a6e6174696f6e0a6e61747572650a6e6561720a6e65636b0a6e6565640a6e656761746976650a6e65676c6563740a6e6569746865720a6e65706865770a6e657276650a6e6573740a6e65740a6e6574776f726b0a6e65757472616c0a6e657665720a6e6577730a6e6578740a6e6963650a6e696768740a6e6f626c650a6e6f6973650a6e6f6d696e65650a6e6f6f646c650a6e6f726d616c0a6e6f7274680a6e6f73650a6e6f7461626c650a6e6f74650a6e6f7468696e670a6e6f746963650a6e6f76656c0a6e6f770a6e75636c6561720a6e756d6265720a6e757273650a6e75740a6f616b0a6f6265790a6f626a6563740a6f626c6967650a6f6273637572650a6f6273657276650a6f627461696e0a6f6276696f75730a6f636375720a6f6365616e0a6f63746f6265720a6f646f720a6f66660a6f666665720a6f66666963650a6f6674656e0a6f696c0a6f6b61790a6f6c640a6f6c6976650a6f6c796d7069630a6f6d69740a6f6e63650a6f6e650a6f6e696f6e0a6f6e6c696e650a6f6e6c790a6f70656e0a6f706572610a6f70696e696f6e0a6f70706f73650a6f7074696f6e0a6f72616e67650a6f726269740a6f7263686172640a6f726465720a6f7264696e6172790a6f7267616e0a6f7269656e740a6f726967696e616c0a6f727068616e0a6f7374726963680a6f746865720a6f7574646f6f720a6f757465720a6f75747075740a6f7574736964650a6f76616c0a6f76656e0a6f7665720a6f776e0a6f776e65720a6f787967656e0a6f79737465720a6f7a6f6e650a706163740a706164646c650a706167650a706169720a70616c6163650a70616c6d0a70616e64610a70616e656c0a70616e69630a70616e746865720a70617065720a7061726164650a706172656e740a7061726b0a706172726f740a70617274790a706173730a70617463680a706174680a70617469656e740a706174726f6c0a7061747465726e0a70617573650a706176650a7061796d656e740a70656163650a7065616e75740a706561720a70656173616e740a70656c6963616e0a70656e0a70656e616c74790a70656e63696c0a70656f706c650a7065707065720a706572666563740a7065726d69740a706572736f6e0a7065740a70686f6e650a70686f746f0a7068726173650a706879736963616c0a7069616e6f0a7069636e69630a706963747572650a70696563650a7069670a706967656f6e0a70696c6c0a70696c6f740a70696e6b0a70696f6e6565720a706970650a706973746f6c0a70697463680a70697a7a610a706c6163650a706c616e65740a706c61737469630a706c6174650a706c61790a706c656173650a706c656467650a706c75636b0a706c75670a706c756e67650a706f656d0a706f65740a706f696e740a706f6c61720a706f6c650a706f6c6963650a706f6e640a706f6e790a706f6f6c0a706f70756c61720a706f7274696f6e0a706f736974696f6e0a706f737369626c650a706f73740a706f7461746f0a706f74746572790a706f76657274790a706f776465720a706f7765720a70726163746963650a7072616973650a707265646963740a7072656665720a707265706172650a70726573656e740a7072657474790a70726576656e740a70726963650a70726964650a7072696d6172790a7072696e740a7072696f726974790a707269736f6e0a707269766174650a7072697a650a70726f626c656d0a70726f636573730a70726f647563650a70726f6669740a70726f6772616d0a70726f6a6563740a70726f6d6f74650a70726f6f660a70726f70657274790a70726f737065720a70726f746563740a70726f75640a70726f766964650a7075626c69630a70756464696e670a70756c6c0a70756c700a70756c73650a70756d706b696e0a70756e63680a707570696c0a70757070790a70757263686173650a7075726974790a707572706f73650a70757273650a707573680a7075740a70757a7a6c650a707972616d69640a7175616c6974790a7175616e74756d0a717561727465720a7175657374696f6e0a717569636b0a717569740a7175697a0a71756f74650a7261626269740a726163636f6f6e0a726163650a7261636b0a72616461720a726164696f0a7261696c0a7261696e0a72616973650a72616c6c790a72616d700a72616e63680a72616e646f6d0a72616e67650a72617069640a726172650a726174650a7261746865720a726176656e0a7261770a72617a6f720a72656164790a7265616c0a726561736f6e0a726562656c0a72656275696c640a726563616c6c0a726563656976650a7265636970650a7265636f72640a72656379636c650a7265647563650a7265666c6563740a7265666f726d0a7265667573650a726567696f6e0a7265677265740a726567756c61720a72656a6563740a72656c61780a72656c656173650a72656c6965660a72656c790a72656d61696e0a72656d656d6265720a72656d696e640a72656d6f76650a72656e6465720a72656e65770a72656e740a72656f70656e0a7265706169720a7265706561740a7265706c6163650a7265706f72740a726571756972650a7265736375650a726573656d626c650a7265736973740a7265736f757263650a726573706f6e73650a726573756c740a7265746972650a726574726561740a72657475726e0a7265756e696f6e0a72657665616c0a7265766965770a7265776172640a72687974686d0a7269620a726962626f6e0a726963650a726963680a726964650a72696467650a7269666c650a72696768740a72696769640a72696e670a72696f740a726970706c650a7269736b0a72697475616c0a726976616c0a72697665720a726f61640a726f6173740a726f626f740a726f627573740a726f636b65740a726f6d616e63650a726f6f660a726f6f6b69650a726f6f6d0a726f73650a726f746174650a726f7567680a726f756e640a726f7574650a726f79616c0a7275626265720a727564650a7275670a72756c650a72756e0a72756e7761790a727572616c0a7361640a736164646c650a7361646e6573730a736166650a7361696c0a73616c61640a73616c6d6f6e0a73616c6f6e0a73616c740a73616c7574650a73616d650a73616d706c650a73616e640a736174697366790a7361746f7368690a73617563650a736175736167650a736176650a7361790a7363616c650a7363616e0a73636172650a736361747465720a7363656e650a736368656d650a7363686f6f6c0a736369656e63650a73636973736f72730a73636f7270696f6e0a73636f75740a73637261700a73637265656e0a7363726970740a73637275620a7365610a7365617263680a736561736f6e0a736561740a7365636f6e640a7365637265740a73656374696f6e0a73656375726974790a736565640a7365656b0a7365676d656e740a73656c6563740a73656c6c0a73656d696e61720a73656e696f720a73656e73650a73656e74656e63650a7365726965730a736572766963650a73657373696f6e0a736574746c650a73657475700a736576656e0a736861646f770a73686166740a7368616c6c6f770a73686172650a736865640a7368656c6c0a736865726966660a736869656c640a73686966740a7368696e650a736869700a7368697665720a73686f636b0a73686f650a73686f6f740a73686f700a73686f72740a73686f756c6465720a73686f76650a736872696d700a73687275670a73687566666c650a7368790a7369626c696e670a7369636b0a736964650a73696567650a73696768740a7369676e0a73696c656e740a73696c6b0a73696c6c790a73696c7665720a73696d696c61720a73696d706c650a73696e63650a73696e670a736972656e0a7369737465720a736974756174650a7369780a73697a650a736b6174650a736b657463680a736b690a736b696c6c0a736b696e0a736b6972740a736b756c6c0a736c61620a736c616d0a736c6565700a736c656e6465720a736c6963650a736c6964650a736c696768740a736c696d0a736c6f67616e0a736c6f740a736c6f770a736c7573680a736d616c6c0a736d6172740a736d696c650a736d6f6b650a736d6f6f74680a736e61636b0a736e616b650a736e61700a736e6966660a736e6f770a736f61700a736f636365720a736f6369616c0a736f636b0a736f64610a736f66740a736f6c61720a736f6c646965720a736f6c69640a736f6c7574696f6e0a736f6c76650a736f6d656f6e650a736f6e670a736f6f6e0a736f7272790a736f72740a736f756c0a736f756e640a736f75700a736f757263650a736f7574680a73706163650a73706172650a7370617469616c0a737061776e0a737065616b0a7370656369616c0a73706565640a7370656c6c0a7370656e640a7370686572650a73706963650a7370696465720a7370696b650a7370696e0a7370697269740a73706c69740a73706f696c0a73706f6e736f720a73706f6f6e0a73706f72740a73706f740a73707261790a7370726561640a737072696e670a7370790a7371756172650a73717565657a650a737175697272656c0a737461626c650a7374616469756d0a73746166660a73746167650a7374616972730a7374616d700a7374616e640a73746172740a73746174650a737461790a737465616b0a737465656c0a7374656d0a737465700a73746572656f0a737469636b0a7374696c6c0a7374696e670a73746f636b0a73746f6d6163680a73746f6e650a73746f6f6c0a73746f72790a73746f76650a73747261746567790a7374726565740a737472696b650a7374726f6e670a7374727567676c650a73747564656e740a73747566660a7374756d626c650a7374796c650a7375626a6563740a7375626d69740a7375627761790a737563636573730a737563680a73756464656e0a7375666665720a73756761720a737567676573740a737569740a73756d6d65720a73756e0a73756e6e790a73756e7365740a73757065720a737570706c790a73757072656d650a737572650a737572666163650a73757267650a73757270726973650a737572726f756e640a7375727665790a737573706563740a7375737461696e0a7377616c6c6f770a7377616d700a737761700a737761726d0a73776561720a73776565740a73776966740a7377696d0a7377696e670a7377697463680a73776f72640a73796d626f6c0a73796d70746f6d0a73797275700a73797374656d0a7461626c650a7461636b6c650a7461670a7461696c0a74616c656e740a74616c6b0a74616e6b0a746170650a7461726765740a7461736b0a74617374650a746174746f6f0a746178690a74656163680a7465616d0a74656c6c0a74656e0a74656e616e740a74656e6e69730a74656e740a7465726d0a746573740a746578740a7468616e6b0a746861740a7468656d650a7468656e0a7468656f72790a74686572650a746865790a7468696e670a746869730a74686f756768740a74687265650a7468726976650a7468726f770a7468756d620a7468756e6465720a7469636b65740a746964650a74696765720a74696c740a74696d6265720a74696d650a74696e790a7469700a74697265640a7469737375650a7469746c650a746f6173740a746f626163636f0a746f6461790a746f64646c65720a746f650a746f6765746865720a746f696c65740a746f6b656e0a746f6d61746f0a746f6d6f72726f770a746f6e650a746f6e6775650a746f6e696768740a746f6f6c0a746f6f74680a746f700a746f7069630a746f70706c650a746f7263680a746f726e61646f0a746f72746f6973650a746f73730a746f74616c0a746f75726973740a746f776172640a746f7765720a746f776e0a746f790a747261636b0a74726164650a747261666669630a7472616769630a747261696e0a7472616e736665720a747261700a74726173680a74726176656c0a747261790a74726561740a747265650a7472656e640a747269616c0a74726962650a747269636b0a747269676765720a7472696d0a747269700a74726f7068790a74726f75626c650a747275636b0a747275650a7472756c790a7472756d7065740a74727573740a74727574680a7472790a747562650a74756974696f6e0a74756d626c650a74756e610a74756e6e656c0a7475726b65790a7475726e0a747572746c650a7477656c76650a7477656e74790a74776963650a7477696e0a74776973740a74776f0a747970650a7479706963616c0a75676c790a756d6272656c6c610a756e61626c650a756e61776172650a756e636c650a756e636f7665720a756e6465720a756e646f0a756e666169720a756e666f6c640a756e68617070790a756e69666f726d0a756e697175650a756e69740a756e6976657273650a756e6b6e6f776e0a756e6c6f636b0a756e74696c0a756e757375616c0a756e7665696c0a7570646174650a757067726164650a7570686f6c640a75706f6e0a75707065720a75707365740a757262616e0a757267650a75736167650a7573650a757365640a75736566756c0a7573656c6573730a757375616c0a7574696c6974790a766163616e740a76616375756d0a76616775650a76616c69640a76616c6c65790a76616c76650a76616e0a76616e6973680a7661706f720a766172696f75730a766173740a7661756c740a76656869636c650a76656c7665740a76656e646f720a76656e747572650a76656e75650a766572620a7665726966790a76657273696f6e0a766572790a76657373656c0a7665746572616e0a766961626c650a76696272616e740a766963696f75730a766963746f72790a766964656f0a766965770a76696c6c6167650a76696e746167650a76696f6c696e0a7669727475616c0a76697275730a766973610a76697369740a76697375616c0a766974616c0a76697669640a766f63616c0a766f6963650a766f69640a766f6c63616e6f0a766f6c756d650a766f74650a766f796167650a776167650a7761676f6e0a776169740a77616c6b0a77616c6c0a77616c6e75740a77616e740a776172666172650a7761726d0a77617272696f720a776173680a776173700a77617374650a77617465720a776176650a7761790a7765616c74680a776561706f6e0a776561720a77656173656c0a776561746865720a7765620a77656464696e670a7765656b656e640a77656972640a77656c636f6d650a776573740a7765740a7768616c650a776861740a77686561740a776865656c0a7768656e0a77686572650a776869700a776869737065720a776964650a77696474680a776966650a77696c640a77696c6c0a77696e0a77696e646f770a77696e650a77696e670a77696e6b0a77696e6e65720a77696e7465720a776972650a776973646f6d0a776973650a776973680a7769746e6573730a776f6c660a776f6d616e0a776f6e6465720a776f6f640a776f6f6c0a776f72640a776f726b0a776f726c640a776f7272790a776f7274680a777261700a777265636b0a77726573746c650a77726973740a77726974650a77726f6e670a796172640a796561720a79656c6c6f770a796f750a796f756e670a796f7574680a7a656272610a7a65726f0a7a6f6e650a7a6f6f0a
ricmoo commented 7 months ago

Ok... So that string seems completely fine. Here are a few more things to try out (I'm hoping we can figure this out soon ;)):

console.log({
  goodTypeArray: (ethers.getBytes("0x") instance Uint8Array),
  testHex: ethers.keccak256("0x1234"),
  testData: ethers.keccak256(new Uint8Array([ 0x12, 0x34 ])),
});

Fingers crossed this reveals something interesting. :)

pdcolandrea commented 7 months ago

Ok... So that string seems completely fine. Here are a few more things to try out (I'm hoping we can figure this out soon ;)):

console.log({
  goodTypeArray: (ethers.getBytes("0x") instance Uint8Array),
  testHex: ethers.keccak256("0x1234"),
  testData: ethers.keccak256(new Uint8Array([ 0x12, 0x34 ])),
});

Fingers crossed this reveals something interesting. :)

Haha, thanks for working w/ me on this one; I know it's a pain in the butt. This also seems to look fine

    console.log({
      goodTypeArray: ethers.getBytes("0x") instanceof Uint8Array,
      testHex: ethers.keccak256("0x1234"),
      testData: ethers.keccak256(new Uint8Array([0x12, 0x34])),
    });

output

{"goodTypeArray": true, "testData": "0xb1949caf103fb73af38951e36dfd321dea3b61b9c7a0a0e5dd9eb6d2c8dced5e", "testHex": "0xb1949caf103fb73af38951e36dfd321dea3b61b9c7a0a0e5dd9eb6d2c8dced5e"}

While debugging thought it would be worth a shot to try and..... remove the checksum? Obviously still an underlying issue somewhere; but after commenting out the initial word list failure & again in the mnemonic check mnemonic.js, Android started complaining about TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[5], "@noble/curves/secp256k1").secp256k1'). Hope it helps.

gessic-apps commented 4 months ago

@pdcolandrea @ricmoo Have yall figured this out?

pdcolandrea commented 4 months ago

@pdcolandrea @ricmoo Have yall figured this out?

unfortunately no; we were pretty deep into an ancient version of react-native, and honestly, updating it was a bit of a nightmare. We gave it our best shot, but it just wasn't happening – too many quirks and snags. In the end, we decided to bite the bullet and start from scratch moving everything over manually. after upgrading - all seemed to work fine.

my guess a polyfill issue