KeychainMDIP / kc

Reference implementation of the Multi Dimensional Identity Protocol (MDIP)
MIT License
8 stars 2 forks source link

backup-wallet fails in recent upgrades #220

Closed Flaxscrip closed 1 week ago

Flaxscrip commented 2 weeks ago

I'm seeing the following error across my nodes.

$ ./kc backup-wallet
TypeError: Cannot read properties of undefined (reading 'fromJSON')
    at Module.generateHDKeyJSON (file:///home/flaxscrip/kc/cipher-lib.js:45:18)
    at hdKeyPair (file:///home/flaxscrip/kc/keymaster-lib.js:355:26)
    at Module.backupWallet (file:///home/flaxscrip/kc/keymaster-lib.js:247:21)
    at Command.<anonymous> (file:///home/flaxscrip/kc/keychain-cli.js:98:41)
    at Command.listener [as _actionHandler] (/home/flaxscrip/kc/node_modules/commander/lib/command.js:494:17)
    at /home/flaxscrip/kc/node_modules/commander/lib/command.js:1296:65
    at Command._chainOrCall (/home/flaxscrip/kc/node_modules/commander/lib/command.js:1193:12)
    at Command._parseCommand (/home/flaxscrip/kc/node_modules/commander/lib/command.js:1296:27)
    at /home/flaxscrip/kc/node_modules/commander/lib/command.js:1082:27
    at Command._chainOrCall (/home/flaxscrip/kc/node_modules/commander/lib/command.js:1193:12)
Flaxscrip commented 2 weeks ago

@macterra - Let me know if the backup-wallet function works on your end. If it works for you, the problem is how I manage/update my nodes.

Flaxscrip commented 2 weeks ago

Similar error with other kc commands like encrypt-file.

$ ./kc encrypt-file ~/chirality-512.png flaxscrip
TypeError: Cannot read properties of undefined (reading 'fromJSON')
    at Module.generateHDKeyJSON (file:///mnt/mdip-data/kc/cipher-lib.js:45:18)
    at fetchKeyPair (file:///mnt/mdip-data/kc/keymaster-lib.js:364:26)
    at Module.encrypt (file:///mnt/mdip-data/kc/keymaster-lib.js:374:21)
    at Command.<anonymous> (file:///mnt/mdip-data/kc/keychain-cli.js:277:47)
    at Command.listener [as _actionHandler] (/mnt/mdip-data/kc/node_modules/commander/lib/command.js:494:17)
    at /mnt/mdip-data/kc/node_modules/commander/lib/command.js:1296:65
    at Command._chainOrCall (/mnt/mdip-data/kc/node_modules/commander/lib/command.js:1193:12)
    at Command._parseCommand (/mnt/mdip-data/kc/node_modules/commander/lib/command.js:1296:27)
    at /mnt/mdip-data/kc/node_modules/commander/lib/command.js:1082:27
    at Command._chainOrCall (/mnt/mdip-data/kc/node_modules/commander/lib/command.js:1193:12)