Skip to main content

pamoja_manifest_sign

Function pamoja_manifest_sign 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_manifest_sign( manifest: PamojaManifest, author: *const PamojaDeviceIdentity, ) -> *mut PamojaBuffer
Expand description

Signs a manifest into the envelope that is offered to a device.

§Arguments

  • manifest - the manifest to sign.
  • author - the identity signing the release.

§Returns

A buffer the caller must release with pamoja_buffer_free, or null on failure.

§Safety

author must be a live handle from pamoja_device_identity_new, or null.