Initial vmc CLI
This commit is contained in:
12
src/commands/sign.receipt.ts
Normal file
12
src/commands/sign.receipt.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { signReceiptFile } from "../lib/signature.js";
|
||||
|
||||
export async function signReceipt(
|
||||
receiptPath: string,
|
||||
opts: { force?: boolean } = {}
|
||||
) {
|
||||
const signed = await signReceiptFile(receiptPath, opts);
|
||||
console.log("OK receipt signed");
|
||||
console.log(`file: ${signed.file}`);
|
||||
console.log(`signer_pub: ${signed.signer_pub}`);
|
||||
console.log(`signer_kid: ${signed.signer_kid}`);
|
||||
}
|
||||
Reference in New Issue
Block a user