fn endorse(&self, vhash: &C::Hash) -> Vertex<C> {
        let endorsement = Endorsement::new(*vhash, self.vidx);
        let signature = self.secret.sign(&endorsement.hash());
        Vertex::Endorsements(SignedEndorsement::new(endorsement, signature).into())
    }
/// Creates endorsement of the `vhash`.
Creates endorsement of the `vhash`.
Creates endorsement of the ` vhash ` .
fn endorse(&self, vhash: &C::Hash) -> Vertex<C> {
        let endorsement = Endorsement::new(*vhash, self.vidx);
        let signature = self.secret.sign(&endorsement.hash());
        Vertex::Endorsements(SignedEndorsement::new(endorsement, signature).into())
    }
fn endorse ( & self , vhash : & C :: Hash ) -> Vertex < C > { let endorsement = Endorsement :: new ( * vhash , self . vidx ) ; let signature = self . secret . sign ( & endorsement . hash ( ) ) ; Vertex :: Endorsements ( SignedEndorsement :: new ( endorsement , signature ) . into ( ) ) }
Creates endorsement of the `vhash`.
Creates endorsement of the ` vhash ` .
&self
vhash
&C::Hash
&self
vhash
&C::Hash