Bitcoin Forum
May 25, 2024, 02:20:11 PM *
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 »
21  Bitcoin / Development & Technical Discussion / Can two signatures be identical? on: May 05, 2016, 04:27:08 AM
Assuming we are talking about Bitcoin signatures and we are not using deterministic k.

My understanding is that signing the same message with the same private key will not yield the same signature because of the random factor k. The odds of two signatures being equal is negligible under these conditions. Could someone confirm or refute this?

Thanks,
--h
22  Bitcoin / Development & Technical Discussion / Re: If you can do {THIS} with files the size of 1Gb why not w/ files size of blockch on: April 27, 2016, 03:33:20 AM
Because what he says is completely bogus.
23  Bitcoin / Development & Technical Discussion / Re: SegWit and SPV-mining. What if...? on: April 14, 2016, 10:18:08 AM
Do you really think that they would not be upgraded by then?
24  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 11, 2016, 02:27:03 PM
No problem, you're welcome.
25  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 10, 2016, 12:53:10 PM
Ok. It's a bit tricky because the block file doesn't have the expected state of the blockchain, just the block data.

In a previous project, I actually did the same thing. You may want to take a look at https://github.com/hhanh00/bitcoin-akka-tutorial
I patched the test generator so that it writes out the chain state and hook up a test driver.


26  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 10, 2016, 10:25:28 AM
The pastbins are truncated. Actually the first 100 blocks are not interesting. You could edit that part out.
27  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 10, 2016, 10:24:37 AM
It creates such a file every time your run it. That's why it takes a while to startup.

Code:
        File blockFile = File.createTempFile("testBlocks", ".dat");
        blockFile.deleteOnExit();

Change these lines and you can keep the file around.
28  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 10, 2016, 09:57:55 AM
The tool uses an ugly hack to work around timing issues. Bitcoind processes commands in sequence so the tool sends a ping and waits for a pong. At that time bitcoind has finished processing previous commands and reorgs have taken place. This won't work if your implementation handles ping/pong in parallel.

The pastbins are truncated. Actually the first 100 blocks are not interesting. You could edit that part out.
29  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 10, 2016, 02:40:09 AM
In that case, the node is supposed to return headers starting from the genesis block. The relevant code of bitcoin core is in main.cpp (line 4886-)

Code:
        if (locator.IsNull())
        {
            // If locator is null, return the hashStop block
            BlockMap::iterator mi = mapBlockIndex.find(hashStop);
            if (mi == mapBlockIndex.end())
                return true;
            pindex = (*mi).second;
        }
        else
        {
            // Find the last block the caller has in the main chain
            pindex = FindForkInGlobalIndex(chainActive, locator);
            if (pindex)
                pindex = chainActive.Next(pindex);
        }

...

CBlockIndex* FindForkInGlobalIndex(const CChain& chain, const CBlockLocator& locator)
{
    // Find the first block the caller has in the main chain
    BOOST_FOREACH(const uint256& hash, locator.vHave) {
        BlockMap::iterator mi = mapBlockIndex.find(hash);
        if (mi != mapBlockIndex.end())
        {
            CBlockIndex* pindex = (*mi).second;
            if (chain.Contains(pindex))
                return pindex;
        }
    }
    return chain.Genesis();
}


I have no clue why there is a different behavior if the locator is null.
30  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 09, 2016, 08:24:36 PM
Code:
Commiting block 0b1c05438c178aa1976b713a0b794d705f955b99236a2bcc9cd8609b68db92bf -> 7cd3ee22eab70c6bc23fe7d43c19a797eb9529e9c9bc71aaca6c8b9f9c3496f4
Undo block 102 748223dc39df65a8c88ef9af80f98cbf130a2f8cfdf1900ff84f1bcf1fcc04b2 0 KB
 - New TOP 103
Current last 0b1c05438c178aa1976b713a0b794d705f955b99236a2bcc9cd8609b68db92bf

GetHeaders 1 up to 0000000000000000000000000000000000000000000000000000000000000000
 ? 748223dc39df65a8c88ef9af80f98cbf130a2f8cfdf1900ff84f1bcf1fcc04b2   found: true
sending back 0 headers

Isn't it supposed to return the new fork?
I don't think so, because 748223dc39df65a8c88ef9af80f98cbf130a2f8cfdf1900ff84f1bcf1fcc04b2 has no children.


748223dc39df65a8c88ef9af80f98cbf130a2f8cfdf1900ff84f1bcf1fcc04b2 is no longer on the main chain, so you're supposed to ignore it and try the next locator. getheaders/getblocks are used by your peers to get the main chain, they don't care about forks.
31  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 09, 2016, 07:39:35 PM
Oops, you are right. I thought that was b2.

How about:

Code:
Commiting block 0b1c05438c178aa1976b713a0b794d705f955b99236a2bcc9cd8609b68db92bf -> 7cd3ee22eab70c6bc23fe7d43c19a797eb9529e9c9bc71aaca6c8b9f9c3496f4
Undo block 102 748223dc39df65a8c88ef9af80f98cbf130a2f8cfdf1900ff84f1bcf1fcc04b2 0 KB
 - New TOP 103
Current last 0b1c05438c178aa1976b713a0b794d705f955b99236a2bcc9cd8609b68db92bf

GetHeaders 1 up to 0000000000000000000000000000000000000000000000000000000000000000
 ? 748223dc39df65a8c88ef9af80f98cbf130a2f8cfdf1900ff84f1bcf1fcc04b2   found: true
sending back 0 headers

Isn't it supposed to return the new fork?
32  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 09, 2016, 07:14:39 PM
Actually, I think the problem comes from B3 (7cd3ee22eab70c6bc23fe7d43c19a797eb9529e9c9bc71aaca6c8b9f9c3496f4).

Code:
Commiting block 7cd3ee22eab70c6bc23fe7d43c19a797eb9529e9c9bc71aaca6c8b9f9c3496f4 -> 104cbafb5906c7b9fe28eba9b288eea1acec306320c53cd49ac1a5dd0e673ce1
 - Orphaned 102
Orphaned block: 102 7cd3ee22eab70c6bc23fe7d43c19a797eb9529e9c9bc71aaca6c8b9f9c3496f4 0 KB

That one shouldn't be orphaned because

Code:
        // We now have the following chain (which output is spent is in parentheses):
        //     genesis -> b1 (0) -> b2 (1)
        //
        // so fork like this:
        //
        //     genesis -> b1 (0) -> b2 (1)
        //                      \-> b3 (1)
        //
        // Nothing should happen at this point. We saw b2 first so it takes priority.
33  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 09, 2016, 06:12:36 PM
Search for  Error because the tool continues for a while after a failure. You got a problem at block b4. This tool is truly a pain to use though. B4 should have caused a reorganization but your node stayed on the same fork.
34  Other / Off-topic / Re: RIPEMD-160 progressive hashing? on: April 09, 2016, 12:29:57 PM
Does it? Extract from their doc:

Code:
Progressive Hashing

var sha256 = CryptoJS.algo.SHA256.create();
sha256.update("Message Part 1");
sha256.update("Message Part 2");
sha256.update("Message Part 3");
var hash = sha256.finalize();

35  Other / Off-topic / Re: RIPEMD-160 progressive hashing? on: April 09, 2016, 11:27:25 AM
You can use crypto-js.
36  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 09, 2016, 10:07:24 AM
No problem. A few things not covered by the scripts that could be worth checking:
- the best chain is not necessarily the one with the highest height but the one with the most cumulative proof of work,
- difficulty readjustments are capped by +/- n % (I don't remember how much),
37  Bitcoin / Wallet software / Re: Gocoin - totally different bitcoin client with deterministic cold wallet on: April 09, 2016, 09:16:14 AM
Install a jdk, compile and run.
38  Bitcoin / Bitcoin Technical Support / Re: Help: Unserendipitous Multisig Transaction on: April 09, 2016, 09:02:55 AM
With 7 inputs, there is less than a chance in  a  100 that it works by luck. You could try out with  a wallet that supports multi sig like electrum.
39  Bitcoin / Bitcoin Technical Support / Re: Help: Unserendipitous Multisig Transaction on: April 09, 2016, 07:12:03 AM
Use the verify tab and post here what you get.
40  Bitcoin / Bitcoin Technical Support / Re: Help: Unserendipitous Multisig Transaction on: April 09, 2016, 06:31:51 AM
If your transaction doesn't change when you re-sign, you will have modify it the hard way
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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!