1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const crypto_1 = require("@arkecosystem/crypto");
|
4 | const command_1 = require("@oclif/command");
|
5 | const utils_1 = require("../utils");
|
6 | const command_2 = require("./command");
|
7 | class VerifySecondSignatureCommand extends command_2.BaseCommand {
|
8 | async run() {
|
9 |
|
10 | const { flags } = this.parse(VerifySecondSignatureCommand);
|
11 | const transaction = new crypto_1.models.Transaction(flags.data);
|
12 | return utils_1.handleOutput(flags, crypto_1.crypto.verifySecondSignature(transaction, flags.publicKey));
|
13 | }
|
14 | }
|
15 | VerifySecondSignatureCommand.description = "Verify a second signature of a transaction";
|
16 | VerifySecondSignatureCommand.flags = Object.assign({}, command_2.BaseCommand.flags, { data: command_1.flags.string({
|
17 | description: "the HEX blob to deserialize and verify",
|
18 | required: true,
|
19 | }), publicKey: command_1.flags.string({
|
20 | description: "the publicKey of the second signature in HEX",
|
21 | required: true,
|
22 | }) });
|
23 | exports.VerifySecondSignatureCommand = VerifySecondSignatureCommand;
|
24 |
|
\ | No newline at end of file |