Function mina_signer::create_legacy

source ·
pub fn create_legacy<H: 'static + Hashable>(
    domain_param: H::D
) -> impl Signer<H>
Expand description

Create a legacy signer context with domain parameters initialized with domain_param

Example

#[path = "../tests/transaction.rs"]
mod transaction;
use mina_signer::{NetworkId, self, Signer};
use transaction::Transaction;

let mut ctx = mina_signer::create_legacy::<Transaction>(NetworkId::TESTNET);