@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
18 lines (17 loc) • 444 B
TypeScript
export * from './address/types.js';
export * from './json/types.js';
export interface Keypair {
publicKey: Uint8Array;
secretKey: Uint8Array;
}
export interface Seedpair {
publicKey: Uint8Array;
seed: Uint8Array;
}
export type KeypairType = 'ed25519' | 'sr25519' | 'ecdsa' | 'ethereum';
export interface VerifyResult {
crypto: 'none' | KeypairType;
isValid: boolean;
isWrapped: boolean;
publicKey: Uint8Array;
}