UNPKG

886 BTypeScriptView Raw
1export * from './address/types.js';
2export * from './json/types.js';
3export interface Keypair {
4 /** The publicKey for this pair */
5 publicKey: Uint8Array;
6 /** The secretKey for this pair */
7 secretKey: Uint8Array;
8}
9export interface Seedpair {
10 /** The publicKey for this pair */
11 publicKey: Uint8Array;
12 /** The seed used to construct the pair */
13 seed: Uint8Array;
14}
15/** The supported types of pairs */
16export type KeypairType = 'ed25519' | 'sr25519' | 'ecdsa' | 'ethereum';
17export interface VerifyResult {
18 /** The detected crypto interface, or 'none' if not detected */
19 crypto: 'none' | KeypairType;
20 /** The validity for this result, false if invalid */
21 isValid: boolean;
22 /** Flag to indicate if the passed data was wrapped in <Bytes>...</Bytes> */
23 isWrapped: boolean;
24 /** The extracted publicKey */
25 publicKey: Uint8Array;
26}