Bitcoin Forum
October 28, 2024, 12:05:24 PM *
News: Bitcoin Pumpkin Carving Contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BIP39-XOR 6.0.0 released  (Read 173 times)
Greg Tonoski (OP)
Member
**
Offline Offline

Activity: 143
Merit: 82


View Profile
September 23, 2024, 08:11:45 AM
Merited by dkbit98 (1)
 #1

I'm announcing the release of BIP39-XOR 6.0.0: "https://github.com/GregTonoski/BIP39-XOR/" and look forward to feedback.
DaveF
Legendary
*
Offline Offline

Activity: 3640
Merit: 6645


Crypto Swap Exchange


View Profile WWW
September 24, 2024, 01:18:41 PM
 #2

This, looks like an answer in search of a question.
Not saying your work is bad, but what issue does this really solve and if people start using it how long until someone comes back with the "I have this seed and I can't get it to work" questions.

I could be missing something, and if I am let me know.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Greg Tonoski (OP)
Member
**
Offline Offline

Activity: 143
Merit: 82


View Profile
September 25, 2024, 07:28:12 AM
 #3

Thanks for feedback.

The main issue that it solves is the storage of secret in an encrypted form. It is not secure to keep (copy of) secret BIP-39 in plaintext (written on a paper as an example). Instead, it could be encrypted with the BIP39-XOR.

There are also other use cases. I will elaborate on them in the future. They are discussed in https://bitcointalk.org/index.php?topic=5433064.0.

I agree that "I have this seed and I can't get it to work" questions may arise. They are already quite common even if BIP39-XOR isn't used. They are not caused by the tool itself so I think they are not an argument against the tool (and encryption).
Charles-Tim
Legendary
*
Offline Offline

Activity: 1708
Merit: 5187


Leading Crypto Sports Betting & Casino Platform


View Profile
September 25, 2024, 07:57:06 AM
 #4

What I think about this is that passphrase is very similar to encryption. Although, it is not encryption but word extension in a way your seed phrase can still be seen and not encrypted. Encryption will make the seed phrase not seen. But they are similar because if same characters are used to setup the passphrase or encryption, the same computational power is required to brute force both the passphrase or encryption. So if you use a strong passphrase, there should be no problem.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
Pmalek
Legendary
*
Offline Offline

Activity: 2926
Merit: 7530


Playgram - The Telegram Casino


View Profile
September 25, 2024, 12:21:34 PM
Merited by DaveF (1)
 #5

In these situations, it is also important to think about the heirs and those who will inherit your bitcoin. Especially, if they aren't that interested in the technology and only look at the financial value of the asset. I have never been a fan of overcomplicating things. Find good hiding places for your seeds and passphrases. That's good enough. Explaining to your family how to import a seed in plaintext is easier on their part than if they also have to remember how to decrypt it first. Plus, if you have to write down the decryption process, it kind of defeats the purpose of it. If someone finds your seed, they can also find the how-to-decrypt-the-seed guide.   

▄▄███████▄▄███████
▄███████████████▄▄▄▄▄
▄████████████████████▀░
▄█████████████████████▄░
▄█████████▀▀████████████▄
██████████████▀▀█████████
████████████████████████
██████████████▄▄█████████
▀█████████▄▄████████████▀
▀█████████████████████▀░
▀████████████████████▄░
▀███████████████▀▀▀▀▀
▀▀███████▀▀███████

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
 
Playgram.io
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▄▄▄░░
▀▄







▄▀
▀▀▀░░
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
██████▄▄███████▄▄████████
███▄███████████████▄░░▀█▀
███████████░█████████░░
░█████▀██▄▄░▄▄██▀█████░
█████▄░▄███▄███▄░▄█████
███████████████████████
███████████████████████
██░▄▄▄░██░▄▄▄░██░▄▄▄░██
██░░░░██░░░░██░░░░████
██░░░░██░░░░██░░░░████
██▄▄▄▄▄██▄▄▄▄▄██▄▄▄▄▄████
███████████████████████
███████████████████████
 
PLAY NOW

on Telegram
[/
Greg Tonoski (OP)
Member
**
Offline Offline

Activity: 143
Merit: 82


View Profile
September 25, 2024, 01:50:23 PM
 #6

What I think about this is that passphrase is very similar to encryption. Although, it is not encryption but word extension in a way your seed phrase can still be seen and not encrypted. (...)
It is important to consider the distinction that a "passphrase"/"13 word" is "hardcoded" (not designed to be modified) whereas XOR keys may be discarded or replaced with new ones.
satscraper
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1601



View Profile
September 26, 2024, 05:35:03 AM
 #7


The main issue that it solves is the storage of secret in an encrypted form.

I support the idea to keep SEED in encrypted form but (as I use digital media for this purpose) I have chosen OpenPGP technique  to encrypt/decrypt my SEED (see here) and use for this the set of cloned  pgp hardware keys  which absolve me from the commitment to keep in memory decryption phrase. However I have encountered those users who use XOR for SEED encryption . Hope they will find useful  your BIP39-XOR implementation.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
DaveF
Legendary
*
Offline Offline

Activity: 3640
Merit: 6645


Crypto Swap Exchange


View Profile WWW
September 26, 2024, 03:07:55 PM
 #8

What I think about this is that passphrase is very similar to encryption. Although, it is not encryption but word extension in a way your seed phrase can still be seen and not encrypted. (...)
It is important to consider the distinction that a "passphrase"/"13 word" is "hardcoded" (not designed to be modified) whereas XOR keys may be discarded or replaced with new ones.

If I have a good valid seed it will work. It's when people do things to it to make it more secure or less obvious what it is, is when we run into the 'I can't get it to work'
Since the XOR keys can be discarded / changed it's just IMO another thing to go wrong.

Not saying it's a bad idea, just have to find a way to make it less vulnerable to humans being idiots. Which as we know is the hard part of doing anything.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
dkbit98
Legendary
*
Offline Offline

Activity: 2394
Merit: 7529



View Profile WWW
September 27, 2024, 06:10:22 PM
 #9

The main issue that it solves is the storage of secret in an encrypted form. It is not secure to keep (copy of) secret BIP-39 in plaintext (written on a paper as an example). Instead, it could be encrypted with the BIP39-XOR.
It's not a bad idea but it adds additional complexity to everything, and that is not good for everbody.
Another interesting way of encrypting seed words is with Satochip Seedkeeper cards, but negative side is that it's not free like BIP39-XOR.
I wonder how your solutions could be integrated with hardware wallets, if you can say something about that.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Greg Tonoski (OP)
Member
**
Offline Offline

Activity: 143
Merit: 82


View Profile
September 28, 2024, 07:57:21 AM
 #10

There isn't anything blocking anybody to implement XOR encryption and embed (integrate) it in a hardware wallet. As a matter of fact, it has been widely used in military grade applications for more than a century. There is (imperfect) attempt by the Bitcoin harwdare wallet Coldcard producer (SeedXOR) and unfinished one in SeedSigner firmware. I don't know about other instances.

XOR as a solution (technique) is more than 100 years old. It's not something invented by me.
Forsyth Jones
Hero Member
*****
Offline Offline

Activity: 1330
Merit: 905


Duelbits - Play for Free | Win for Real


View Profile WWW
September 28, 2024, 09:41:07 PM
 #11

Indeed, keeping a mnemonic written down offline has been challenging if you are concerned about physical access to the mnemonic. There are several solutions that mitigate this problem, such as Seed XOR. Although I have not used it yet, I find the tool quite useful and, if used correctly. The most interesting thing is that the seed XOR presents good plausible deniability.

I have already discussed similar methods with good plausible deniability, such as deriving a hidden mnemonic through BIP85 and Seed-OTP. Although Seed-OTP encrypts the original seed with completely different words, it doesn't create a valid seed, presenting a lack of plausible deniability. I then proposed to modify the last word generated by seed-otp with the last word that presents a checksum for the encrypted seed.

Unfortunately, I can't say which of these options are the most cryptographically secure, although in digital security, the most recommended is to use what has already been audited and tested extensively by the community. The more public and accessible the encryption/backup method is, the greater the chance that it will be more easily used and accessible. It will all depend on the level of paranoia and the risk acceptance of each method.

The interesting thing is that all 3 methods have plausible deniability (if you also take into account my seed-otp approach by modifying the last word), if someone accesses the encrypted/decoy mnemonic, they will not be able to access the original wallet, even if it doesn't have a BIP39 passphrase.

And if the real wallet is protected by a BIP39 passphrase, even if someone gets both its encrypted/decoy mnemonic + passphrase, they will not be able to access the real wallet that contains the funds!

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
Greg Tonoski (OP)
Member
**
Offline Offline

Activity: 143
Merit: 82


View Profile
September 29, 2024, 06:09:05 AM
 #12

Thanks for feedback. I agree that plausible deniability is a feature that the BIP39-XOR tool may be used for.

Word of caution: there aren't different 3 XOR methods and names. As a matter of fact there is only one - just like there is only one correct addition, multiplication etc. There may be many implementations and they may differ due to bugs (and look/cosmetics like mixed visual encoding in so-called "seed-otp" etc.). I would ask not to perpetuate confusion arising from giving various names to the same technique: "seed-otp", "seedxor", "bip39-xor" are names of implementations/programs that attempt to acheive the same using the same XOR cipher.
Yamane_Keto
Hero Member
*****
Offline Offline

Activity: 616
Merit: 510



View Profile WWW
October 01, 2024, 11:32:52 AM
 #13

Does it work with electrum seed or can I customize new words other than BIP39 words.

How would I act if the program link was removed from github, can I return to wallet seed using any other open source program?

Apart from increasing complexity, I think you need to save the encryption digitally.

えいごをはなせますか。
pooya87
Legendary
*
Offline Offline

Activity: 3612
Merit: 10970


Crypto Swap Exchange


View Profile
October 02, 2024, 05:36:16 AM
 #14

How would I act if the program link was removed from github, can I return to wallet seed using any other open source program?
Considering the fact that the algorithm used here is not documented anywhere and it only exists in the code on Github, you can only recover it using that code. Either you have to keep a backup of it locally for future use or you have to understand the algorithm yourself to be able to reproduce it if the code was not available or was not working for whatever reason.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Greg Tonoski (OP)
Member
**
Offline Offline

Activity: 143
Merit: 82


View Profile
October 02, 2024, 01:08:41 PM
Last edit: October 03, 2024, 11:23:15 AM by Greg Tonoski
 #15

Does it work with electrum seed or can I customize new words other than BIP39 words.
I recommend not to use BIP39-XOR with Electrum "seed" because of its differences from BIP39 (specification). Auto-generated "seeds" will not be compliant with Electrum ones. However, XOR results of manually (user) input "seed" should be identical in both cases (Electrum "seed" and BIP39).

How would I act if the program link was removed from github, can I return to wallet seed using any other open source program?
Yes, you could use another open source program, e.g. "https://bitcoiner.guide/seed/", "https://spacehodler.github.io/SeedXOR/".

Considering the fact that the algorithm used here is not documented anywhere and it only exists in the code on Github, you can only recover it using that code. Either you have to keep a backup of it locally for future use or you have to understand the algorithm yourself to be able to reproduce it if the code was not available or was not working for whatever reason.
False.

Thank you for feedback, again.

Can I ask you to consider giving a star in GitHub if you find https://github.com/GregTonoski/BIP39-XOR interesting, please? More than 50 starts are required by package repositories, e.g. brew.sh to accept software for distribution.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!