Skip to content

Instantly share code, notes, and snippets.

@hyunsikjeong
Created October 22, 2018 07:20
Show Gist options
  • Save hyunsikjeong/0fa32d0532be3c38460015289c33a355 to your computer and use it in GitHub Desktop.
Save hyunsikjeong/0fa32d0532be3c38460015289c33a355 to your computer and use it in GitHub Desktop.
HDWKeyStore.ts
export interface HDWKeyStore {
...
getSeedHashes(): Promise<SeedHash[]>;
importSeed(params: {
secret: SecretSeedStorage;
passphrase?: string;
}): Promise<SeedHash>;
exportSeed(params: {
seedHash: SeedHash;
passphrase: string;
}): Promise<SecretSeedStorage>;
createSeed(params: {
passphrase?: string;
meta?: string;
}): Promise<SeedHash>;
deleteSeed(params: { seedHash: SeedHash }): Promise<boolean>;
getPublicKeyFromSeed(params: {
seedHash: SeedHash;
path: string;
passphrase?: string;
}): Promise<PublicKey>;
getPrivateKeyFromSeed(params: {
seedHash: SeedHash;
path: string;
passphrase?: string;
}): Promise<PrivateKey>;
signFromSeed(params: {
seedHash: SeedHash;
path: string;
message: string;
passphrase: string;
}): Promise<string>;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment