pub fn transaction_sign(
    message: &Message,
    private_key: &PrivateKey,
) -> Result<SignedMessage, SignerError> {
    let signature = transaction_sign_raw(message, private_key)?;

    let signed_message = SignedMessage {
        message: message.to_owned(),
        signature,
    };

    Ok(signed_message)
}
/// Sign a transaction and return a signed message (message + signature).
///
/// # Arguments
///
/// * `message` - an unsigned filecoin message
/// * `private_key` - a `PrivateKey`
///
Sign a transaction and return a signed message (message + signature).
Sign a transaction and return a signed message ( message + signature ) .
pub fn transaction_sign(
    message: &Message,
    private_key: &PrivateKey,
) -> Result<SignedMessage, SignerError> {
    let signature = transaction_sign_raw(message, private_key)?;
    let signed_message = SignedMessage {
        message: message.to_owned(),
        signature,
    };
    Ok(signed_message)
}
pub fn transaction_sign ( message : & Message , private_key : & PrivateKey , ) -> Result < SignedMessage , SignerError > { let signature = transaction_sign_raw ( message , private_key ) ? ; let signed_message = SignedMessage { message : message . to_owned ( ) , signature , } ; Ok ( signed_message ) }
Sign a transaction and return a signed message (message + signature).
Sign a transaction and return a signed message ( message + signature ) .
message
&Message
private_key
&PrivateKey
message
&Message
private_key
&PrivateKey