Skip to main content

delegate

Function delegate 

Source
pub fn delegate(
    root: &SecretKey,
    community_id: CommunityId,
    host: &HostInfo,
    epoch: u64,
    expires_at: Option<u64>,
    now_ms: u64,
) -> Result<Signed<HostDelegation>, BuildError>
Expand description

Signs a delegation of every v1 scope (§4.2) to host, valid from now_ms.

§Errors

BuildError::Signed for a field rule (addresses) or a signing failure.