UNPKG

@polkadot/util-crypto

Version:
13 lines (12 loc) 459 B
import type { HexString } from '@polkadot/util/types'; export type EncryptedJsonVersion = '0' | '1' | '2' | '3'; export type EncryptedJsonEncoding = 'none' | 'scrypt' | 'xsalsa20-poly1305'; export interface EncryptedJsonDescriptor { content: string[]; type: EncryptedJsonEncoding | EncryptedJsonEncoding[]; version: EncryptedJsonVersion; } export interface EncryptedJson { encoded: HexString | string; encoding: EncryptedJsonDescriptor; }