Author

Topic: A small optimization (Read 667 times)

sr. member
Activity: 412
Merit: 287
January 15, 2016, 11:26:15 AM
#5
That number, n, and the address would be consensus derived, meaning it can change if a better chain comes in. Imagine giving someone address 1000000, and 10 minutes later it belongs to someone else..

This is why addresses embed the hash of the public key. You need to see a collision in RIPEMD160(SHA256()) to collide an address.
newbie
Activity: 4
Merit: 0
January 15, 2016, 09:38:45 AM
#4
Describe how you would attribute the "nth address"  correctly in a distributed network and/or block fork.

I'm assuming your basis would be something along the lines of the "mth" output index in the "nth" transaction would contain the nth address. If only transaction ordering could be reasoned with Wink

As a side note, is 2^48 number of transaction output indexes sufficient for all the addresses in time ever?

What about script hashes?

Basically you're suggesting that you can compress the public address into something smaller, which at best case "might" reduce any scripts that contain 20 bytes hashes of public keys (P2PK) into 4-6 bytes, saving at most 16 bytes. Not even enough to fit another transaction in beside it. So less than doubling the transaction count in a single block (best case).

You're better off doubling the block size capacity (to 2mb) and you already have a better solution.
full member
Activity: 185
Merit: 114
January 15, 2016, 09:30:13 AM
#3
I don't know of an easy way to check, but addresses certainly are reused, even though doing so is not the best practice. Does anyone know what percentage of addresses in (say) recent blocks have already been seen once before on the blockchain?
legendary
Activity: 3472
Merit: 4801
January 15, 2016, 09:24:44 AM
#2
Since you really shouldn't be re-using addresses anyhow, this idea doesn't seem very useful.
full member
Activity: 185
Merit: 114
January 15, 2016, 09:05:59 AM
#1
What if, for the special case of an address already seen on the blockchain, it could be referenced by "The nth address on the blockchain" rather than the full address? N could be a 32 (40? 48?) bit number. Is this essentially what "Segregated Witness" does?
Jump to: