1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.pairToJson = void 0;
|
4 | const util_1 = require("@polkadot/util");
|
5 | const util_crypto_1 = require("@polkadot/util-crypto");
|
6 | function pairToJson(type, { address, meta }, encoded, isEncrypted) {
|
7 | return (0, util_1.objectSpread)((0, util_crypto_1.jsonEncryptFormat)(encoded, ['pkcs8', type], isEncrypted), {
|
8 | address,
|
9 | meta
|
10 | });
|
11 | }
|
12 | exports.pairToJson = pairToJson;
|