Method: Bdb.generate_output

Defined in:
lib/bigchaindb.rb

.generate_output(owner_after, amount = 1) ⇒ Object



12
13
14
15
# File 'lib/bigchaindb.rb', line 12

def self.generate_output(owner_after, amount = 1)
  # owner_after = who can consume this output? Can be a single pubkey or a m-of-n ThresholdSha256 condition
  JSON.parse(`bdb generate_output --amount #{[amount,owner_after].shelljoin}`)
end