1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var middleware_1 = require("./middleware");
|
4 | var crypto_utils_1 = require("./crypto-utils");
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | function createDefaultTxMiddleware(client, privateKey) {
|
12 | var pubKey = crypto_utils_1.publicKeyFromPrivateKey(privateKey);
|
13 | return [new middleware_1.NonceTxMiddleware(pubKey, client), new middleware_1.SignedTxMiddleware(privateKey)];
|
14 | }
|
15 | exports.createDefaultTxMiddleware = createDefaultTxMiddleware;
|
16 |
|
\ | No newline at end of file |