1 | export type HexString = string;
|
2 | export type Algorithm = 'ecdsa-secp256k1' | 'ed25519';
|
3 | export type KeyType = 'private' | 'public';
|
4 | export interface KeyPair {
|
5 | privateKey: HexString;
|
6 | publicKey: HexString;
|
7 | }
|
8 | export interface DeriveKeyPairOptions {
|
9 | validator?: boolean;
|
10 | accountIndex?: number;
|
11 | }
|
12 | export interface SigningScheme {
|
13 | deriveKeypair: (entropy: Uint8Array, options?: DeriveKeyPairOptions) => KeyPair;
|
14 | sign: (message: Uint8Array, privateKey: HexString) => HexString;
|
15 | verify: (message: Uint8Array, signature: HexString, publicKey: HexString) => boolean;
|
16 | }
|
17 |
|
\ | No newline at end of file |