John Dillon [ARCHIVE] on Nostr: đ
Original date posted:2013-07-28 đ Original message:-----BEGIN PGP SIGNED ...
đ
Original date posted:2013-07-28
đ Original message:-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Peter Todd recently came up with two related, and IMO very good, uses for
non-standard transactions to implement both oracles and one-time-password
protection of wallet funds. While the wallet fund case could be implemented as
only a single standard type, at the cost of generality, the oracle case would
be most useful with more arbitrary rules. More generally it is also useful to
be able to have scriptPubKeys like the following:
n <pubkey>...<pubkey> m CHECKMULTISIG <master pubkey> CHECKSIG BOOLOR
and many other similar constructions.
What are your thoughts on creating a whitelist for specific opcodes that would
apply to scripts serialized using P2SH, retaining the existing standard
whitelist for scriptPubKeys? (I would still recommend dropping pay-to-pubkey
and pay-to-multisig due to their potential for dumping data in the UTXO set)
I'm thinking it should contain the following opcodes, picked for either being
already used, or having simple semantics:
0 to 75 byte pushdata
PUSHDATA1
1NEGATE
OP 1 to OP16 (numbers are allowed through pushdata anyway)
IF
NOTIF
ELSE
ENDIF
VERIFY
RETURN
TOALTSTACK
FROMALTSTACK (the alt-stack makes stack manipulation in complex ways possible)
DROP
DUP
SWAP
EQUAL
EQUALVERIFY
0NOTEQUAL
BOOLAND
BOOLOR
RIPEMD160
SHA1
SHA256
HASH160
HASH256
CHECKSIG
CHECKSIGVERIFY
CHECKMULTISIG
CHECKMULTISIGVERIFY
Note how this list allows for complex logic, but does not allow for arithmetic,
thus not exposing us to a source of problems in the past.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEcBAEBCAAGBQJR9XMQAAoJEEWCsU4mNhiPyXoIAMz2YZsq+/YUnq5G5AEVmJL/
D7qrLpuI++auMEDoXzt8CqmXbDqci/d70IsBYeHdZkxBp2dah99iDzwIoBhtO/xh
XR8m4P+FH+IF6xbuTUAQbBQxr9VuymUatUCmsFzP0YbtPwIzJvUAqJkVeYW1DUXj
6pc9EW3iYdhAvpKNU7A19F6FA96y9m9DyBvY3TCHwzf591Ld1S8ghb9dEuKKYMGl
8TuEMMU/bytZkdD590Ww+f6ukeSOMw9C9+IpAKotB2oq4F4Vkwyzw4rd8sNRAa6c
lEDov6UtDSp4ALMfUxw/nxMO8UB43iJhu31KihcjOZpiYvRVeQlM8XLEvAafZvA=
=Jph1
-----END PGP SIGNATURE-----
Published at
2023-06-07 15:05:16Event JSON
{
"id": "d587adc39d04bf048d21278b4df59de30003aa667af18e3aad91ecb51c1c25c4",
"pubkey": "a0b592adfee20cad7bb28c238a9fc1fccf4511a458be8e3d96b00c914c8c3564",
"created_at": 1686150316,
"kind": 1,
"tags": [
[
"e",
"fd23b80255ddd7996a2575001a9934e42ccc9581f5658bf7cbb01972caea1ce6",
"",
"reply"
],
[
"p",
"a23dbf6c6cc83e14cc3df4e56cc71845f611908084cfe620e83e40c06ccdd3d0"
]
],
"content": "đ
Original date posted:2013-07-28\nđ Original message:-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA256\n\nPeter Todd recently came up with two related, and IMO very good, uses for\nnon-standard transactions to implement both oracles and one-time-password\nprotection of wallet funds. While the wallet fund case could be implemented as\nonly a single standard type, at the cost of generality, the oracle case would\nbe most useful with more arbitrary rules. More generally it is also useful to\nbe able to have scriptPubKeys like the following:\n\n n \u003cpubkey\u003e...\u003cpubkey\u003e m CHECKMULTISIG \u003cmaster pubkey\u003e CHECKSIG BOOLOR\n\nand many other similar constructions.\n\nWhat are your thoughts on creating a whitelist for specific opcodes that would\napply to scripts serialized using P2SH, retaining the existing standard\nwhitelist for scriptPubKeys? (I would still recommend dropping pay-to-pubkey\nand pay-to-multisig due to their potential for dumping data in the UTXO set)\n\nI'm thinking it should contain the following opcodes, picked for either being\nalready used, or having simple semantics:\n\n0 to 75 byte pushdata\nPUSHDATA1\n\n1NEGATE\nOP 1 to OP16 (numbers are allowed through pushdata anyway)\n\nIF\nNOTIF\nELSE\nENDIF\nVERIFY\nRETURN\n\nTOALTSTACK\nFROMALTSTACK (the alt-stack makes stack manipulation in complex ways possible)\nDROP\nDUP\nSWAP\n\nEQUAL\nEQUALVERIFY\n\n0NOTEQUAL\nBOOLAND\nBOOLOR\n\nRIPEMD160\nSHA1\nSHA256\nHASH160\nHASH256\n\nCHECKSIG\nCHECKSIGVERIFY\nCHECKMULTISIG\nCHECKMULTISIGVERIFY\n\nNote how this list allows for complex logic, but does not allow for arithmetic,\nthus not exposing us to a source of problems in the past.\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.11 (GNU/Linux)\n\niQEcBAEBCAAGBQJR9XMQAAoJEEWCsU4mNhiPyXoIAMz2YZsq+/YUnq5G5AEVmJL/\nD7qrLpuI++auMEDoXzt8CqmXbDqci/d70IsBYeHdZkxBp2dah99iDzwIoBhtO/xh\nXR8m4P+FH+IF6xbuTUAQbBQxr9VuymUatUCmsFzP0YbtPwIzJvUAqJkVeYW1DUXj\n6pc9EW3iYdhAvpKNU7A19F6FA96y9m9DyBvY3TCHwzf591Ld1S8ghb9dEuKKYMGl\n8TuEMMU/bytZkdD590Ww+f6ukeSOMw9C9+IpAKotB2oq4F4Vkwyzw4rd8sNRAa6c\nlEDov6UtDSp4ALMfUxw/nxMO8UB43iJhu31KihcjOZpiYvRVeQlM8XLEvAafZvA=\n=Jph1\n-----END PGP SIGNATURE-----",
"sig": "cb9f08db52489bffd9b35cf92d8a955e2b85daf6846bbc9cbee4d7c617217cde2f4805505384f828a436980ce1e8ef3fde7b6d2da654790c957d6013f7bae16e"
}