UNPKG

@polkadot/keyring

Version:
9 lines (8 loc) 373 B
import type { KeypairType } from '@polkadot/util-crypto/types'; import type { KeyringPair$Json, KeyringPair$Meta } from '../types.js'; interface PairStateJson { address: string; meta: KeyringPair$Meta; } export declare function pairToJson(type: KeypairType, { address, meta }: PairStateJson, encoded: Uint8Array, isEncrypted: boolean): KeyringPair$Json; export {};