Bitcoin Forum
June 17, 2024, 10:55:51 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 4 5 6 7 »
1  Bitcoin / Development & Technical Discussion / Why does bitcoin manipulate the signature beyond ECDSA_do_sign? on: August 27, 2014, 03:40:12 PM
I am looking at how Bitcoin signs transactions in the src/key.cpp file, in particular the RAII wrapper around the OpenSSL implementation of ECDSA.  

In the function
Code:
bool CECKey::Sign(const uint256 &hash, std::vector<unsigned char>& vchSig)

I see the regular call to ECDA which returns the signature in sig
Code:
ECDSA_SIG *sig = ECDSA_do_sign((unsigned char*)&hash, sizeof(hash), pkey);
However, after that there are some additional manipulations of the signature

 
Code:
        BN_CTX *ctx = BN_CTX_new();
        BN_CTX_start(ctx);
        const EC_GROUP *group = EC_KEY_get0_group(pkey);
        BIGNUM *order = BN_CTX_get(ctx);
        BIGNUM *halforder = BN_CTX_get(ctx);
        EC_GROUP_get_order(group, order, ctx);
        BN_rshift1(halforder, order);
        if (BN_cmp(sig->s, halforder) > 0) {
            // enforce low S values, by negating the value (modulo the order) if above order/2.
            BN_sub(sig->s, order, sig->s);
        }
        BN_CTX_end(ctx);
        BN_CTX_free(ctx);

What purpose do these manipulations serve? If one were to remove that code snippet, would that invalidate the signature? Or would that leak information about the private key?
2  Bitcoin / Development & Technical Discussion / simplified payment verification in the official client? on: November 01, 2013, 04:32:17 PM
For those of use who want to keep using the official client but are worried about the growing blockchain size, are there any plans to add simple payment verification (SPV) to the official client similar to what is done in bitcoinj?

Is the current lack of support for SPV due to lack of developer time and resources, or are there still any unresolved security issues?

3  Bitcoin / Development & Technical Discussion / Transaction expiration/time-to-live on: March 09, 2013, 01:46:51 PM
Here is a scenario:
Person A wants to make a payment to person B. In order to save money, A issues a transaction T1 with no fee, but the transaction does not get included in the blockchain for a few hours. Person B grows impatient, and demands A pay him immediately for the service. Left with no choice, A issues another transaction T2 with a fee that gets included in the blockchain immediately. However, T1 lingers around for a few more hours, and as soon as space opens up in the blockchain, it is included as well, thus resulting in a double payment to B.

This scenario I think will become increasingly common in the future as transactions with insufficient fees linger around for a long time. To address the problem, I propose adding an expiration (time-to-live) time field to transactions, which disables transactions from being included after a specific block number. If a transaction isn't included in the blockchain before its expiration block number, it will just be disallowed. In other words, any block containing expired transactions will be considered invalid.

It would perhaps be prudent to add an expiration time of 6 blocks from current block to all transactions so that they don't keep clogging the network if they can't be included in a reasonable amount of time.
4  Bitcoin / Wallet software / Re: Bitcoin-Qt, the future Bitcoin client GUI [user input needed] on: August 02, 2011, 06:06:02 AM
When can we expect Bitcoin-Qt to be merged into the main tree, and released as the official client?
5  Bitcoin / Bitcoin Discussion / Re: TradeHill - Why we no longer accept Dwolla and an open letter to Ben Milne on: July 28, 2011, 05:22:08 AM
How can I close my account with Dwolla? They have no option to close your account.
6  Bitcoin / Bitcoin Discussion / P2P PayPal payments on: July 14, 2011, 11:42:02 AM
Apparently PayPal is going to enable "p2p" payments between two android phones through the emerging near field communication technology. Of course, this is not a true p2p technology, as at some point the transaction has to go though PayPal's central clearing house, but it is interesting that they are putting a "p2p" spin to it. One wonders whether the emergence and success of bitcoin has anything to do with that?

Source:
http://arstechnica.com/gadgets/news/2011/07/paypal-debuts-peer-to-peer-payments-on-smartphones-via-nfcp2p-paypal-payments-coming-via-nfc-capable-phones.ars
7  Bitcoin / Wallet software / Re: Bitcoin-Qt, the future Bitcoin client GUI [user input needed] on: July 13, 2011, 07:29:34 AM
Can I use that screenshot in the opening post?
Absolutely. Feel free to use it anyway you want. If you want more screenshots let me know.
8  Economy / Trading Discussion / myopenid.com security flaw on: July 13, 2011, 12:08:15 AM
Intersango relies on myopenid.com for user identification. However, it has been reported in the past that myopenid ids can vanish for no reason. It has been discussed here for example:

http://meta.stackoverflow.com/questions/88451/myopenid-account-mysteriously-vanished

Most disturbing of all, once your account is deleted it can be recreated by another person, and they can log into all the sites that rely on your id.
9  Bitcoin / Wallet software / Re: Bitcoin-Qt, the future Bitcoin client GUI [user input needed] on: July 12, 2011, 11:16:11 PM
However, I'm getting a few warnings when i start the program

Code:
Object::connect: No such slot TransactionView::transactionDetails() in ../bitcoin-qt/src/qt/bitcoingui.cpp:87
QMetaObject::connectSlotsByName: No matching signal for on_buttonBox_rejected()
Object::connect: No such slot OverviewPage::setBalance(qint64) in ../bitcoin-qt/src/qt/overviewpage.cpp:52
Object::connect:  (receiver name: 'OverviewPage')
10  Bitcoin / Wallet software / Re: Bitcoin-Qt, the future Bitcoin client GUI [user input needed] on: July 12, 2011, 11:05:27 PM
I was able to succesfully build and run on Mac OS X, with the following small modification to bitcoin-qt.pro

Code:
macx:LIBS += -lboost_thread-mt -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt

11  Bitcoin / Wallet software / Re: Caesure - a Python Bitcoin Client on: July 12, 2011, 10:28:15 PM
There was also this effort to create an alternative bitcoin client in python, but it was never completed:

https://github.com/phantomcircuit/bitcoin-alt

I think the hard part was to do the scripting.
12  Bitcoin / Bitcoin Discussion / Bitcoin on AlJazeera on: July 09, 2011, 06:36:44 PM

Bitcoin is mentioned on Counting the Cost:

http://www.youtube.com/watch?v=qC0S8wgoFJ0&feature=player_detailpage#t=1315s
13  Economy / Marketplace / Re: Mt.Gox has a Bitcoin withdrawl limit? (Rant at operators of Mt.Gox) on: June 09, 2011, 12:12:01 AM
I also think that withdrawal limits on Bitcoins are totally unnecessary and arbitrary.

I deposited quite a few bitcoins on MtGox some time ago thinking that it would be very easy to withdraw, but apparently it wasn't. Right now my funds are still stuck there, and every attempt to withdraw results in an annoying message.
14  Bitcoin / Bitcoin Discussion / Re: Conspiracy theory on: June 08, 2011, 11:17:45 PM
That's actually not a conspiracy theory. One of the core developers - Jeff Garzik stated that he will cooperate fully with the government on this CBSNews interview:

http://www.cbsnews.com/8301-504943_162-20069780-10391715.html
15  Bitcoin / Bitcoin Discussion / Re: I'm ALL in! on: June 08, 2011, 09:39:36 PM
Just keep in mind that I (and probably the vast majority of people who have thrown their savings into bitcoins) are in this for the long run. The shutdown of mtgox no doubt would leave a huge hole in bitcoins, but in the long run i see bitcoin recovering and moving far beyond.
Yes, but there is a long time between now and the longrun. Meanwhile you have to eat and pay rent.
16  Bitcoin / Bitcoin Discussion / Re: Bitcoin Worldwide Exclusive: New Competitor to MtGox: http://TradeHill.com on: June 08, 2011, 09:31:41 PM
If you elect to deposit via domestic bank transfer, it asks you to deposit at:

Quote
Name: Jered Kenna
Bank: ING DIRECT
Routing: 031176110
Account: 143949819
Address:ING DIRECT
1 South Orange Street
Wilmington, DE
19801

I am still not quite sure how it ties your transfer back to your account on their site.
17  Bitcoin / Bitcoin Discussion / Re: Bitcoin Worldwide Exclusive: New Competitor to MtGox: http://TradeHill.com on: June 08, 2011, 08:56:07 PM
Who is the owner? Is it a trusted member of the community?
18  Bitcoin / Bitcoin Discussion / Re: I'm ALL in! on: June 08, 2011, 08:04:42 PM
However - and I am not joking when I say this - I CAN'T WAIT till it's illegal.  Because once it is, the mainstream will find out about it.. and THAT's when more people will really start using it, and after a brief panic-induced selling from wimps, the price will probably skyrocket.  Even though it wasn't money, that's essentially what happened with Napster, Bit Torrent, the whole p2p movement in general.  Once they make it illegal, that's when people will start using it.

I think the government is stuck between a rock and a hard place. On the one hand they want the dollar to be the universal currency, and yet they keep on putting all these restrictions on how it can be used reducing its competitiveness. They must understand that they cannot have the dollar as a universal currency while restricting its usage. Their hands in the fight with bitcoin are pretty much tied, because the more they encumber the US dollar to fight Bitcoin, the more desirable Bitcoin becomes.

I also think that a ban on the US bank accounts of MtGox is imminent. And this will almost certainly crash the price of Bitcoin. However, as you say that will not destroy Bitcoin. In fact it will make it stronger. However, people that have invested all their savings into Bitcoins, and worse who have actually over-leveraged themselves to purchase Bitcoins, will no doubt get hurt badly.

When dealing with a risky asset like Bitcoin I think it is very important to diversify. Besides, there is no need to put all your savings into it - that's just pure greed. Even putting a small fraction of your savings into bitcoin can lead to great returns.
19  Bitcoin / Bitcoin Discussion / Video of Schumer looking at Silk Road and calling Bitcoin a surrogate currency on: June 08, 2011, 06:46:47 PM
Here is a video of Senator Schumer looking at the Silk Road marketplace on his laptop, and referring to Bitcoin as a surrogate currency:

http://www.nbcnewyork.com/news/local/Schumer-Calls-on-Feds-to-Shut-Down-Online-Drug-Marketplace-123187958.html
20  Bitcoin / Bitcoin Discussion / Re: Senators seek crackdown on "Bitcoin" currency on: June 08, 2011, 06:01:41 PM
I already posted a thread about this 2 mins before you
http://forum.bitcoin.org/index.php?topic=13580.0
Smiley
Pages: [1] 2 3 4 5 6 7 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!