import { Config , save } from '../config' ; import { Keystore , Key } from '../Keystore' ; export async function main ( args , conf , ks ) { const key = ks . genKeyPair ( conf . callsign ) ; if ( args . makeSigning ) conf . signingKey = key . public ; save ( conf , args . config ) ; console . log ( key . public ) ; return 0 ; }