Bitcoin Forum
May 10, 2024, 11:24:03 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 [41] 42 43 44 45 46 47 48 49 »
801  Other / Archival / Re: Be careful when searching at Google on: May 02, 2018, 08:14:12 PM
Do this sites randomly shows on each user or surfer?

If I understand it correctly, it is a paid advertisement. Google usually puts their paid ads on top of the regular organic search results. The problem is that often these ads are not really checked, not by a real person anyways. Even if a real person did check it, I doubt they could have the expertise to assess Bitcoin related content.

And the way these ads are displayed depends on a number of factors: keywords, language, country, previous search history, etc. Probably that's why sometimes they show and sometimes don't.
802  Bitcoin / Development & Technical Discussion / Re: From a Random Number to Mnemonic Phrase on: May 02, 2018, 07:39:18 PM
The chances of generating a valid seed like this is 1 in 16.
This means 15 out of 16 seeds won't work  Undecided
So, does this mean that the initial entropy is diminished something like 16 times?

I am reading mastering Bitcoin as well, and your posts often call my attention to book passages which I had not given due importance.
Like your previous post about flipping coins. You are doing a very good job.

Thanks for sharing your thoughts.
Thanks, bitmover. While Mastering Bitcoin is fantastic a book, many aspects are not covered in too much detail. I guess it is impossible to do so because of the complexity of the matter. But here, regarding the mnemonics, I wanted to really understand how it goes. I only I hope I've got it right now.
803  Alternate cryptocurrencies / Mining (Altcoins) / Re: Nvidia Safe Temps? on: May 02, 2018, 07:26:54 PM
Each model has its own limits. Different cards are designed with different purposes in mind. Because of that, you should check the temperature limits of your model.
Let me give you an example. My Titan X Pascal NVidia GPU can run in the range between 82-87 degrees Centigrade all around the clock.
That is not so say that another model, say, NVidia 1080 Ti can safely run in the same temperature range.
So make sure you know your Graphic card performance well.
804  Bitcoin / Development & Technical Discussion / From a Random Number to Mnemonic Phrase on: May 02, 2018, 07:05:26 PM
When you want to create new wallet, certain Bitcoin wallets define a mnemonic phrase that you have to remember or write down.

For all intents and purposes, knowing the mnemonic is virtually the same as knowing your private key.

Have you ever wondered how the mnemonic phrase is obtained?

What I want to explore with this post is this correspondence between the initial entropy and the actual words of the mnemonics. The aim is to understand the principles, not to go into programming details.

We will try to derive the mnemonic starting from a random entropy and we will use tools everyone can find and use on the internet.

First thing to realize is there are several implementation of the mnemonic phrase. The standard that Trezor and other hardware wallets use is called Bip-39. This is what we will explore here. We will follow the book "Mastering Bitcoin" by Andreas Antonopoulos and this scheme in particular:

https://i.pinimg.com/564x/e3/e9/b5/e3e9b5ca7128eb03d526a342904ef27d.jpg

Electrum has its own standard, and even different implementations in different versions of the code, so we won't go into it in Electrum mnemonics in this post.

The Standard

Bip-39 has a standardized list of words. It contains 2048 words from the standard English language. There are similar lists in several other languages if you prefer to have a seed in your native language.

You can see it on GitHub:

https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt

It goes like this:



Now if we chose 12 of these words randomly, that would mean that the number of possible combination to distribute 12 words out of 2048 words is 204812, which is
equivalent to 2132. So with 12 words, there are 132 bits of entropy (Source: https://en.bitcoin.it/wiki/Mnemonic_phrase). However, as we will see below, not all combinations work, so there is slightly less entropy than 132 bits.

Let's generate mnemonic words by using a random source of entropy. Like flipping coins. For the record, I didn't want to go through the trouble of flipping coins, but you can if you want to.

The Steps

1. For this purpose I picked up a random 128 bit number from this website. It uses atmospheric noise, so I figure, it should be good enough for this demonstration. This number I got is this:

Code:
01000100010010011100010101001010100001101000100101101111000010101100100101100001110011000001100100100110100000110010000000010001

Now I converted this binary to a hexadecimal number:

Code:
4449C54A86896F0AC961CC1926832011

2. The next step is to create a checksum of the above number. How is the checksum created? By applying a SHA256 function on this number and taking the first 4 bits. (You can do it online here: https://www.fileformat.info/tool/hash.htm ; make sure you take binary hash )

Code:
SHA256(4449C54A86896F0AC961CC1926832011)  =  55e802188d4450c11f6b39c4a108395b706855fe56a5e00c1effd33fe2fbe354

SHA256 returns a hexadecimal number, each digit is in fact 4 bits.

Now we take the first four bits of the output, which is the number 5 in hex form (0101 in decimal form), and that's our checksum.

3. Next we add these four bits to the end of the original random number, like this:

0100010001001001110001010100101010000110100010010110111100001010110010010110000 11100110000011001001001101000001100100000000100010101

4. We started with 128 bits, and now we have 132 bits. Next, this sequence should be divided into 12 groups of 11 bits each. Like this.

Code:
01000100010 01001110001 01010010101 00001101000 10010110111 10000101011 
00100101100 00111001100 00011001001 00110100000 11001000000 00100010101

We have ended up with these 12 groups, each consisting of 11 bits. Next we map these 12 binary numbers to 12 words.

5. When I was trying to figure out the next step, I got really confused. First, I thought that it would be enough to convert each of these 12 binary numbers into decimal numbers. But this wouldn't work.

Finally, thanks to this javascript implementation (https://github.com/iancoleman/jsbip39/), I realized that one should use a function called parseInt() to parse the 11 bits into an integer, which then serves as an index to select the corresponding word. Like this:

Code:
parseInt("01000100010", 2) = 546 injavascript

int("01000100010", 2) = 546 in python

The second argument 2 is to indicate the binary nature of the first argument. You can do all this parsing in javascript, or in python if you have python installed. If you don't have python installed, you can do it online, for example here:

https://www.python.org/shell/

like this:



So now we run all 12 binary numbers from above:
Code:
01000100010 --> 546
01001110001 --> 625
01010010101 --> 661
00001101000 --> 104
10010110111 --> 1207
10000101011 --> 1067
00100101100 --> 300
00111001100 --> 460
00011001001 --> 201
00110100000 --> 416
11001000000 --> 1600
00100010101 --> 277

and we get the indices.

5. Next, we match the indices with the words from the Bip-39 list. However, there's one last catch: the word list indices go from 1 to 2048. The above indices go from 0 to 2047, so we have to add +1 to the above numbers:

546+1 = 547 -- > dust



625+1 = 626 --> evolve

and so on...

The end result is

dust evolve famous artist notice lyrics
cereal define bomb cross siege cargo



6. Let us check if this is indeed a correct menmonic phrase. We go to this online tool:

https://iancoleman.io/bip39/

and we enter our 12 words:



It is indeed a correct phrase. Otherwise there would have been an error.  

Let's try to insert some random 12 words from the list, chances are the phrase won't be successful, like the following sequence I chose randomly:

affair attend bone weird wagon midnight
rookie mercy fan abstract siren right



And it happens that it isn't a correct sequence. Invalid mnemonic. Many random combinations aren't accepted, I guess, because of the wrong checksum.

Thanks for following. I hope you will find this little tutorial useful. If there is an error somewhere in this derivation, I would appreciate your help to correct it.

805  Alternate cryptocurrencies / Mining (Altcoins) / Re: What is best to mine? on: May 02, 2018, 01:37:15 PM
There are no universal coins that work equally well with all types of hardware. It depends on your GPU, for example, Amd or Nvidia and their different models.
And even then, there are variations as things change rapidly. The profitability and difficulty of mining of different coins go up and down all the time.
That's why sites like http://whattomine.com/ and similar exist.
Or you just stick with one or several coins you are convinced have a prosperous future regardless of current profitability.
806  Other / Beginners & Help / Re: What happend 2140 all BTC are mined on: May 02, 2018, 12:42:10 PM
The idea is that once the majority of bitcoins are mined, the sum of the transaction fees collected in a newly mined block would be enough to cover for the mining reward. It is not an unrealistic scenario given the current transaction fees.
807  Alternate cryptocurrencies / Mining (Altcoins) / Re: CCMiner/MPH configuration help - Linux on: May 02, 2018, 10:21:43 AM
Yes, there is a developer fee in Nemosminer. You can certainly get by without any developer fees, but as I said, I've never tried this. What I would suggest, however, is to go through the steps outlined on MPH Getting stared page once again:

https://miningpoolhub.com/index.php?page=gettingstarted

Scroll down to # Multi-algo switching and make sure you have all the steps covered.

808  Economy / Services / Re: [CFNP] IOS - Signature & Avatar Campaign | Up to $150/week in BTC & Tokens! on: May 02, 2018, 07:08:28 AM
IOST 2nd and 3rd week payment received, plus a small bonus for the delay. That's was very generous. Thank you very much, Madz.
809  Alternate cryptocurrencies / Altcoin Discussion / Re: How exchange get the profit if they take no fee trading? on: April 30, 2018, 08:22:53 AM
The benefits of having direct coin to coin transaction with their CTH token outweighs collecting fees, especially in the long run. In doing this, they increase the liquidity of their native coin CryptoHit, given that this is an ICO. I personally am glad to see more of these DEX platforms appear these days. I've already had good experience with them.
810  Alternate cryptocurrencies / Mining (Altcoins) / Re: Would a multi algo coin protect against a 51% attack better then a single algo? on: April 29, 2018, 09:23:11 PM
It could bring stability and decentralize the network, at least initially, depending on the algo. But preventing 51% attack has nothing to do with the algo. The algo has to do with decentralization and can be more or less ASIC resistant. But in the end, if enough money is involved (like in Bitcoin mining), every algorithm can be ASIC-ed. There are even attempts to incorporate as many as 16 different algorithms into one protocol, as RavenCoin did in its X16c algo:

Quote
The X16R hashing algorithm consists of 16 hashing algorithms operating in chain fashion with the ordering dependent on the last 8 bytes (16 nibbles) of the hash of the previous block.
The algorithms are as follows:
0=blake
1=bmw
2=groestl
3=jh
4=keccak
5=skein
6=luffa
7=cubehash
8=shavite
9=simd
A=echo
B=hamsi
C=fugue
D=shabal
E=whirlpool
F=sha512

Source: https://ravencoin.org/wp-content/uploads/2018/01/X16R-Whitepaper-3.pdf

811  Other / Off-topic / Re: How would you explain the blockchain to 10 year olds? on: April 29, 2018, 09:04:35 PM
Look at the following article:

Quote
Explain Bitcoin Like I’m Five
If you still can’t figure out what the heck a bitcoin is…

https://medium.freecodecamp.org/explain-bitcoin-like-im-five-73b4257ac833

It explains what Bitcoin is in very simple terms. Yet, even adults can enjoy reading it.
812  Alternate cryptocurrencies / Speculation (Altcoins) / Re: Will waves rise to $ 10+ in the next week? on: April 29, 2018, 08:59:57 AM
Hard to tell anything for sure about the short term position of waves, but long term it looks very promising. A nice feature of Waves is their decentralized exchange (DEX). There are direct trading pairs with other tokens, which can further improve the position of Waves in terms of liquidity, user experience, and network stability. DEX seems to be the way to go for a number of other promising crypto-currencies. Waves DEX is still in beta phase, and it remains to be seen how it goes, but it is a step in the right direction.
813  Alternate cryptocurrencies / Mining (Altcoins) / Re: CCMiner/MPH configuration help - Linux on: April 28, 2018, 07:00:10 PM
How often does it check to see if another algo is more profitable?
I've never used the native MPH script, so I don't know how they fine tune it. But you can use some other codes, like for example Nemosminer, which allows setting these details you are talking about.
814  Bitcoin / Bitcoin Discussion / Re: Simalarities with bitcoin and the introduction of the internet on: April 28, 2018, 02:26:13 PM
When the internet was first came out there was a lot of big discussion about it. Its rubbish, it'll never work, its brilliant its going to change everything, its just a fad etc.
Not only that people thought it was rubbish. People were convinced that the internet won't be able to scale. Indeed, at the beginning of the internet, the infrastructure was weak to support even transfer of larger files. And today, we see live streaming of movies in high resolution.
I believe similar future awaits Bitcoin. Today, everybody is concerned about blockchain scaling. But hopefully, when needed, Bitcoin's infrastructure will scale similarly to the way internet did.
815  Alternate cryptocurrencies / Altcoin Discussion / Re: IS THIS THE NEXT 100X COIN !?!? on: April 28, 2018, 01:23:16 PM
and it's competitor EOS has market cap of $15 billion and its funny because HPB beats EOS in all the stats..
Marketcap is not the only parameter one should be looking at. In my opinion, it is not among the most important ones either.

I dont understand whether HPB is soooooo freaking undervalued
Probably not so many people have heard about HPB before, me included.

i don't know what am i missing .. i need your guy's opinion ..i just fail to understand why a project like HPB is so undervalued ?
Probably this project should prove itself first by solving some real problems before widespread adoption. I see from their whitepaper that they aim at solving problems related to blockchain scaling. According to their roadmap, they have yet to launch their mainnet. So everything is still experimental. Hence the undervaluation.
816  Bitcoin / Bitcoin Discussion / Re: recieve btc on electrum wallet on: April 28, 2018, 05:11:38 AM
hi guys, i work at a website online and i get paid via btc but i use coinbase to recieve  
You should always store your keys offline, in a secure private environment. Exchanges get hacked all the time.

on because i'am afraid if i put my desktop electrum wallet for my recieve i won't get them if i'am offline! if i'am offline would i get
Your wallet is responsible for your keys, not your funds. The bitcoins you own are in the public blockchain (everyone can see them but only you can use them).
Here is how Andreas M. Antonopoulos describes this situation in "Mastering Bitcoin":

Quote
Wallets contain keys, not coins. The coins are stored on the block‐chain in the form of transaction-outputs (often noted as vout or txout). Each user has a wallet containing keys. Wallets are really key‐chains containing pairs of private/public keys... Users sign transactions with the keys, thereby proving they own the transaction outputs (their coins).

Source: Mastering Bitcoin
817  Alternate cryptocurrencies / Altcoin Discussion / Re: Ian Balina Opens Up about Hack in AMA on: April 27, 2018, 09:40:22 PM
This part is very funny:

Quote
He does use paper wallets, but as he acknowledges, he was foolish to use Evernote as a backup of his private keys.

Source: https://cryptodisrupt.com/what-did-we-learn-from-the-ian-balina-ask-me-anything-live-stream-about-the-hack/

I mean, who uses Evernote for something that sensitive? Even more astonishing is the fact that he was answering questions about security during the hack. If indeed all this is true.
818  Alternate cryptocurrencies / Mining (Altcoins) / Re: CPU and GPU at the same time? on: April 27, 2018, 08:45:47 PM
Is it possible to have a CPU miner and GPU miner active at the same time in the same computer without overloading? 
You can. But whether you should that's another story. Ask yourself this. Is it a dedicated mining computer or not? Are you going to use the computer for other tasks too?
If the answer is yes, and you decide to use the CPU too, you should definitely fine tune the load of the CPU. With high loads your computer will be useless for anything other than mining.
819  Alternate cryptocurrencies / Altcoin Discussion / Re: The Dying Myth of long term holds??? on: April 27, 2018, 08:29:41 PM
It can definitely pay off to hodl long term for some crypto-currencies.
However, in order to do that you have to be able to separate the speculative value of an asset from its utility value (if there is one, of course - some coins have no real utility value).
It usually happens that there is an initial spike due to coin's speculative value. After that, there is a period of waiting for the coin to reach its utility value.
That's how a crypto J-curve is born.
Check out this medium article about J-curves and how you can calculate the future value of a cryptoasset.
820  Alternate cryptocurrencies / Mining (Altcoins) / Re: Is it posible to automaticaly switch between coins based on current difficulty? on: April 27, 2018, 08:19:54 PM
You can use programs that do something similar to what you describe. Codes that use profitability switching by monitoring the current altcoin prices and difficulties. Check out these posts for details on some of the most popular codes of this type:

https://bitcointalk.org/index.php?topic=1777336.0

https://bitcointalk.org/index.php?topic=2965976.0

https://bitcointalk.org/index.php?topic=676942.0
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 [41] 42 43 44 45 46 47 48 49 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!