pub fn sign(
        self,
        private_key: &Ed25519PrivateKey,
        public_key: Ed25519PublicKey,
    ) -> Result<SignatureCheckedTransaction> {
        let signature = private_key.sign_message(&self.hash());
        Ok(SignatureCheckedTransaction(SignedTransaction::new(
            self, public_key, signature,
        )))
    }
/// Signs the given `RawTransaction`. Note that this consumes the `RawTransaction` and turns it
/// into a `SignatureCheckedTransaction`.
///
/// For a transaction that has just been signed, its signature is expected to be valid.
Signs the given `RawTransaction`. Note that this consumes the `RawTransaction` and turns it
into a `SignatureCheckedTransaction`.

For a transaction that has just been signed, its signature is expected to be valid.
Signs the given ` RawTransaction ` . Note that this consumes the ` RawTransaction ` and turns it into a ` SignatureCheckedTransaction ` . For a transaction that has just been signed its signature is expected to be valid .
pub fn sign(
        self,
        private_key: &Ed25519PrivateKey,
        public_key: Ed25519PublicKey,
    ) -> Result<SignatureCheckedTransaction> {
        let signature = private_key.sign_message(&self.hash());
        Ok(SignatureCheckedTransaction(SignedTransaction::new(
            self, public_key, signature,
        )))
    }
pub fn sign ( self , private_key : & Ed25519PrivateKey , public_key : Ed25519PublicKey , ) -> Result < SignatureCheckedTransaction > { let signature = private_key . sign_message ( & self . hash ( ) ) ; Ok ( SignatureCheckedTransaction ( SignedTransaction :: new ( self , public_key , signature , ) ) ) }
Signs the given `RawTransaction`.
Signs the given ` RawTransaction ` .
self
private_key
&Ed25519PrivateKey
public_key
Ed25519PublicKey