Bitcoin Forum
May 01, 2024, 11:55:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 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 50 51 52 53 54 55 [56] 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 ... 285 »
1101  Bitcoin / Development & Technical Discussion / Re: A breakable P2SH address - Bitcoin testnet inside on: August 04, 2020, 02:24:51 PM
1) Correct me if I'm wrong but unlocking scripts must, to the best of knowledge, be "push only", and if you include any other opcode you will get "64: scriptsig-not-pushonly" (I've hit this wall a number of times)
that is only if you want it to be standard.
unfortunately 90% of the things we read on forums, SE, documentation,... that say "must be" are talking about standard rules.
SCRIPT_VERIFY_SIGPUSHONLY  flag is only added to standard rules and doesn't exist during block verification.

to test this you have to mine the block yourself!

Quote
2) If you fiddle around with the locking script, its hash will change which will invalidate the transaction?
the transaction hash will change but it won't make the transaction invalid. because the transaction you are verifying is not using its own hash.

that is what malleability is. fiddling around with the transaction scripts to change its hash and cause troubles. most of the cases are already fixed and can no longer happen. they are explained in BIP-62.
for example OP_CHECKMULTISIG(VERIFY) OPs pop an extra item from the stack and is ignored so it could be anything. an attacker could easily change it to any other push and create any number of still valid transactions each with a different hash. with SegWit softfork this can no longer happen. the flag is SCRIPT_VERIFY_NULLDUMMY which you can see is used during verification too.

i should also mention that all bitcoin core nodes reject all non-standard transactions so malleability is not a problem because it is practically impossible to perform.
1102  Bitcoin / Development & Technical Discussion / Re: basic probability on: August 04, 2020, 02:15:06 PM
since the difficulty is defined as an integer comparison not a "leading zero count" thing, if you want to compute the probability of finding a block at first attempt then you must find the probability of finding a number that is in range from 0 to target from a bigger range of numbers that go from 0 to 2^256.
and if i'm not mistaken that probability is calculated by dividing target by 2^256.
1103  Bitcoin / Development & Technical Discussion / Re: A breakable P2SH address - Bitcoin testnet inside on: August 04, 2020, 02:03:11 PM
...
This isn't correct. I designed the locking script so it requires exactly two pushes of equal string length. An empty unlocking script will fail. Also, "lots of OP codes" will fail too.

it is not "string" length despite what the wiki says, it is byte length and what i meant was that you can change the 2 initial data that are being pushed to the stack to be literary anything. then you can also add some other garbage code there for example the second thing you posted can be modified to this that even has an OP_CHECKSIG inside and it still passes:
Code:
OP_5 0x03ffffff OP_CHECKSIG OP_NOT OP_1 OP_1 <redeem_script>
and it still has nothing to do with breaking the redeem script Tongue
1104  Bitcoin / Development & Technical Discussion / Re: A breakable P2SH address - Bitcoin testnet inside on: August 04, 2020, 09:25:57 AM
I tried to disguise an anyone-can-spend P2SH address as well as I could so that a spending on the blockchain (the first) would contain three 32-byte strings as the sigscript. That was all.
well the moment you posted the link to that address here (the first line of this topic) that disguise stopped working.

Quote
After someone else redeemed the coins, I later showed that my much shorter unlocking code "OP_1 OP_1" can be used, tx here.
you found one case of transaction malleability.
it doesn't matter what you place before your redeem script, it can even be empty or it can contain lots of OP codes, it still evaluates the same.
by the way it has nothing to do with "breaking the redeem script".

Quote
I'm honestly not convinced someone would have noticed anything if I hadn't written about it here.
you are probably right but only because it is "testnet" and it has no value. doing the same on mainnet would surely lead to an immediate double spending of the same coins by multiple transactions, more if the value is high (like 0.1BTC which is worth $1100+).

Quote
I'm not sure I follow your reasoning around the word "breaking". R- and S-reuse, for example, the good old classic bad (static nonce) signature that leads to private key leakage, is that "breaking" or "f-ck obvious"?
well there is no signature involved anywhere in your transaction as there is no OP_CHECK(MULTI)SIG(VERIFY) OP codes anywhere in it. we are talking about an arbitrary script that anyone can spend and is also revealed already.
1105  Bitcoin / Development & Technical Discussion / Re: A breakable P2SH address - Bitcoin testnet inside on: August 04, 2020, 05:21:15 AM
It is easier than you think to break it. And someone just did:

i don't know if you don't know the meaning of the word "break" or just misusing it but this is not what "breaking" means. breaking would be if and only if the only thing that was revealed were the hash of the script and nothing else.
as i said there is absolutely no way of breaking it when it is only the hash. but when you have already revealed the script here (which anyone can spend) all it takes is a copy and paste of it into a new transaction spending the new output(s).
1106  Economy / Speculation / Re: Not many try to buy on Bitfinex, but many try to sell on Bitfinex these days... on: August 03, 2020, 05:53:25 PM
first of all how in the word do you even claim to know when someone who is selling bitcoin has bought his coins at? it is not like there is a flag on top of their trades shouting their buy price to the world.

secondly your whole statement about people are only selling on bitfinex (Not many try to buy on Bitfinex, but many try to sell on Bitfinex) makes zero sense!
i hope you realize that in any market when someone sells 1 bitcoin another person has to buy 1 bitcoin! you can't say there are more sellers than buyers. specially when price on Bitfinex is the same as everywhere else.
1107  Bitcoin / Development & Technical Discussion / Re: A breakable P2SH address - Bitcoin testnet inside on: August 03, 2020, 05:15:36 PM
Show me you can break it and sweep the coins!

It's NOT of those "try and bruteforce my 32-byte private key" or the like. The solution is simple.

well unless you consider cheating to be a "solution", it is not possible to break something like this even if you knew the number of OP codes inside the script or knew the ballpark of their type. it contains 14 OP codes that are never used (ROT, SWAP, NIP, SIZE, ...) and 2 random data pushes!
1108  Bitcoin / Bitcoin Discussion / Re: Why did we experience an overshoot in the price of Bitcoins ? on: August 03, 2020, 05:04:07 PM
it is the goold old FOMO that we have been expecting to happen for a couple of weeks. each time bitcoin tested the $10k resistance and didn't break it and filled the pockets of the accumulators as the panic sellers panic sold, the upcoming FOMO became stronger.
and without any surprise as the $10k was broken a surge of buyers rushed to exchanges and started a panic buying hence the jump to that high level in a very short time. in fact i was even expecting to see $13k+ as i mentioned it multiple times before but still $12.2k is still close.
1109  Bitcoin / Bitcoin Discussion / Re: Covid crisis & evolving phases on: August 03, 2020, 04:52:50 PM
no.
people have been using digital form of payment for a long time now even without COVID-19 pandemic. in fact usage of physical cash has been very little in most places in the world.
with the pandemic they may have moved more towards digital payments but not towards bitcoin and decentralized money. bitcoin still needs adoption (merchants accepting it, employers paying salaries in it,...) before we can see people move towards bitcoin.
other cryptocurrencies are useless anyways so there is nothing there to go to in first place!
1110  Other / Beginners & Help / Re: [How to] Detect and recognize projects on: August 02, 2020, 04:51:03 PM
A lot of guidelines have been shared in this forum. Unfortunately, scammers are also upgrading their strategies in order to fool people. In fact, we can`t easily differentiate the genuine projects from a fake one. It should undergo into a deep research for us to know how a project really serious.

are they really upgrading their scammy methods too?
i honestly haven't seen any new method of scamming people for a very long time. it has been the same thing but it gets easier and they keep changing the name of it. for example they were scamming using ICOs and then changed the name to IEO and did the same scam all over again under the new name then changed it a couple of times. and nowadays with the latest name (DeFi) they are scamming all the same.
1111  Economy / Economics / Re: i was right about the economy ! on: August 02, 2020, 04:30:03 PM
All i want to say is this to people that lost their job or have financial problems now :

DO NOT ! I REPEAT DO NOT PUT YOUR MONEY IN THE STOCK MARKET OR CRYPTO CURRENCIES ....

Buy land or start a small business or do something else with your money ,invest in your education,kids etc ... stay away from stock market and crypto currencies ... the rich f...kers and govs are playing a game called "Pump and Dump"

the way you have been painting your imaginary doomsday scenario you are also unknowingly contradicting yourself here because if such scenarios took place then everything is going to turn into shit. your "business" will also go under, specially when it is new and small. and your "land" is also useless unless it is huge  you plan on planting potatoes in it and take the food market with it during the "doomsday" Cheesy
1112  Economy / Speculation / Re: Bitcoin Hits USD 12K, Crashes By USD 800 In Minutes!! on: August 02, 2020, 04:19:16 PM
it was not a crash bro, it is was drop and a small one too. in the past couple of days we have seen price go from $9200 to $11000 and i call that a big rise.
in fact the more accurate term to use is "correction" because this is exactly what this recent drop was. and it shows the healthy rise that we are having and signals the upcoming rises that will follow.
1113  Bitcoin / Bitcoin Discussion / Re: what did the author mean? on: August 02, 2020, 03:52:33 PM
I quote: "Seriously tho the best way to trade shitcoins in a bull market is trend following. Draw a bunch of MAs and buy if price > MA. If you can code do this for 100 shitcoins at once. Sit back and watch your BTC double. This tweet will get 5 likes but it's the biggest alpha I've leaked."

pump and dump is a form of manipulation and as any manipulation goes, they are hardly predictable because they are not natural market movements. of course there are always signs on the charts but i have never seen moving average work well in predicting a pump and dump.

think about it this way, if it were this simple to predict an unpredictable thing called pump then every newbie with a bot would have been super rich by now!
1114  Bitcoin / Development & Technical Discussion / Re: Solving WIF in a 'hybrid' mode on: July 31, 2020, 06:26:41 PM
I do not understand question
Quote
but here is a question, how do you know that addition of more (58^n) between 1 and 63 is not going to give the same 0x01?
What do you want to add? On which position?

it seems to me that when you add 64*(58^34) to go to the next value and check the addition result, you are skipping a lot of values in between (the jump) and i am trying to figure out how can we be sure there isn't any other valid values in that skipped space to check.
1115  Bitcoin / Development & Technical Discussion / Re: Solving WIF in a 'hybrid' mode on: July 31, 2020, 04:44:03 PM
i have 2 problems with your method.
1) you skipped over explaining how you came up with 64 when you made the jump in 64*(58^34). looking at the binary representation of (58^34) i am guessing you were looking for enough bits to leave the 0x01 untouched hence the 6 bit shift.
but here is a question, how do you know that addition of more (58^n) between 1 and 63 is not going to give the same 0x01?
note that i said n and not 34 because the assumption should be that the missing character could be in different positions which brings me to second problem

2) if i understood your method correctly then it can not work in cases when (58^n) doesn't even change 0x01 at the end. for example the following key since you can no longer make any jumps:
L5E______YaSudiozVRzTqLcHLNDoVn7H5HSfM9BAN6tMJX8oTWz6
1116  Economy / Speculation / Re: Bitcoin will touch the high price in 2020? on: July 31, 2020, 04:23:12 PM
If you see the trend on the graphs you can see the new ALH doesn't happen the same year of the halving, i think the new ATH will be in 2022... and for that time we can expect something like $100k each coin.

Is just speculation buddy, remember, with cryptos everything is possible.

i personally don't like speculating like this too much focusing on the past performance but if we were to do it, last halving was mid 2016 and the bull run started in 2016 and ATH was in 2017.
this halving was in mid 2020 and it should end up with ATH in 2021 not 2022!

so far the trend feels the same with the huge drop of the nearly same size as 2015, the recovery that slowly followed and now we are in beginning of 2017 where the rises has to start.
1117  Bitcoin / Development & Technical Discussion / Re: Can Bech32 be P2SH? [Bounty inside!] on: July 31, 2020, 03:49:21 PM
Still, no conclusive answer to the core question: Can a Bech32 be a P2SH-address? As the wiki seems to imply. If yes, how would you construct valid witnesses for it?

your question is asked in a strange way but it is already answered by achow101 in the first line of his comment.
in other words, and a correct term, you can create a bech32 address from the hash of a script which would make the resulting address of type P2WSH and that hash (unlike the hash used in P2SH) is a single SHA256.

so to expand:
Code:
bech32(ripemd160(sha256(OP_1)))
this route will make a P2WPKH and makes the output unspendablewhy?.
the correct route is this:
Code:
bech32(SHA256(OP_1))

why? because that is how the protocol works. when the script interpreter sees OP_0 followed by 20 bytes (which is the same as short bech32 address you created) it expects a P2WPKH script and a single signature and single public key (2 items) in witness stack not a script. if you provide OP_1 it fails right away because your witness stack has only 1 item instead of 2 and if it tries converting 0x52 to a public key it obviously fails.
1118  Bitcoin / Bitcoin Discussion / Re: What difficulty do you face on trading bitcoin? on: July 31, 2020, 03:37:33 PM
luckily i live in a country that has no laws against using or investing in bitcoin so i never faced the problems you have struggled with but at the same time i never liked the idea of filling KYC forms in an exchange that is going to get hacked sooner or later. i am already worried about using the exchange itself with my precious bitcoins as it is, i don't want to give them any more things they can lose or worse sell!
luckily i mostly make investment in bitcoin, which means buying it when there is a dip or price is low and for that i choose P2P trades. throughout the years i have found trusted people whom i trade with semi-regularly.
1119  Bitcoin / Bitcoin Discussion / Re: Segwit, and batching, a must in these times on: July 31, 2020, 03:08:08 PM
Perhaps as well as a higher usage of LN? Admittedly, most people wouldn't use it so it's better to just concentrate on optimizing the onchain transactions.

IMO LN is not viable option, unless you frequently make transaction.

it can actually be a very viable option. look at why fees spike most of the times, in 90% of the cases the fees spike hard when price has a big rise or a big drop. that means it is the transactions that go to and come out of exchanges that is causing the spike.
now if a good portion of those transactions could go to a second layer then it would solve most of the fee problems. it may not be a complete fix though.
1120  Economy / Speculation / Re: Bitcoin Stable At $11K – Altcoins In Green: The Calm Before The Strorm? on: July 31, 2020, 02:07:37 PM
the times like this are usually good for shitcoins. the times that bitcoin price has a big rise in a short time (a couple of days in this case) that causes the shitcoins to dump but then bitcoin stabilizes and that means shitcoins can pump specially since they had that dump.
Pages: « 1 ... 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 50 51 52 53 54 55 [56] 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 ... 285 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!