koi.utils

async-handler

(async-handler jobids jobs exec-fn)

get-asset

(get-asset agent asset-param)

get-asset-content

(get-asset-content remote-agent did)

invoke-metadata

(invoke-metadata param-name dependencies params)
creates invoke metadata given result parameter name, a list of dependencies (which are Assets),
and a string representation of input params

keccak512

(keccak512 cont)
returns the keccak512 digest

prime-metadata

process

(process params execfn)
this takes a map of input arguments, and a function to execute which returns a map with 2 keys: a
list of Asset dependencies and results, which is a map of result params names and the value is content.

It executes the function to compute the results, creates provenance metadata , registers the asset(s)
and uploads the contents

put-asset

(put-asset r-agent asset)

remote-agent