1 | import { objectSpread } from '@polkadot/util';
|
2 | import { jsonEncryptFormat } from '@polkadot/util-crypto';
|
3 | export function pairToJson(type, { address, meta }, encoded, isEncrypted) {
|
4 | return objectSpread(jsonEncryptFormat(encoded, ['pkcs8', type], isEncrypted), {
|
5 | address,
|
6 | meta
|
7 | });
|
8 | }
|