pub fn sign(&mut self, secret_key: &SecretKey) {
        let signer = PublicKey::from(secret_key);
        let signature = crypto::sign(&self.hash, secret_key, &signer);
        let approval = Approval { signer, signature };
        self.approvals.push(approval);
    }
/// Adds a signature of this deploy's hash to its approvals.
Adds a signature of this deploy's hash to its approvals.
Adds a signature of this deploy ' s hash to its approvals .
pub fn sign(&mut self, secret_key: &SecretKey) {
        let signer = PublicKey::from(secret_key);
        let signature = crypto::sign(&self.hash, secret_key, &signer);
        let approval = Approval { signer, signature };
        self.approvals.push(approval);
    }
pub fn sign ( & mut self , secret_key : & SecretKey ) { let signer = PublicKey :: from ( secret_key ) ; let signature = crypto :: sign ( & self . hash , secret_key , & signer ) ; let approval = Approval { signer , signature } ; self . approvals . push ( approval ) ; }
Adds a signature of this deploy's hash to its approvals.
Adds a signature of this deploy ' s hash to its approvals .
&mut self
secret_key
&SecretKey
&mut self
secret_key
&SecretKey