#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_device_identity_new(
seed: *const u8,
seed_len: usize,
) -> *mut PamojaDeviceIdentityExpand description
Creates a device identity from a provisioned 32-byte secret seed.
§Returns
A heap-allocated identity handle the caller owns and must release with
pamoja_device_identity_free, or null on failure with the reason available
from pamoja_last_error_message.
§Safety
seed must point to at least seed_len readable bytes, and seed_len must
be PAMOJA_KEY_LEN.