Bitcoin script: For the following questions, you're free to use non-standard transactions and op codes that are currently disabled. You can use as a shorthand to represent data values pushed onto the stack. For a quick reference, see here: https://en.bitcoin.it/wiki/Script a. Write the Bitcoin ScriptPubKey script for a transaction that can be redeemed by anybody who supplies a square root of 1764. Write a corresponding ScriptSig script to redeem your transaction. Suppose you wanted to issue a new RSA factoring challenge by publishing a transaction that can be redeemed by anybody who can factor a 1024-bit RSA number (RSA numbers are the product of two large, secret prime numbers). What difficulties might you run into?
-
2This looks like homework. At least, it seems to have been taken from another source without attribution. Please state the source.– Nate EldredgeFeb 23, 2019 at 3:41
-
There’s no secure way of doing that anyway. The funds can be stolen while unconfirmed and you can do nothing about it.– ClarisFeb 23, 2019 at 3:55
1 Answer
decodescript 769502e40687
{
"asm": "OP_DUP OP_MUL 1764 OP_EQUAL",
"type": "nonstandard",
"p2sh": "3JQspThZ3pAdZZjUfb6hni5f8rW9yYonJv"
}
https://bchsvexplorer.com/address/3JQspThZ3pAdZZjUfb6hni5f8rW9yYonJv
-
2Shorter: 012a87. Neither is a meaningful script of course, but they have the same semantics. Feb 23, 2019 at 12:01
-
@Pieter, isn't it a Ultimate Question of Life, The Universe, and Everything? :)))))– amaclinFeb 23, 2019 at 12:10