Skip to main content

pamoja_delegation_sign

Function pamoja_delegation_sign 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_delegation_sign( delegation: PamojaDelegation, anchor: *const PamojaDeviceIdentity, ) -> *mut PamojaBuffer
Expand description

Signs a delegation, naming a release key the anchor stands behind.

§Arguments

  • delegation - the statement to sign.
  • anchor - the anchor identity, which is the root of the trust.

§Returns

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

§Safety

anchor must be a live identity handle, or null.