Author: Anthony Towns 2023-01-11 06:52:28
Published on: 2023-01-11T06:52:28+00:00
In an email thread, James O'Beirne and Andrew Poelstra discussed the design of OP_VAULT, a new opcode for Bitcoin script that enables secure storage of funds in cold storage. The conversation covered various aspects of the design, including the size and complexity of the witness script, the use of recovery-path construction, and the potential for batching inputs and outputs with compatible vault parameters. Poelstra suggested that the witness script should be designed to make it easy to do common operations, easily reusable, and easy to analyze once written. He also proposed using a pay-to-contract construction for the recovery path instead of an empty witness and suggested making the recovery-path authorization behavior variable on a single byte flag preceding the 32 byte data push. Additionally, he discussed using a generic op_unvault to simulate OP_CTV and batching or generalizing checking that input/output amounts match. Finally, he highlighted the benefits of hiding the OP_VAULT side of things in taproot (or p2wsh) and combining operations from multiple different vaults into a single transaction.
Updated on: 2023-05-22T23:20:09.782312+00:00