lib/bitcoin/builder.rb
# Specify that this is a coinbase input. Optionally set +data+.
# If this is set, no other options need to be given.
Specify that this is a coinbase input. Optionally set +data+.
If this is set, no other options need to be given.
Specify that this is a coinbase input . Optionally set + data + . If this is set no other options need to be given .
def coinbase(data = nil)
        @coinbase_data = data || OpenSSL::Random.random_bytes(32)
        @prev_out_hash = "\x00" * 32
        @prev_out_index = 4_294_967_295
      end
def coinbase ( data = nil ) @coinbase_data = data || OpenSSL :: Random . random_bytes ( 32 ) @prev_out_hash = "\x00" * 32 @prev_out_index = 4_294_967_295 end
Specify that this is a coinbase input.
Specify that this is a coinbase input .
data
<not_specific>