PubRef - Script OP Code For Public Data References



Summary:

In this email exchange, Mike and ZmnSCPxj discuss the potential benefits and drawbacks of adding an extra opcode to the SCRIPT language used in Bitcoin transactions. Mike argues that the opcode could compress SegWit transactions by 40% and save costs without compromising privacy. ZmnSCPxj raises concerns about the potential for the opcode to encourage pubkey reuse and the fact that a SCRIPT can only access data in the transaction that triggers its execution. They also discuss the need for a database to resolve public references and the computational effort required to maintain it. ZmnSCPxj notes that chain tips are not immutable and can be replaced, so any data referred to using the new opcode can only be referenced if buried under 100 blocks. They also suggest that the creation of a side-chain of indexes could address some of the concerns raised.


Updated on: 2023-06-13T20:10:50.602872+00:00