Skip to main content

create_body

Function create_body 

Source
pub fn create_body(
    genesis: &Genesis,
    member: &SecretKey,
    host_challenge: Challenge,
    display_name: impl Into<String>,
    now_ms: u64,
) -> Result<Create, BuildError>
Expand description

The community.create body (§8.1): the genesis pair, the owner’s member key and its registration (purpose 1) for the host’s current host_challenge (from the welcome).

§Errors

BuildError::OwnerKey when member is not the owner binding; signing or body errors.