fn try_from(sharepackage: SharePackage) -> Result<Self, &'static str> {
        verify_share(&sharepackage.share)?;

        Ok(KeyPackage {
            index: sharepackage.index,
            secret_share: sharepackage.share.value,
            public: sharepackage.public,
            group_public: sharepackage.group_public,
        })
    }
/// Tries to verify a share and construct a [`KeyPackage`] from it.
///
/// When participants receive a [`SharePackage`] from the dealer, they
/// *MUST* verify the integrity of the share before continuing on to
/// transform it into a signing/verification keypair. Here, we assume that
/// every participant has the same view of the commitment issued by the
/// dealer, but implementations *MUST* make sure that all participants have
/// a consistent view of this commitment in practice.
Tries to verify a share and construct a [`KeyPackage`] from it.
When participants receive a [`SharePackage`] from the dealer, they
MUST* verify the integrity of the share before continuing on to
transform it into a signing/verification keypair. Here, we assume that
every participant has the same view of the commitment issued by the
dealer, but implementations *MUST* make sure that all participants have
a consistent view of this commitment in practice.
Tries to verify a share and construct a [ ` KeyPackage ` ] from it . When participants receive a [ ` SharePackage ` ] from the dealer they MUST * verify the integrity of the share before continuing on to transform it into a signing / verification keypair . Here we assume that every participant has the same view of the commitment issued by the dealer but implementations * MUST * make sure that all participants have a consistent view of this commitment in practice .
fn try_from(sharepackage: SharePackage) -> Result<Self, &'static str> {
        verify_share(&sharepackage.share)?;
        Ok(KeyPackage {
            index: sharepackage.index,
            secret_share: sharepackage.share.value,
            public: sharepackage.public,
            group_public: sharepackage.group_public,
        })
    }
fn try_from ( sharepackage : SharePackage ) -> Result < Self , & ' static str > { verify_share ( & sharepackage . share ) ? ; Ok ( KeyPackage { index : sharepackage . index , secret_share : sharepackage . share . value , public : sharepackage . public , group_public : sharepackage . group_public , } ) }
Tries to verify a share and construct a [`KeyPackage`] from it.
Tries to verify a share and construct a [ ` KeyPackage ` ] from it .
sharepackage
SharePackage