Function casper_client::sign_deploy_file
source · pub fn sign_deploy_file<P: AsRef<Path>>(
input_path: P,
secret_key: &SecretKey,
output: OutputKind<'_>
) -> Result<(), Error>
Expand description
Reads a previously-saved Deploy
from a file, cryptographically signs it, and outputs it
to a file or stdout.
output
specifies the output file and corresponding overwrite behaviour, or if
OutputKind::Stdout
, causes the Deploy
to be printed stdout
.
The same path can be specified for input and output, and if the operation fails, the original input file will be left unmodified.