fn create_resharing_dealing(
        &self,
        algorithm_id: AlgorithmId,
        _dkg_id: NiDkgId,
        dealer_resharing_index: NodeIndex,
        threshold: NumberOfNodes,
        epoch: Epoch,
        receiver_keys: BTreeMap<NodeIndex, CspFsEncryptionPublicKey>,
        resharing_public_coefficients: CspPublicCoefficients,
    ) -> Result<CspNiDkgDealing, ni_dkg_errors::CspDkgCreateReshareDealingError> {
        debug!(self.logger; crypto.method_name => "create_resharing_dealing", crypto.dkg_epoch => epoch.get());
        let key_id = key_id_from_csp_pub_coeffs(&resharing_public_coefficients);
        self.csp_vault.create_dealing(
            algorithm_id,
            dealer_resharing_index,
            threshold,
            epoch,
            &receiver_keys,
            Some(key_id),
        )
    }
/// Creates a CSP dealing by resharing a previous secret key
Creates a CSP dealing by resharing a previous secret key
Creates a CSP dealing by resharing a previous secret key
fn create_resharing_dealing(
        &self,
        algorithm_id: AlgorithmId,
        _dkg_id: NiDkgId,
        dealer_resharing_index: NodeIndex,
        threshold: NumberOfNodes,
        epoch: Epoch,
        receiver_keys: BTreeMap<NodeIndex, CspFsEncryptionPublicKey>,
        resharing_public_coefficients: CspPublicCoefficients,
    ) -> Result<CspNiDkgDealing, ni_dkg_errors::CspDkgCreateReshareDealingError> {
        debug!(self.logger; crypto.method_name => "create_resharing_dealing", crypto.dkg_epoch => epoch.get());
        let key_id = key_id_from_csp_pub_coeffs(&resharing_public_coefficients);
        self.csp_vault.create_dealing(
            algorithm_id,
            dealer_resharing_index,
            threshold,
            epoch,
            &receiver_keys,
            Some(key_id),
        )
    }
fn create_resharing_dealing ( & self , algorithm_id : AlgorithmId , _dkg_id : NiDkgId , dealer_resharing_index : NodeIndex , threshold : NumberOfNodes , epoch : Epoch , receiver_keys : BTreeMap < NodeIndex , CspFsEncryptionPublicKey > , resharing_public_coefficients : CspPublicCoefficients , ) -> Result < CspNiDkgDealing , ni_dkg_errors :: CspDkgCreateReshareDealingError > { debug ! ( self logger crypto method_name " " crypto dkg_epoch epoch get ( ) ) ; let key_id = key_id_from_csp_pub_coeffs ( & resharing_public_coefficients ) ; self . csp_vault . create_dealing ( algorithm_id , dealer_resharing_index , threshold , epoch , & receiver_keys , Some ( key_id ) , ) }
Creates a CSP dealing by resharing a previous secret key
Creates a CSP dealing by resharing a previous secret key
&self
algorithm_id
AlgorithmId
_dkg_id
NiDkgId
dealer_resharing_index
NodeIndex
threshold
NumberOfNodes
epoch
Epoch
receiver_keys
BTreeMap<NodeIndex, CspFsEncryptionPublicKey>
resharing_public_coefficients
CspPublicCoefficients
&self
algorithm_id
AlgorithmId
_dkg_id
NiDkgId
dealer_resharing_index
NodeIndex
threshold
NumberOfNodes
epoch
Epoch
receiver_keys
BTreeMap<NodeIndex, CspFsEncryptionPublicKey>
resharing_public_coefficients
CspPublicCoefficients