13 lines
389 B
TypeScript
13 lines
389 B
TypeScript
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}`);
|
|
}
|