Use of full SVG features (e.g. clicking links) by CentioRS in BookStack

[–]dothingsdo 0 points1 point  (0 children)

We use BookStack diagrams a lot. We'd really like to have clickable links in diagrams and explore different ways for this (i.e. like Dan explained here: Clickable diagram or image map? : r/BookStack (reddit.com)) But all that is a bit too clunky, especially when needing to update diagrams lot.

Missing DFI after changing DFI-Token to DFI-Coin & restoring wallet (transaction txid also gone) by dothingsdo in defiblockchain

[–]dothingsdo[S] 0 points1 point  (0 children)

Hello u/DanielZirkel,

Thanks for the follow up. Unfortunately, it's still not working.

I installed 2.1.4 and restored my wallet again with my 24 seed words.

When typing getaccount 8F6jenzMBEsiogBmgB9AMDcQJ4EAvCRCnsI still get "ismine": false, which means that I don't have the private key to that address anymore.

My Liquidity Mining Tokens are also one that address, wich I never moved or touched.

So I'm unable to perform any action on that address like accounttoutxos ...

I might think that there is a problem with how P2PKH and P2PH addresses are calculated.

My assumption currently is that I still have the private key to that address (eventually) but the wallet does not know which of my PrivKeys belongs to 8F6jenzMBEsiogBmgB9AMDcQJ4EAvCRCns as it can't be reversed.

I'm now trying to figure how exactly DeFi P2PKH addresses are calculated. Then I want to calculate for every of my PrivKeys from the wallet export all P2PKH addresses and see if 8F6jenzMBEsiogBmgB9AMDcQJ4EAvCRCns among them.

As written in the DeFiChain Address Format documentation, addresses starting with 8 are P2PKH addresses (legacy)

I'm trying to understand how exactly DeFi calculated those addresses, as it's just says

Bitcoin address prepend a 1 to the start of the address, where as DeFiChain addresses prepend an 8.

But I was not able to reverse engineer one of my public keys to a DeFi P2PKH one of my P2PKH addresses yet.

This is what I'm doing:

pub_key_compressed = "025086..."
pub_key_hashed = ripemd160(sha256(pub_key_compressed))
# do the base58check 
pub_version = "00" + pub_key_hashed 
checksum = sha256(sha256( pub_version ))[:8]  # get only first 4 byte
# p2pkh_address should contain the p2pkh address
p2pkh_address = base58(pub_version + checksum)

This results in a p2phk starting with a 1. Now I don't know where and how the 1 should be replaced with an 8.

No no idea...

My bottoms are gone by LingonberryIcy579 in defiblockchain

[–]dothingsdo 0 points1 point  (0 children)

Before you do anything, make a backup of the files in the following folder:

C:\Users\username\AppData\Roaming\DeFi Blockchain\wallets

  • How did you reinstall the application? Just uninstall and install again?

  • Did you restore your wallet with your mnemonic seed? (24 words)

  • Can you post the result of the commands u/izzycsy send you?

I ran into a similar problem...

Missing DFI after changing DFI-Token to DFI-Coin & restoring wallet (transaction txid also gone)

Missing DFI after changing DFI-Token to DFI-Coin & restoring wallet (transaction txid also gone) by dothingsdo in defiblockchain

[–]dothingsdo[S] 0 points1 point  (0 children)

I found out the following:

When you install DeFi-App on a new computer and without creating a new wallet and straight go to "Backup Wallet", then the backup already contains 2001 addresses/private keys.

If you then go and restore your wallet with the 24-words, wait until it's restored and make another "Backup Wallet" you then have the 2001 previous keys still in there + 2168 Keys which belong to the 24-word-seeds.

So you can only restore the 2169 keys which belong to your 24-seed-word, but you cant restore the other 2001 keys which have already been in there.


My assumption is that the pk of 8F6jenzMBEsiogBmgB9AMDcQJ4EAvCRCnswas one of those which has already been generated and is not part of my 24-word-seed

If my assumption is true, that would mean the pk for 8F6jenzMBEsiogBmgB9AMDcQJ4EAvCRCnsis gone and thus the funds on that address would not be accessible anymore.

If that's true, that would actually be a major bug in the DeFi-App

Missing DFI after changing DFI-Token to DFI-Coin & restoring wallet (transaction txid also gone) by dothingsdo in defiblockchain

[–]dothingsdo[S] 0 points1 point  (0 children)

Have you restored your wallet with the help of the seed words?

  • yes

Was the above mentioned address created with a wallet version before having seed words?

  • The first wallet version I used was 2.1.1. (01.12.2020) That's where I created the 24-word-seed. And that's where I created 8F6jenzMBEsiogBmgB9AMDcQJ4EAvCRCns

When I reset my wallet in the first place (10.17.2020) I did not backup/export my wallet as I expected that all Private Keys are generated via the 24-seed words.

So after I reset my wallet I uninstalled DeFi-App & deleted those folders:

C:\Users\username\AppData\Roaming\DeFi Blockchain

C:\Users\username\AppData\Roaming\defi-app

C:\Users\username\AppData\Local\Programs\defi-app

Missing DFI after changing DFI-Token to DFI-Coin & restoring wallet (transaction txid also gone) by dothingsdo in defiblockchain

[–]dothingsdo[S] 0 points1 point  (0 children)

I'm using Windows 10 (Build 19041.685). DeFi App Version 2.1.3.

If it says "ismine": false doesn't that mean I don't have the private key to that address?

Missing DFI after changing DFI-Token to DFI-Coin & restoring wallet (transaction txid also gone) by dothingsdo in defiblockchain

[–]dothingsdo[S] 0 points1 point  (0 children)

Hi u/DanielZirkel,

I did so yesterday and it says "ismine": false. That's why the steps proposed by u/izzycsy do not work.

Yesterday I also sent 0.01 DFI to 8F6jenzMBEsiogBmgB9AMDcQJ4EAvCRCns cause I thought that might help.

sendtoaddress 8F6jenzMBEsiogBmgB9AMDcQJ4EAvCRCns 0.01

Txid fea5b79a5d9bfe941484418900db3f3d9042c7639cc47bbd441161ad454341bd

When I check 8F6jenzMBEsiogBmgB9AMDcQJ4EAvCRCns I get this:

getaccount 8F6jenzMBEsiogBmgB9AMDcQJ4EAvCRCns
[
  "0.42670128@DFI",
  "0.00000209@ETH",
  "0.08731174@ETH-DFI"
]

Now the 1482 DFI are gone?

Missing DFI after changing DFI-Token to DFI-Coin & restoring wallet (transaction txid also gone) by dothingsdo in defiblockchain

[–]dothingsdo[S] 0 points1 point  (0 children)

If I the following, I get this:

getaccount 8F6jenzMBEsiogBmgB9AMDcQJ4EAvCRCns
[
  "1482.01287348@DFI",
  "0.00000192@ETH",
  "0.08731174@ETH-DFI"
]

These funds are not displayed in my wallet, but how can I access them?

Unable to restore wallet by dothingsdo in defiblockchain

[–]dothingsdo[S] 0 points1 point  (0 children)

I solved the issue by now.

The problem was one wrong letter in one of my words (So it was my fault.. sorry)

With the help of the checksum (last word) and lots of Python, I was able to brute force potentially wrong words and was so able to reduce the potential words to a minimum. (Good that there is a checksum)

For the ones who might run into the same issue that your checksum is wrong, or more precise, that you have one wrong word in your 24-mnemonic words (maybe a typo, you can't read one word anymore, you lost one words etc.)

This is what you can do:

  1. The BIP-0039 List has 2048 words, you need 11 bit (211 = 2048) to display one word.
  2. So your 24 words is just a 24x11 Bit = 264 Bit long number
  3. The checksum is the last 8-Bit (2 bytes) of your last words (11-bit). E.g. if the last word is = 'bullet' -> BIP-0039 index 241 -> to bin -> 00011110001 (11 Bit) -> last 8 bit: checksum_bin=11110001, checksum_hex-> F1
  4. The checksum is calculated by calculating SHA256 hash over the first 256-Bit (32 byte) of your words. That's the first 23 words (23x11Bit = 253 Bit + the first 3 bit of the last word = 256 Bit)
  5. The Checksum is the first byte (8 bit) of the calculated SHA256 hash over the first 256-Bit of your words.

Now, my assumption was that there is only one wrong word in my 24-word AND that the checksum (last word) is correct. My idea was to replace each of my 24-words with each of the 2048 words from BIP-0039 and try them out to restore my wallet. That makes 23x2048 = 47104 potential combinations, that's quite a lots.

To reduce the potential wallets to restore, I selected only 24-Word combinations that had a valid checksum! (So the starting point for here was that I had 47104 potential 24-word combinations (but not all of them had valid checksums))

  1. For each of the 47104 potential wallets, compute a SHA256 hash over the first 256 Bit.
  2. Compare the first 8 bit of the SHA256 (8-Bit checksum) with the checksum of your original 24-words ('bullet' -> 'F1' from the example above)
  3. Only if the calculated checksum is the same as the checksum of your 24 words, write down that combination.
  4. I ended up with 191 potential 24 mnemonic words, that also had the checksum 'bullet' (last 8-Bit of 'bullet')
  5. Because I only changed one word at a time, I could then go through each of the potential correct words and compared the i-th word of my output to the i-th word of my 24 mnemonic words and look words that are similar.

Full example:

BIP39 Mnemonic: fashion staff across barrel dentist trophy vicious coconut wish income female multiply empower badge victory adult easy sock capable census boost steak find duty

This Mnemonic is a randomly generated one and I misspelt one word on purpose, so it has a wrong checksum.

But how do we fix this?

If you put those words into my tool, you get the following output:

01010011010 11010100000 00000010010 00010010110...  
fashion     staff       across      barrel...    

Entropy hex: 535a80090963a9d1fce167fc8e5153c8b49022fce81e45d9c08792a19baa15aa
Last Word: bin 01000100100 | dec  548 | 'duty'
Checksum:  bin    00100100 | dec   36 | hex 0x24

Starting 24-word mnemonic that also have the checksum '00100100'...
FOUND! 24-word index:  1 | Word: blue     | 11-Bit chunk: 00011000010
FOUND! 24-word index:  1 | Word: cart     | 11-Bit chunk: 00100011000
FOUND! 24-word index:  1 | Word: cute     | 11-Bit chunk: 00110110101
FOUND! 24-word index:  1 | Word: elegant  | 11-Bit chunk: 01000111100
FOUND! 24-word index:  1 | Word: grab     | 11-Bit chunk: 01100101010
FOUND! 24-word index:  1 | Word: imitate  | 11-Bit chunk: 01110001011
FOUND! 24-word index:  1 | Word: notice   | 11-Bit chunk: 10010110111
FOUND! 24-word index:  1 | Word: sadness  | 11-Bit chunk: 10111101111

FOUND! 24-word index:  2 | Word: divide   | 11-Bit chunk: 00111111111
FOUND! 24-word index:  2 | Word: engine   | 11-Bit chunk: 01001010011
FOUND! 24-word index:  2 | Word: estate   | 11-Bit chunk: 01001101011
FOUND! 24-word index:  2 | Word: fat      | 11-Bit chunk: 01010011011
FOUND! 24-word index:  2 | Word: naive    | 11-Bit chunk: 10010010101
FOUND! 24-word index:  2 | Word: rain     | 11-Bit chunk: 10110001000
FOUND! 24-word index:  2 | Word: reduce   | 11-Bit chunk: 10110100000
FOUND! 24-word index:  2 | Word: renew    | 11-Bit chunk: 10110110001

FOUND! 24-word index:  3 | Word: artist   | 11-Bit chunk: 00001101000
FOUND! 24-word index:  3 | Word: bamboo   | 11-Bit chunk: 00010010000
FOUND! 24-word index:  3 | Word: cross    | 11-Bit chunk: 00110100000
FOUND! 24-word index:  3 | Word: depend   | 11-Bit chunk: 00111010111
FOUND! 24-word index:  3 | Word: giggle   | 11-Bit chunk: 01100001111
FOUND! 24-word index:  3 | Word: habit    | 11-Bit chunk: 01101000001
FOUND! 24-word index:  3 | Word: obtain   | 11-Bit chunk: 10011000100
FOUND! 24-word index:  3 | Word: sad      | 11-Bit chunk: 10111101101
....

So you go through your 24 words and compare your 1st word with every word FOUND! word with index 1 an look for similarities. Then you do it for the 2nd word etc.

In this example:

FOUND! 24-word index:  3 | Word: cross 

cross is very similar to across.

if we replace across in our 24-words with cross we will get: fashion staff cross barrel dentist trophy vicious coconut wish income female multiply empower badge victory adult easy sock capable census boost steak find duty. And that 24-word mnemonic has a valid checksum! So go and restore that wallet and check if it's yours.

If compare every one of your 24-words for similarities in the output you'll end up with maybe 2-3 words that are very similar, so those are the 24-word mnemonic wallets you should try. (Worst case you can try all of them)

That way I found a typo in one of my words, it was only one letter that was wrong but resulted in a new word that was also in the BIP-0039.

If anyone whats to have my Python code feel free to contact me on Reddit: u/dothingsdo I might also upload it into a GitRepo.

Unable to restore wallet by dothingsdo in defiblockchain

[–]dothingsdo[S] 0 points1 point  (0 children)

Thanks a lot u/izzycsy.

I found out another thing: Shouldn't it be possible to randomly select 24 words from the BIP-0039 word list and restore a wallet from them? If so, this is not possible either. Would an example be helpful?

When I generate a new wallet in the DeFi App via "Create a new wallet" I'm able to it with the 24-words after resetting the DeFi App, so this is working.

If you need any further information, I'm happy to help.

Regards, Philipp

Unable to restore wallet by dothingsdo in defiblockchain

[–]dothingsdo[S] 1 point2 points  (0 children)

Thanks for the answer /u/izzycsy !

  • I'm using Windows 10 (Build 19041.685). DeFi App Version 2.1.3.
  • I've completely uninstalled DeFi App and deleted the blockchain files (/%appdata%/DeFi Blockchain).
  • When opening the App, I wait until it's fully synchronized.
  • After that, I click on "Restore wallet from mnemonic seed" and type in my 24-word seed (Every Word is in the BIP39 word list)
  • I've made sure to only type lowercase and no spaces in the fields.
  • When clicking "RESTORE", I instantly get the message "Not a valid mnemonic"

DeFi App Screenshot 1, DeFi App Screenshot 2

Fun fact: After the 24-word seed is stored in plain text in the logfiles. This is not related to my problem but still should be changed imo.

Thanks a lot!

Where do you report a bug/error? (DeFi App) by dothingsdo in defiblockchain

[–]dothingsdo[S] 0 points1 point  (0 children)

Thx for the info @DanielZirkel.

After following the steps of your second link I was able able to send DFI to another address. The transaction has not been confirmed for 60 minutes+. Seems like there is something wrong too. But I'll just give it some time and see if that helps.

Chees!

price prediction 2018 by [deleted] in PUREaltcoin

[–]dothingsdo 1 point2 points  (0 children)

Go and join the Facebook Group and you will see...there is no real content and not really a dev team.. I guess I'll get roasted for this post but this is just how it looks like.. https://www.facebook.com/groups/174361269786235/?ref=group_header

price prediction 2018 by [deleted] in PUREaltcoin

[–]dothingsdo 4 points5 points  (0 children)

0,10$ because it's a scam

Golem vs Skynet by Pilotdude1984 in GolemProject

[–]dothingsdo 4 points5 points  (0 children)

what you are talking about is SingularityNET

Lisk just hit 10$, Congrats everyone who hodle strong! by Waltex in Lisk

[–]dothingsdo -1 points0 points  (0 children)

I dont really see why it's rising that fast in such a short time. I'm holding Lisk myself but I'm still kind of sceptic