Created
October 22, 2018 07:20
-
-
Save hyunsikjeong/0fa32d0532be3c38460015289c33a355 to your computer and use it in GitHub Desktop.
HDWKeyStore.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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