Bitcoin Forum
May 27, 2024, 12:39:59 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 »
161  Bitcoin / Development & Technical Discussion / Re: Mass Bitcoin Addresses to Hush 160 Converter on: December 11, 2017, 12:47:59 PM
so you want to basically do 3 steps:

1.) base58decode the address
2.) remove last 4 Bytes (this is a checksum)
3.) remove first byte (this is network identifier)

There are many tools out there, but you didn't tell us, what operating system you use.
On https://rosettacode.org/wiki/Bitcoin/address_validation are many different address validators, see if this fits your needs.
The bitcoin explorer provides as well a decode function: https://github.com/libbitcoin/libbitcoin-explorer/wiki/bx-base58check-decode
And there was also a Perl version: http://lenschulwitz.com/base58

Not sure if a final tool exists, that picks up your somehow formatted list, and converts it, but with a little bit coding know-how, the links above will do :-)

162  Bitcoin / Development & Technical Discussion / Re: Best Place for Programmers to Learn Bitcoin Altcoin algos on: December 11, 2017, 12:32:20 PM
A warm welcome to the world of crypto currencies, we need more developpers.

There's no such thing as a "best place"... It is always different, and somewhere else  Grin Wink
But there are learning sources, next to bitcoin.org, as the reference page.
And the world doesn't stop with bitcoin, there's the whole altcoin world.

I had it very easy to get started, after reading Andreas book "Mastering Bitcoin", which is available in many languages, and can be read online.
bitcoin.stackexchange.com is a webpage, that serves as a Q&A forum, and many, many technical questions are answered there, especially when it comes to details of how to construct transactions.

And then it depends, what you want to program. A web page accepting coins - good start! A wallet software? This is a task, which requires serious knowledge on crypto and security. Usually you need some years of experience in this area to start building a secure wallet. A whole new crypto coin? Phew :-)


163  Bitcoin / Development & Technical Discussion / Re: Please help me to sign a time stamped message on my bitcoin cold wallet address on: December 09, 2017, 08:19:39 PM
Indeed, but Bitcoin Core developers should work harder on making Bitcoin Core's GUI easy to use for offline storage. For example, I want to send coins from an offline Bitcoin Core installation into another laptop that has Bitcoin Core online and synced. In order to do so, I need to resort to very user-unfriendly commands like rawtransaction crafting and so on. I claim this could be nicely resolved in the GUI avoid mistakes which could be fatal. You enter the wrong amount of digits and you end up sending a massive fee for example. They need to work on that.
I am uncomfortable with "they". Too many people here say they should/they must, so that I can ... Why they? Anything that is contributed? Have you supported the community with code to resolve GUI issues? Would you pay the developper for your requirement?
164  Bitcoin / Development & Technical Discussion / Re: What happens if mempool grows huge? on: December 08, 2017, 06:42:21 PM
Pieter Wuille explained in a stack exchange task, that since version 12 the bitcoin core software can expire transactions, which are longer than 72 hours in the mempool. This would keep the mempool fresh.
165  Bitcoin / Development & Technical Discussion / Re: Possible attack on bitcoin currency on: December 04, 2017, 05:38:45 PM
I am asking myself, why this is the third question of this crazy construct within this week... coincidence?

So: why would the miners accept this? When they know, that afterwards the currency is out of value?
They can't even use the remaining hardware to mine other coins, cause they know, that history shows, when bitcoin goes down, all other currencies go down - and vice versa.
The incentive for the miners is not recognizable.

Besides that nobody knows, how many miners there are (yes, there are pools, but then what?), you would need +8billion to bribe the miners. 16 billion is the amount of newly generated bitcoins at a rate of 10.000 Euro/CHF/USD ...
To whom would go the transactions of this size? To an exchange? to a bank? Who would be your counter party? Who is going to loose the large amount, if you take "your" transaction back with the miners after 15 blocks?
I guess, nobody takes a risk, that is higher than everything else that have been seen before? An alien bank perhaps, that doesn't care, if they loose 16billion?

This is not an attack on bitcoin currency. This is an attack construction, which has no visible chance of getting realized. As such the headline and the word "attack" is highly misleading.
166  Bitcoin / Development & Technical Discussion / Re: Possible attack scenario for PoW currency using short positions on: December 04, 2017, 09:10:42 AM
not sure how to get to the gurus - usually in such forums there are, or I heard, that there is a bitcoin IRC chat.
But hey, gurus don't work on assumptions!  Grin
I can see the theoretical approach, yes. What makes it a bit complicated, is that there are so many conditions around it, that the attack is not visible anymore. And if these surrounding conditions are true, then you can "bribe" any secure system, be it PoW or anything else... This goes into a trust discussion.
In bitcoin/crypto currencies there is an underlying mathematical model on game theory and encryption. I think you need to start talking this language, to get a proper answer. So something like a mathematical calculation of the things happening in your approach.
167  Bitcoin / Development & Technical Discussion / Re: Need a new bitcoin with Turing complete smart contract on: December 03, 2017, 10:08:49 PM
I wouldn't like to see this.  Grin
Maybe you can first of all explain, what you think can be achieved with smart contracts on bitcoin.
Then explain, what you think, why a complete turing machine is required to do a smart contract (use cases?).
Then what you have done / tried to do with bitcoin, and why it wouldn't fit, and hence the need for a turing complete EVM comparable environment.
Why not do it in a side chain, and proof, that it works (ehm, eh, it doesn't in Ethereum, repeatedly - we'd like to be secured with our funds).

Just because it's technically feasable? Certainly not a good start...
168  Bitcoin / Development & Technical Discussion / Re: Possible attack scenario for PoW currency using short positions on: December 03, 2017, 10:02:34 PM
most people read both forums  Grin Cheesy

this one here is better to have discussions going back and forth.
I'd add two things: bitcoin was structured in a way, that game theory-wise it is more beneficial to particpate in the game, than trying to play against it.
Renlord has a similiar wording in his reply.
I have an issue with your idea of majority attack:
Quote
I supposed that such an attack is possible if profits are higher than costs.
they would not be higher. Currently there is a hashing power of the equivalent to roughly 800.000 mining boxes type "AntMiner S9". This is making the network is stable, resistant and protected. For a 51% attack you'd need to buy 400.000, and bring them on the network (their power cosumption is 1200W, so you'd need a coal or gas power plant, industrial grade level). If you want to "buy" the miners (bribe), then it requires a lot of communication to them, and a financial incentive. Would the miners follow the fork (bribe), if they can see, that they will loose the value of the bitcoins to be mined? I mean, after such an attack would have worked out, the value of bitcoin would run against zero (quickly). What is the remaining incentive for a miner?
Your one-time bribe would maybe need to be equivalent to a 1 year income of a miner, and this for 51%. So your invest would need to be in the billion range. Current 12,5BTC reward is ~10.000 EURO/CHF/USD, 6 per hour, 21 per day is 18mio a day. And you need 51% of miners. So who would "accept" your initial transaction, that you even could spend it later on?

So from "my" logic, a 51% attack the way you described it, seems not feasable.

But maybe there are some experts here, who have a sound knowledge and better understanding?
169  Bitcoin / Development & Technical Discussion / Re: help me on: December 03, 2017, 09:35:36 PM
not sure if this is going to be a comedy (or a hoax?) Grin

@honadu:
you are a new member in the forum, and your question is way too short, and also lacks a "common sense" of information.
Your last link with the tx ID is invaluable information, cause this tx happened 8 years ago as a coinbase tx. It's output is a public key, which transforms to this address: 12bAezJkUhUxUDVZUypN9HP7obfWm58hSw - definitely something else than your first post.

You might want to step back, rethink what you want to ask, and if english is not your native language (neither it is mine), take someone to give you a helping hand and try to rephrase precisely, what you need.
This would start with what you have (equipment/software), what you have done (sent tx and dates), and what you are looking for (probably some funds).
This would make it easy for us to help.
170  Bitcoin / Development & Technical Discussion / Re: help me on: December 03, 2017, 07:56:42 AM
this ?

Code:
   76: OP_DUP
    A9: OP_HASH160
    14: OP_Data14 (= decimal 20)
        4026D45EA5E8A33E:17EE79B862C2E8C1
        D065EC8D
    88: OP_EQUALVERIFY
    AC: OP_CHECKSIG
  This is a P2PKH script:
   4026D45EA5E8A33E17EE79B862C2E8C1D065EC8D

which is base58 encoded: 16rCmCmbuWDhPjWTrpQGaU3EPdZF7MTdUk

which points to an address with 100.000s of bitcoins, which probably belong to an exchange...
btw: you may want to remove the "!", this looks offending.
Also it would be better to provide the transaction ID, then people can better help out.
171  Other / Beginners & Help / Re: help for understanding weird transaction on: December 01, 2017, 07:30:29 AM
I see, you are worried about the use case.
But yes, looking at the values, this is quite some money today. I know that exchanges take of a lot of their inputs into cold storage.
But as the previous op said, without knowing the details, it is highly speculative.
172  Bitcoin / Development & Technical Discussion / Re: 🔥🔥🔥 Pattern bitcoin hash160 problem!!!!!!! 🔥🔥🔥 on: December 01, 2017, 06:58:47 AM
and can the headine please be changed to something like "I don't undersand why base58decoding returns different values"?
And also get these annoying fire symbols removed ...
Maybe moderators can change this.
173  Other / Beginners & Help / Re: help for understanding weird transaction on: December 01, 2017, 06:47:57 AM
it is simply a very large tx with many, many inputs, sent to a single output. A typical usecase can be imagined this way:
you have a shop, where you sell daily products against bitcoins to your never changing bitcoin address, and at the year end (after 1000 or more tx) you consolidate everything into cold storage... of course hundreds of more thinkable use cases.
These type of tx are quite normal, just here the size is tremendous.

To get an idea how tx work, you may want to look into bitcoin.org (into the developper section), or I recommend the book "Mastering Bitcoin" from Andreas, which is also online available.
174  Bitcoin / Development & Technical Discussion / Re: Error transaction help me on: November 30, 2017, 11:15:51 PM
I took a quick look at the second sig, and the length field of the signature for R-value:

Code:
    30: OP_SEQUENCE_0x30:    type tag indicating SEQUENCE, begin sigscript
    45: OP_LENGTH_0x45:      length of R + S
    02: OP_INT_0x02:         type tag INTEGER indicating length
    21: OP_LENGTH_0x21:      this is SIG R (33 Bytes)
        00D2F9171FDCE547:34818BC6314389B2
        D7CCE4C15CC6FA55:6B3886860E493B1A
        02
    21: unknown opcode

I can see a double zero is there, so the length of the R-Value should be 21hex, 33 bytes decimal. In you case it would end with "02".
However: the 02 should be the  type tag indicating length for S-Value, and 21 the length for your S-Value (which it is...).
I just added a "DD" into the end of the R-Value, then it decodes correctly:

Code:
    30: OP_SEQUENCE_0x30:    type tag indicating SEQUENCE, begin sigscript
    45: OP_LENGTH_0x45:      length of R + S
    02: OP_INT_0x02:         type tag INTEGER indicating length
    21: OP_LENGTH_0x21:      this is SIG R (33 Bytes)
        009E38F007CCC1D4:11E9DBA6E03A932E
        E5076E2F7F4FA6C3:8B9FA6AD97265546
        DD
    02: OP_INT_0x02:         type tag INTEGER indicating length
    21: OP_LENGTH_0x21:      this is SIG S (33 Bytes)
        0099F89638981D46:5629E65C02BC5FA3
        8FB9CA49E2D3FD9F:83326CE8678195AC
        16
    01: OP_SIGHASHALL:       this terminates the ECDSA signature (ASN1-DER structure)

So I guess the library you are using is not assembling the signatures correctly. What are you using?
175  Bitcoin / Development & Technical Discussion / Re: Big problem with cryptocurrency used in ecommerce !!! on: November 28, 2017, 12:32:54 PM
if there is something of value for you, that you want to buy, then make sure upfront, that mothing can happen, and don't trust the vendor. Easy as this. In the bitcoin world you use an "escrow service", which is realized with multisig. Searching the forum for "escrow" will guide you in the right direction.
Oh, you might turn your headline into "a very, very small problem with cryptocurrency used in ecommerce !!!"
176  Bitcoin / Development & Technical Discussion / Re: 🔥🔥🔥 Pattern bitcoin hash160 problem!!!!!!! 🔥🔥🔥 on: November 28, 2017, 12:23:29 PM
can you maybe outline a bit, what you expect to see, or what makes you so suspicious that you identified a hash160 problem?
177  Bitcoin / Development & Technical Discussion / Re: Why is scriptSig filled with scriptPubKey before signing a transaction? on: November 27, 2017, 10:59:19 AM
I posted my answer as well on your question in stackexchange...

https://bitcoin.stackexchange.com/questions/63489/why-is-scriptsig-filled-with-scriptpubkey-before-signing-a-transaction/63519#63519

178  Bitcoin / Development & Technical Discussion / Re: Pay to Script Hash on: November 11, 2017, 11:29:04 AM
Looks like the formatting is a bit shuffled, can't get it clearly.
This is what I understand happens on the stack for a multisig P2SH tx (I ignore the 0 at the beginning for the CHECKMULTISIG bug):

Quote
Redeem Script     OP_2 PubKey1 PubKey2 PubKey3 OP_3 CHECKMULTISIG
Locking Script      HASH160 <20-byte hash of redeem script> EQUAL
Unlocking Script   Sig1 Sig2 <redeem script>
 

So when I want to unlock the tx, I drop Sig1, Sig2 and <redeem script> on the stack. Then the part of the locking script, and it gives:

Quote
Sig1
Sig2
<redeem script>
HASH160
<20-byte hash of redeem script>
EQUAL

(from Andreas' book "Mastering Bitcoin"):
The two scripts are combined in two stages. First, the redeem script is checked against the locking script to make sure the hash matches.

Replacing the <redeem script> and assuming the 20-byte hash of redeem script is "54c557e07dde5bb6cb791c7a540e0a4796f5e97e", we get this:

Quote
OP_2 PubKey1 PubKey2 PubKey3 OP_3 CHECKMULTISIG
HASH160
54c557e07dde5bb6cb791c7a540e0a4796f5e97e
EQUAL

And then, if the redeem script hash matches, this will be executed:
    <Sig1> <Sig2> OP_2 PK1 PK2 PK3 OP_3 CHECKMULTISIG

oh, the reference is on pages 151ff on the second edition of the book I mentioned.




179  Bitcoin / Development & Technical Discussion / Re: Pay to public key hash on: November 10, 2017, 09:41:04 PM
next to bitcoin.org and the developpers section and  Andreas' book "Mastering Bitcoin", this helped me alot to understand the underlying details:
http://www.righto.com/2014/02/bitcoins-hard-way-using-raw-bitcoin.html

180  Bitcoin / Development & Technical Discussion / Re: i need Help in learning how p2sh addresses and tx works. on: November 10, 2017, 07:50:02 AM
Andreas has a very good explanation on Bitcoin Transactions in his book "Mastering Bitcoin", which is also online readable: file:///Data/Crypto_CCY/Mastering_Bitcoin_2nd.pdf

There is page 141ff for the tx part, and beginning with 151ff he explains the use case for P2SH in detail for multisig purposes.
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!