Skip to main content

build

Function build 

Source
pub fn build(
    namespace: &str,
    descriptors: Vec<Vec<u8>>,
    names: Vec<(String, String)>,
    receipts: Vec<Vec<u8>>,
    seed: &[u8; 32],
) -> Result<Vec<u8>, BundleError>
Expand description

Builds a bundle 1 (see the module documentation): descriptors (each a canonical function descriptor), names ((name, fn_hash)), receipts (each a receipt’s JSON), signed with the key of seed as the manifest of namespace. The names and the receipts are put in ascending order. Errors: Format for a receipt or descriptor that does not parse.