Bitcoin Forum
May 31, 2024, 01:38:59 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 »
201  Bitcoin / Development & Technical Discussion / Re: Write text/image in blоckchain of bitcоin on: April 03, 2018, 09:45:53 PM
Cool!
Can i write text more than 20 characters?
Using this method, no -- not in one output anyways.
P2PKH addresses are  a 20-byte hash of the public key so you're limited to 20 bytes for each output.
If you wish to insert data of more than 20 bytes, you'll have to do it with multiple outputs (i.e encode your message in different fake addresses) in the same transaction. For example, see this transaction

However, as Murch says, you'll be bloating the UTXO set by using this method; the public key isn't "valid" but the UTXOs are, so even though you can't spend the outputs of the transaction, miners and nodes still have to keep track of the UTXO because they can't tell the difference.

If you want something better, then use OP_RETURN like advised, more data can be stored (80 bytes vs 20 bytes) and since the ouptut is provably unspendable, it can be pruned from the UTXO set.
202  Bitcoin / Development & Technical Discussion / Re: Write text/image in blоckchain of bitcоin on: April 03, 2018, 03:00:19 PM
Maybe you have some online-service for make hex-code and bitcoin address?

Here you go.
To convert a string to hex, use this website.
Make sure the string you're converting to hex is 20 characters (spaces count as characters), so they can be 40 characters (20 bytes) when you convert to hex, which is equivalent to the Hash160 of the public key.
For example if we use
Code:
test post pls ignore
as our text we want to insert in the blockchain, we'll use the website above and we get
Code:
7465737420706f737420706c732069676e6f7265
as the hexadecimal.

Next we need to convert the Hash160 above to a bitcoin address. For that we'll use this website
When we paste the code above to the Hash160 field, we get the following bitcoin address:
Code:
1BcSvC4eTCXHFDXWrqi9TrZBg4WxDSok78

To get our message into The blockchain, we simply send some bitcoins to the address generated.
Send a minute amount of bitcoins because you can't recover them at all.

So to test this, I sent 600 sats to the address, you can see the Transaction here
If you want to see your message, you have to select "show scripts and Coinbase"
Then look at the output script for the transaction, you'll see
Code:
DUP HASH160 PUSHDATA(20)[7465737420706f737420706c732069676e6f7265] EQUALVERIFY CHECKSIG
Something looks familiar, it's our message in hex:
Code:
7465737420706f737420706c732069676e6f7265
To convert it to string to read what it says, use this website And paste it there.
It gives us back our message
Code:
test post pls ignore
203  Bitcoin / Development & Technical Discussion / Re: Have you used Lightning yet? How did it go? on: April 02, 2018, 03:33:43 PM

So does this mean that it still uses the same 'batching' method as some exchanges are already doing? Not complaining but I thought transactions get instantly confirmed with lightning.
No, Lightning Network transactions are different from transaction batching.
A lightning channel is a multisig address with pre-signed spend transactions that you change everytime you transact over it.
In fact they don't take place on the blockchain at all (only the channel opening and closing do), that's why they are fast.
This is a good FAQ on how the Lightning Network works.
204  Bitcoin / Development & Technical Discussion / Re: The Lightning Network's penalty system in action on: April 02, 2018, 11:00:07 AM
Unless I am missing something, I don't think that is right. Consider this scenario:

"A" and "B" open a channel and engage in several transactions. If immidiately after the most recent transaction, "transaction n", "B" losses all data associated with his LN wallet, and was unable to backup his data after "transaction n", then he will have insufficient information available to close the channel without risking all of his funds (with near certainty of loss). Remember that "B" does not have the current state of the channel.

If "B" tries to close the channel, he must do so using an old state, and attempting to use this would result in "A" being able to claim all funds in the channel.
It seems I misunderstood your previous post.
The Lightning Network nodes are local and not on the blockchain so you can't restore backups deterministically. So without a backup you're SOL.
However in the future you could outsource the watching of commitment transactions to a Watchtower so if your peer tries to cheat you even if you're offline or lose your backup, then the Watchtower could post the penalty transaction on your behalf and take a cut of it as fees.
It's still very nascent at this stage though.


Quote
I don't think this is right. My understanding is that Bitcoin Core/QT would pre-generate 100 addresses in advance, so you could backup your wallet and the backup would contain the next 100 addresses you would receive bitcoin to.
Actually in the past, before version 0.3.13.3, there was no keeypool feature and users had to backup after EVERY transaction.
The Keypool feature was introduced in version 0.3.13.3 by Satoshi after a user lost a large amount of bitcoins because he didn't backup after his last transaction so he didn't have access to the private key of his change address.


In hindsight, using Keypool, HD,  and mnemonics seem obvious to us. It wasn't obvious then.
On the future when LN has drastically improved, the improvements would seem obvious I'm hindsight too.
205  Bitcoin / Wallet software / Re: How does transfer to hard wallet really work? on: April 02, 2018, 06:27:08 AM

6.   Coinbase then attempts to locate address 36.  How does this work?
Everything is correct so far till step 6.

Bitcoins exist as unspent outputs (UTXOs) which exist on the blockchain.
So when you're sending bitcoin, you're actually transferring Ownership of a certain UTXO(s) to someone else. A person can only claim a UTXO if he satisfies (a) particular condition (s)
When a bitcoin transaction is made, the scriptPubkey specifies the condition to redeem the output of that transaction.
If you're paying to an address, the output of that transaction specifies the recipient and the condition for claiming that transaction, namely providing the public key of the address (addresses are hashes of public keys), and signing the transaction (signature).
So when Coinbase sends you 1BTC, it's transferring possession of the UTXO (s) that make up 1 BTC to your address (actually to the private key of that address, since it's only the person with the private key of that address that can spend it)

Quote
9.   Does it then publicize my received address?
No, it doesn't need to.
Coinbase already specified the address in the transaction.
You do not need to be online to receive it. Same with a bank transfer, you do not need to be online to receive money in your bank account. It's always there for you as long as you can prove you're the owner of the account. So a UTXO is always yours as long as you can prove you're the owner.
Quote
10.   How does it get in touch with Coinbase?
Answered above.
Quote
11.   Somewhere along the line Coinbase builds a transaction that says here is one Bitcoin for address 36
Exactly, years.
That's what happens when a transaction is made.
When A sends Bitcoins to B, in the transaction A makes it says: Give x amount of bitcoin to B, iff B provides the public key for this address (an address is a hash of a public key and it is impossible to get a public key from an address if the address hasn't made any transactions because it reveals the public key) and B must sign a transaction from that address (to sign a transaction you need the private key, and you can generate a public key from a private key easily)
Quote
12.   What next?
The full process is this:
Coinbase sends x BTC to you, specifying that for you to spend it you must provide the public key for that address, and must sign a transaction too.
You and you alone in possession of the private key can do that because it is impossible to 1)get a public key from an address, and 2), get a private key from a public key (you reveal your public key whenever you make a transaction to prove the first requirement)
So for you to spend that transaction you must 1) provide your public key, and 2) sign the transaction claiming the UTXO (bitcoin)
It is validated and compared and  if they match then you have spent that UTXO.
The next transaction you make does the same thing: it references the UTXO Coinbase sent you (this is your input for the transaction) and also specifies requirement for the recipient to fulfill before s/he can spend the bitcoin you sent.

The process is for P2PWKH (sending to an address). P2SH is slightly different.
Quote
While we are at it:  
What keeps computer Joe from monitoring this all and claiming that he has address 36 and should get that bitcoin.

Like I said above you have to prove you control the address by having the private key.
Whoever has the private key can spend the funds -- bitcoin doesn't know or care if you're the "real" owner or not.
There's no "ownership" in bitcoin, just possession.
206  Bitcoin / Bitcoin Technical Support / Re: Transaction puzzle on: April 01, 2018, 08:30:18 PM
Any address would do.
Just encode the private key or mnemonic phrase  in the puzzle.

Or if you're using P2SH address, find a way to encode the redeem script in the puzzle, while giving out the private keys (and order), or encode the private keys and give out the redeem script.

The Bitcointalk community loves crypto puzzles so share your puzzle when you're done.
207  Bitcoin / Bitcoin Technical Support / Re: identify seeds on: April 01, 2018, 08:23:38 PM
]
Quote
Invalid mnemonic
two of my seeds have 11 words.
According to the BIP 39 standard, seeds need to be a fixed length of entropy: 128, 160, 192, 224 or 256 bits. That's 12, 15, 18, 21 & 24 words respectively.
So either your seed phrase isn't complete, or it isn't a BIP 39 seed at all.
Your seed needs to be at least 12 words.

"Invalid mnemonic" means that either the words are incomplete, are in the wrong order (the order matters, the last word is a checksum), or one or more of the words isn't in the BIP 39 word list.

You still haven't said what wallet created the seed phrase.

208  Bitcoin / Bitcoin Technical Support / Re: identify seeds on: April 01, 2018, 07:29:52 PM
i can give you this phrases, you will check it manually
Don't.
It's a bad security practice.
What wallet did you create them on?
What error does Ian Coleman's BIP39 tool give you exactly?
209  Bitcoin / Bitcoin Technical Support / Re: identify seeds on: April 01, 2018, 06:15:56 PM
Are you sure you're typing them correctly?
The correct syntax is to type them all in small letters with only a space separating each word. No commas, no nothing.

Can you find the words in the BIP 39 word list?
210  Bitcoin / Development & Technical Discussion / Re: Bitcoin theory and Bandwidth Utilization over time. on: April 01, 2018, 06:11:02 PM

I'm not talking about "coins" in general; I'm talking about Bitcoin specifically. So when you speak of "coins that rely on CPU-Wars", you include Bitcoin as one of them ...correct?
Please ignore the known troll.
Check his post history.
211  Bitcoin / Development & Technical Discussion / Re: The Lightning Network's penalty system in action on: April 01, 2018, 02:12:58 PM
You have to remember that Bit-Coin has never, ever had any bugs in it despite dozens of updates
Actually Bitcoin has had lots of bugsin the past, but they have always been patched before they caused any significant problem.

Quote
Penalty system controlled by miners and the development team is not going to work out too well
IMHO for joe public and will be like the old pledge about "Virtually free transactions fees" we saw as fees
hit $55.00 just to store 250 bytes of data.
The penalty system is not "controlled by miners and the development team"
You do not even know how it works or want to  learn how it works.
Either you're a persistent troll or an idiot with double-digit IQ.
Either way, you should really stop shitposting.
212  Alternate cryptocurrencies / Mining (Altcoins) / Re: Should I buy this PC? on: April 01, 2018, 12:27:36 PM
No CPU or GPU is good enough for Bitcoin mining.
Your mileage may vary for altcoin mining.

Move your topic to the mining section.
213  Bitcoin / Development & Technical Discussion / Re: Bitcoin theory and Bandwidth Utilization over time. on: April 01, 2018, 11:00:02 AM

Even so you made a good observation, as that's pretty much one of the main arguments for keeping Bitcoin's blocks as small as possible. And incidentally, why Bitcoin has decided against linear on-chain scaling, favouring the likes of Lighting Network instead. The latter enabling small transactions to be accumulatively settled, without having to bloaten the blockchain with every single micro-transaction ever made.
This!
Compare the blockchain size of Ethereum and Bitcoin.
Ethereum's dwarfs Bitcoin's even though Bitcoin is at least 5years older.



It is such a problem that Ethereum developers are talking about charging rent to store data on the Ethereum blockchain

OP: Even though the blockchain size is increasing linearly (at least compared to Ethereum's exponential rate), technological advances are improving and prices of storage are falling also, so it's not really a problem.

214  Bitcoin / Development & Technical Discussion / Re: Trace transactions with Lightning Network on: April 01, 2018, 10:25:27 AM
Hi,

How to see transactions that occured in the off-chain part ?
You can't. That's the beauty of the Lightning Network.
If it's direct then the counterparties in the transaction -- and only they-- can see it because THEY made the transaction.
If it's a routed payment then it's impossible to know the sender of recipient of the transaction because the Lightning Network employs Onion Routing similar to TOR.
Intermediate hops do not know their position in the route, they don't know about other intermediaries apart from their predecessors and successor and they don't know if the predecessor is the original sender or if the successor is the recipient.

Quote
I understand LN will register finally the balances on the blockchain, but what about all the small transactions during the off-chain process ?
Like I said above,channel  state changes re only available to the main counterparties in the transaction -- intermediaries and observers are not privy to this information.
Quote
Will there be a blockchain.info like tool to explore all transactions ?
As explained above the lightning network can't have a block explorer to explore all transactions, however, there are lightning Graph explorers that show information and stats about the nodes on the network.
My favourite is http://1ml.com
Quote
Blockchain should be transparent and be able to register all transactions. If LN allows off-chain small transactions for performance purpose, fine, but how to ensure transparency
A lightning network transaction/channel is a smart contract between two people, and each state change (commitment transaction) is a signed bitcoin transaction so it has all the properties of a bitcoin transaction:  the message was created by a known sender (authentication), that the sender cannot deny having sent the message (non-repudiation), and that the message was not altered in transit (integrity).
Quote
I might not understand well the final process of registration of the balance sheet on the blockchchain, will it show all transactions between Alice and Bob ?

So many questions  Cheesy Thanks all.
The final transaction/ channel close transaction is just another bitcoin transaction that updates the balances between the wallets of the participants.
You'll just see a transaction paying 2 addresses different amounts of bitcoin "from" a multisig address.
Whatever took place in the Lightning Network is not visible.
215  Other / Meta / Re: New new rank requirements on: April 01, 2018, 06:58:46 AM
Quote
Politeness
How polite you have been in your posts, using language such as "please" and "sir". Politeness is after all the cornerstone of any good community.
The Pharmacist is sure going to love this!
216  Bitcoin / Development & Technical Discussion / Re: The Lightning Network's penalty system in action on: March 31, 2018, 09:50:00 PM
If this is true, which is appears to be, then this is a pretty serious problem with LN. To me, this would indicate that hardware failing, or a DB getting corrupted would essentially mean that all money within all open LN channels will be lost, as you cannot backup a LN wallet until after the fact, unlike with most wallet implementations in which you can backup private keys prior to receiving funds. 
While it's true that channel states are obviously not deterministic and thus can't be backed up once via a mnemonic seed phrase like bitcoin private keys, the funds in the channel aren't irrevocably lost; the user can always close the channel unilaterally once the CSV timeout  on the transaction has elapsed.
Quote
Sure, you might argue LN worked exactly as designed, however I would say the design is flawed.
The design of the protocol isn't flawed; broadcasting stale channel states should be punishable or else nothing stops a peer from trying to cheat by broadcasting old channel states.
What ever caused the peer to broadcast an old channel state, be it dishonesty or error, is not the problem of the protocol.
If a user sends bitcoins to an address and the transaction is confirmed it is irreversible. It doesn't matter if the transaction was sent to the wrong address, or the wrong amount.

There should be a better way of storing/preserving old channel states that survives a hard disk crash or similar.
That design could be improved, but then again, Rome wasn't built in a day.
Back in the day, you had to backup Bitcoin-Qt after every transaction.

I hope and believe LN will get there.
217  Bitcoin / Development & Technical Discussion / Re: Lightning network - implementation plan and roadmap or expected sequence ahead? on: March 31, 2018, 08:26:49 PM

I think government agencies will run their own hubs and they will pass laws forcing exchanges to go through these hubs as a part of KYC, or at least exchanges hosted within certain jurisdictions at the reach of these governments. We'll have to wait and see how it develops. There will always be exchanges hosted somewhere in some island that is not impacted by any of that anyway.
Exchanges may not even run Lightning Channels because they won't be able to make it KYC compliant since no node on the network truly knows the true origin or destination of a lightning transaction.
Quote
Decentralized exchanges through LN are also something that has been hyped out for a while but it's still too early.
There's already sort of an exchange that supposedly works on the Lightning Network
218  Bitcoin / Development & Technical Discussion / Re: can som1 help accelerate this on: March 31, 2018, 02:40:53 PM
Fees are very low right now.
Your transaction will get confirmed within 30 minutes or less.
You paid 8 sats/byte meanwhile transactions with 1 sat/byte get confirmed within 5 blocks at most.

Either way I forwarded your transaction ID to Antpool's transaction acceleration service.
219  Bitcoin / Development & Technical Discussion / Re: Transaction Malleability Simple Explanation? on: March 31, 2018, 02:34:00 PM
Quote
That makes sense, thanks for your reply. There are no shortcuts when it comes to fully understanding these things, so I would have to learn more about cryptography after all.
Ken Shirriff has an excellent post on Transaction malleability, so start from there
220  Bitcoin / Bitcoin Technical Support / Re: Transaction in watch-only on my wallet - Help needed on: March 30, 2018, 03:24:58 PM
I know what watch-only address are, but I don't understand why I see these transactions.
I never imported address. The only thing I've done yesterday was to try use BarterDex.
You see the transactions because someone with the private key made transactions with them.
If the watched address is yours and you never made those transactions then your private key has been compromised.

You said you used Barterdex, which requires you to download an app on your system.
Your private key MAY have leaked when you did that
(I'm not familiar at all with Barterdex or the Komodo platform so I can't say for sure that it's the cause)
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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!