mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 02:07:56 +00:00
9 lines
304 B
JavaScript
9 lines
304 B
JavaScript
import { objectSpread } from '@pezkuwi/util';
|
|
import { jsonEncryptFormat } from '@pezkuwi/util-crypto';
|
|
export function pairToJson(type, { address, meta }, encoded, isEncrypted) {
|
|
return objectSpread(jsonEncryptFormat(encoded, ['pkcs8', type], isEncrypted), {
|
|
address,
|
|
meta
|
|
});
|
|
}
|