<<  >> (p.2)
    Author Topic: Using compact indexes instead of hashes as identifiers.  (Read 2886 times)
    TierNolan
    Legendary
    *
    Offline Offline

    Activity: 1232
    Merit: 1144


    View Profile
    March 11, 2016, 01:05:46 AM
     #21

    canonical encoding means a numbering system for each block, tx, vin, vout so that the same number references the same one. Since the blocks are ordered and the tx are ordered within each block and vins and vouts are ordered within each tx, this is a matter of just iterating through the blockchain in a deterministic way.

    Is it just a count of outputs, or <block-height | transaction index | output index>?

    Quote
    I have no idea how this would cause any privacy loss as it is just using 32 bit integers as pointers to the hashes. The privacy issue was raised as somehow a reason to not use efficient encoding.

    Ahh ok, I guess it is confusion due to the thread split.  I agree, I see no loss in privacy by referring to transactions using historical positions.

    With a hard fork, transactions could have both options.  If you want to spend a recent transactions, you could refer to the output by hash.  For transactions that are buried deeply, you could use the index.  With reorgs, the indexes could be invalidated, but that is very low risk for 100+ confirms.

    1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
Page 1
Viewing Page: 2