gsigner 2.0.0

Universal cryptographic signer supporting secp256k1 (Ethereum), ed25519, and sr25519 (Substrate)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) Gear Technologies Inc.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

use anyhow::Result;
use clap::Parser;
use gsigner::cli::{GSignerCli, display_result_with_format, execute_command};

fn main() -> Result<()> {
    tracing_subscriber::fmt::init();

    let cli = GSignerCli::parse();
    let result = execute_command(cli.command)?;
    display_result_with_format(&result, cli.format);

    Ok(())
}