non-public key – Bitcoin script and unsecure ScriptPubKey

on

|

views

and

comments


The next is taken from downside 3 in HW1 of CS 251 Stanford’s course (https://cs251.stanford.edu/syllabus.html).

Alice is on a backpacking journey and is apprehensive about her units containing non-public keys getting stolen. She needs to retailer her bitcoins in such a manner that they
will be redeemed through data of a password P. Accordingly, she shops them within the following
ScriptPubKey handle:

OP_SHA256
<0xeb271cbcc2340d0b0e6212903e29f22e578ff69b>
OP_EQUAL

  1. Write a ScriptSig script that may efficiently redeem this UTXO given the password P.
    Trace: it ought to solely be one line lengthy.

  2. . Suppose Alice chooses a six character password P. Clarify why her bitcoins will be stolen
    quickly after her UTXO is posted to the blockchain. Chances are you’ll assume that computing SHA256
    of all six character passwords will be completed in cheap time.

  3. Suppose Alice chooses a powerful 30 character passphrase P. Is the ScriptPubKey above a
    safe strategy to defend her bitcoins? Why or why not?
    Trace: cause by means of what occurs when she tries to redeem her bitcoins

My makes an attempt/doubts:

  1. The non-public key must be 256 bit quantity, I do not see learn how to join this with ANY password P to acquire the ScriptSig composed of personal and public key. Additionally ought to’t the hashed model of the general public key correspond to eb271cbcc2340d0b0e6212903e29f22e578ff69b?

  2. Comparable doubt as in 1)

  3. Funds will be stolen by the node that sees the transaction?

Share this
Tags

Must-read

Waymo raises $16bn to gas international robotaxi enlargement | Know-how

Self-driving automobile firm Waymo on Monday stated it raised $16bn in a funding spherical that valued the Alphabet subsidiary at $126bn.Waymo co-chief executives...

Self-driving taxis are coming to London – ought to we be anxious? | Jack Stilgoe

At the top of the nineteenth century, the world’s main cities had an issue. The streets had been flooded with manure, the unintended...

US regulators open inquiry into Waymo self-driving automobile that struck youngster in California | Expertise

The US’s federal transportation regulator stated Thursday it had opened an investigation after a Waymo self-driving car struck a toddler close to an...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here