Skip to main content

import_signed

Function import_signed 

Source
pub fn import_signed<S: Store + ?Sized>(
    store: &S,
    host: &str,
    owned: &[String],
    clock: &dyn Clock,
    bytes: &[u8],
) -> Result<Imported, BundleError>
Expand description

Imports the bundle bytes for the mesh host, whose own namespaces are owned, at the clock’s now (CONTRACT-1.8b H2). Checks run in the order of the contract, and nothing is written unless they all pass. The writes are, in order: the descriptors; the receipts (each put_receipt), then the versions (each put_version); the name bindings last, so that a crash part-way leaves no name answering. A re-run completes a partial import: a version or a binding already there is skipped.