Search content
Sort by

Showing 20 of 99 results by Sanka555
Post
Topic
Board Collectibles
Re: [ANN] [SUCCESS] 10 year Polymerbit Note 03/01/2019
by
Sanka555
on 11/01/2024, 18:57:41 UTC
Any of these left?))))))))))  Grin Grin Grin
Post
Topic
Board BitcoinJ
Topic OP
Taproot getting an address
by
Sanka555
on 26/12/2023, 10:29:01 UTC
getting an address

I use bitcoin to easily get a bitcoin address from Seed

Quote
byte[] seed = PBKDF2SHA512.derive(seedCode, "mnemonic", 2048, 64);
      DeterministicKey deterministicKey = HDKeyDerivation.createMasterPrivateKey(seed);
      deterministicKey = HDKeyDerivation.createMasterPrivateKey(seed);
      deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(0, true));
      deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(0, false));
      for (int i = 0; i <= deep; i++) {
         temp = (Address.fromKey(MainNetParams.get(),
               HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(i, false)),
               Script.ScriptType.P2WPKH)).toString();
         adressAndseed.add(temp + " " + seedCode);
      }

how do I change this code to get a taproot type address? the latest version of bitcoin does not help

Tell me please.
Post
Topic
Board Development & Technical Discussion
Re: Collection of 18.509 found and used Brainwallets
by
Sanka555
on 07/11/2023, 05:25:08 UTC
So far I've seen only those online lists of brainwallets. I wonder if there are others available?

Most of you probably know this science paper "The Bitcoin Brain Drain: Examining the Use and Abuse of Bitcoin Brain Wallets" (Marie Vasek, Joseph Bonneau, R. Castellucci, C. Keith, T. Moore). It is available from this link: https://tylermoore.utulsa.edu/fc16.pdf

Authors do not reveal brainwallets in clear text. However, I've found this resource that contains files that are attachments to this paper: https://dataverse.harvard.edu/dataset.xhtml;jsessionid=3b3325c3157850e2d961cf61dfb1?persistentId=doi%3A10.7910%2FDVN%2FRZHL3X&version=&q=&fileTypeGroupFacet=&fileAccess=Public&fileSortField=type

The most interesting files are probably: brainmaster.tab and attacksrc.tab files. They contain a list of more than 19k addresses identified to be protected with a brainwallet (again, no brainwallets in clear text, just information about the length of string). There are still many addresses in Vasek's list that you will not find on the websites mentioned in the beginning.
Some people that participated in this topic have their own lists of brainwallets. I wonder if there is anyone who cracked all addresses from Vasek's list? Probably not. Then, how many of them remain a mystery to you, still?

Are there other lists like this from Vasek? I mean, just addresses without brainwallets revealed?
Has anyone parsed the list of brain phrases from these lists?  maybe just a text file?  so that I don’t have to do stupid work a second time.  you just need a list of words. Without xxx
Post
Topic
Board Services
Re: need a Java programmer for a simple script
by
Sanka555
on 03/02/2023, 16:12:28 UTC
topic can be deleted. the programmer was found
Post
Topic
Board Services
Topic OP
need a Java programmer for a simple script
by
Sanka555
on 31/01/2023, 19:13:34 UTC
theme for a couple of days.

I need to write a small script to generate seed-phrases in four variants that Electrum uses.
Write in a personal, I'll tell you everything, give examples, links.
agree on a price.

thanks in advance
Post
Topic
Board Electrum
Re: How can i generate electrum-seed?
by
Sanka555
on 29/01/2023, 08:35:29 UTC
thanks. your advice is very valuable. But I just need a few filter lines in java. it's all.
Post
Topic
Board Electrum
Re: How can i generate electrum-seed?
by
Sanka555
on 28/01/2023, 18:45:39 UTC

Why exactly are you trying to use a BIP39 seed phrase as an Electrum seed phrase? You are adding unnecessary confusion. Electrum checks that any seed phrases it generates aren't accidentally also valid BIP39 seed phrases, and discards them if they are.


because I'm not a programmer.
And no one will write a complete program for generating a new version of the seed to me on the forum.
I have a beep39. everything works.
It just needs to be filtered. It should be easy.)
from this python example I took the line

Quote
  seed = u''.join([seed for i in range(len(seed)) if not (seed in string. whitespace and is_CJK(seed[i-1]) and is_CJK(seed[i +1])))])

as far as I understand - they just remove all(?) spaces.
but still can't filter

hope someone in java can help me
Post
Topic
Board Electrum
Re: How can i generate electrum-seed?
by
Sanka555
on 28/01/2023, 10:10:41 UTC
I still don’t understand what needs to be changed in the seed creation algorithm in order to get such a seed that electrum calls “segwit”
It needs to have a 0x100 version number, according to the documentation above. During seed phrase generation, the wallet software generates seeds until the hash of their seed phrase begins with the specified version number, in this case, 0x100. So, in order for your algorithm to be compatible with Electrum, it has to check the first two bytes of the hash of the seed phrase.

thank you. this is the perfect choice for me. Here is the problem with the implementation.
I generate BIP39
then according to documentation https://electrum.readthedocs.io/en/latest/seedphrase.html

need to do
  normalized = prepare_seed(seed_phrase)
Quote
The normalization function (prepare_seed) removes all but one space between words.

what space to leave is not written anywhere (


and only then (am I right?)

Code:
if(DigestUtils.sha512Hex(seed).startsWith("100")) {
System.out.println(DigestUtils.sha512Hex(seed));
System.out.println(mnemonicPhrase);
}


I understand that I am trying to scratch my left ear with my heel and it will be correct to generate entropy and then get seed from it. But now I need to do exactly this kind of logic.
Thank you in advance.
Post
Topic
Board Development & Technical Discussion
Re: How can i generate electrum-seed?
by
Sanka555
on 27/01/2023, 19:06:57 UTC
I can generate a  bep39 seed
That's not bep39. That's BIP39. (BIP stands for Bitcoin Improvement Proposal)

Can you please tell me what is the difference between them?
The difference between BIP39 and segwit?
They are completely two different things.

BIP39 is a standard algorithm for generating a HD wallet from a seed phrase.
Segwit refers to your addresses type.
thank you))) I understand it. I still don’t understand what needs to be changed in the seed creation algorithm in order to get such a seed that electrum calls “segwit”
Post
Topic
Board Development & Technical Discussion
Topic OP
Рow can i generate electrum-seed?
by
Sanka555
on 27/01/2023, 18:48:08 UTC
i write  Java
I can generate a  bep39 seed

but i need to make "segwit seed"
such that I inserted it into the electrum and saw the "segwit phrase type" in the window.

Can you please tell me what is the difference between them?
I would be very, very grateful for a piece of Java code.
Thank you very much in advance
Post
Topic
Board Новички
Re: Как получить ключи биткоин в HEX из сида
by
Sanka555
on 02/11/2022, 16:27:11 UTC
да я совсем в этом зеленая. мне б пару строчек которые делают то что надо и все .
Post
Topic
Board Новички
Topic OP
Как получить ключи биткоин в HEX из сида
by
Sanka555
on 02/11/2022, 08:50:33 UTC
у меня есть код на Java. С его помощью я из сида получаю адреса биткоин в формате Wif.
А мне нужно чтобы он выдавал вместо адресов ключи, причем в HEX

Подскажите пожалуйста как это сделать?


      
Code:
byte[] seed = PBKDF2SHA512.derive(seedCode, "mnemonic", 2048, 64);
DeterministicKey deterministicKey = HDKeyDerivation.createMasterPrivateKey(seed);
deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(84, true));
deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(0, true));
deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(0, true));
deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(0, false));
for (int i = 0; i <= 5; i++) {
temp = (Address.fromKey(MainNetParams.get(),
HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(i, false)),
Script.ScriptType.P2WPKH)).toString();

outputMap.put(temp, seedCode);
}
Post
Topic
Board Новички
Re: Большой гайд по Electrum
by
Sanka555
on 01/04/2022, 08:49:33 UTC
путь m/0'/0/0. не подходит.
Это правильный путь, проверено.
В вашем коде попробуйте заменить
Code:
byte[] seed = PBKDF2SHA512.derive(seedCode, "mnemonic", 2048, 64);
на
Code:
byte[] seed = PBKDF2SHA512.derive(seedCode, "electrum", 2048, 64);

спасибо огромное! заработало  Grin
Post
Topic
Board Новички
Re: Большой гайд по Electrum
by
Sanka555
on 01/04/2022, 08:41:42 UTC
нужно получить вот такой результат:
arctic federal divorce frozen stem reduce field tuna winner property art shoulder
bc1q3ys4yt00dz8qtl7gynh9a06397987p3ufv7kaq
bc1qnzy9wsdhjjq7fqhn27plegxej36r7wfmhau23w
bc1q7hmjd9lwaugxxd0sajjt599jnm5ryrap4y9u5l
Чтобы получить этот результат в Электруме нужно просто импортировать в него фразу.
Или вам в каком-то другом кошельке нужно получить эти адреса?

мне нужно их получить из Java кода.

обычный bip39 я получаю так:
Quote
byte[] seed = PBKDF2SHA512.derive(seedCode, "mnemonic", 2048, 64);

         DeterministicKey deterministicKey = HDKeyDerivation.createMasterPrivateKey(seed);
         deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(84, true));
         deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(0, true));
         deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(0, true));
         deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(0, false));

         for (int i = 0; i <= MyConstants.COUNT_ADRESS_ONE_SEED_PHRASE; i++) {
            String temp = (Address.fromKey(MainNetParams.get(),
                  HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(i, false)),
                  Script.ScriptType.P2WPKH)).toString();
            adresWhisWifmap.put(temp, seedCode);
         }

и это работает отлично. Но те адреса что электрум дает по умолчанию
Quote
arctic federal divorce frozen stem reduce field tuna winner property art shoulder
bc1q3ys4yt00dz8qtl7gynh9a06397987p3ufv7kaq
bc1qnzy9wsdhjjq7fqhn27plegxej36r7wfmhau23w
bc1q7hmjd9lwaugxxd0sajjt599jnm5ryrap4y9u5l

 я получить не могу .
путь m/0'/0/0. не подходит.
Post
Topic
Board Новички
Re: Большой гайд по Electrum
by
Sanka555
on 01/04/2022, 08:11:26 UTC
какой путь деривации сейчас по умолчанию в электруме стоит самый первый подскажите пожалуйста?

нужно получить вот такой результат:


arctic federal divorce frozen stem reduce field tuna winner property art shoulder
bc1q3ys4yt00dz8qtl7gynh9a06397987p3ufv7kaq
bc1qnzy9wsdhjjq7fqhn27plegxej36r7wfmhau23w
bc1q7hmjd9lwaugxxd0sajjt599jnm5ryrap4y9u5l
Post
Topic
Board Bitcoin Technical Support
Re: i need help whis broken wallet.dat
by
Sanka555
on 16/02/2022, 07:44:11 UTC
Which version are you running? It seems salvagewallet was removed from 0.21.0, so if you're running a version pre 0.21.0, you could try the initial command given by BitMaxz.

EDIT: i just logged on to my system, and had a look for myself (-help). Seems like the command is:
./bitcoin-wallet salvage --"wallet.dat"
At least, that how it works for me..

On windows, that would make
bitcoin-wallet.exe salvage --"c:\\path to\\wallet.dat"
(at least, i think it'll need double slashes)

So basically, if you're running >=0.21.0, you could try to switch the salvage command and the path...

i do
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\bit\wallets\wallet.dat
and
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\\bit\\wallets\\wallet.dat

the same effect. Flashes for a second. But nothing starts and nothing happens

-salvage   does not work in my version at all. writes that such command is unknown

I really hope that my key that I received after processing the information from the first post by the script will somehow help
"YmM63dDbt...+....."


Did you look at the command i posted vs your command?
executable -salvagewallet --"path"
is not the same as
executable salvage --"path"

But first things first: which bitcoin core version are you using?
0.20.1
Post
Topic
Board Bitcoin Technical Support
Re: i need help whis broken wallet.dat
by
Sanka555
on 16/02/2022, 07:43:39 UTC
Which version are you running? It seems salvagewallet was removed from 0.21.0, so if you're running a version pre 0.21.0, you could try the initial command given by BitMaxz.

EDIT: i just logged on to my system, and had a look for myself (-help). Seems like the command is:
./bitcoin-wallet salvage --"wallet.dat"
At least, that how it works for me..

On windows, that would make
bitcoin-wallet.exe salvage --"c:\\path to\\wallet.dat"
(at least, i think it'll need double slashes)

So basically, if you're running >=0.21.0, you could try to switch the salvage command and the path...

i do
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\bit\wallets\wallet.dat
and
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\\bit\\wallets\\wallet.dat

the same effect. Flashes for a second. But nothing starts and nothing happens

-salvage   does not work in my version at all. writes that such command is unknown

I really hope that my key that I received after processing the information from the first post by the script will somehow help
"YmM63dDbt...+....."


Did you look at the command i posted vs your command?
executable -salvagewallet --"path"
is not the same as
executable salvage --"path"

But first things first: which bitcoin core version are you using?

версия 0.20.1
Post
Topic
Board Bitcoin Technical Support
Re: i need help whis broken wallet.dat
by
Sanka555
on 16/02/2022, 07:05:02 UTC
Which version are you running? It seems salvagewallet was removed from 0.21.0, so if you're running a version pre 0.21.0, you could try the initial command given by BitMaxz.

EDIT: i just logged on to my system, and had a look for myself (-help). Seems like the command is:
./bitcoin-wallet salvage --"wallet.dat"
At least, that how it works for me..

On windows, that would make
bitcoin-wallet.exe salvage --"c:\\path to\\wallet.dat"
(at least, i think it'll need double slashes)

So basically, if you're running >=0.21.0, you could try to switch the salvage command and the path...

i do
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\bit\wallets\wallet.dat
and
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\\bit\\wallets\\wallet.dat

the same effect. Flashes for a second. But nothing starts and nothing happens
Post
Topic
Board Bitcoin Technical Support
Re: i need help whis broken wallet.dat
by
Sanka555
on 16/02/2022, 06:54:40 UTC
made through the properties of the label.
I trying to launch from a shortcut... Something flashes in a second. But nothing happens. Core won't start. The new "dat" did not appear. "bak" isn't either.

when I try to run the exe not through the shortcut, it says that dat is corrupted

db.log says:

Quote
Page 0: metadata page corrupted
Page 0: could not check metadata page
wallet.dat: DB_VERIFY_BAD: Database verification failed
__db_meta_setup: I:\bit\wallets\wallet.dat: unexpected file type or format
__db_meta_setup: I:\bit\wallets\wallet.dat: unexpected file type or format
Post
Topic
Board Bitcoin Technical Support
Re: i need help whis broken wallet.dat
by
Sanka555
on 16/02/2022, 06:31:04 UTC
"Invalid command: salvage"  and "Invalid command: salvagewallet"
You'll only get that result in Bitcoin Core so you must have missed/misunderstood my reply to BitMaxz's post.
Use "bitcoin-wallet" tool which I've pointed-out in my post.
I try do exactly as you said. I went into the bitcoin core in the folder where the exe is located. There I launched a terminal and pointed the path to my broken walletdat