@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
13 lines (12 loc) • 459 B
TypeScript
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;
}