Exposed changeDatabasePassword function.

This commit is contained in:
Andrei Smirnov 2021-08-11 12:42:26 +03:00
parent f4463f3955
commit 253e673e5e
2 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,9 @@ proc logout*(): string =
proc verifyAccountPassword*(keyStoreDir: string, address: string, password: string): string = proc verifyAccountPassword*(keyStoreDir: string, address: string, password: string): string =
$go_shim.verifyAccountPassword(keyStoreDir.cstring, address.cstring, password.cstring) $go_shim.verifyAccountPassword(keyStoreDir.cstring, address.cstring, password.cstring)
proc changeDatabasePassword*(keyUID: string, password: string, newPassword: string): string =
$go_shim.changeDatabasePassword(keyUID.cstring, password.cstring, newPassword.cstring)
proc validateMnemonic*(mnemonic: string): string = proc validateMnemonic*(mnemonic: string): string =
$go_shim.validateMnemonic(mnemonic.cstring) $go_shim.validateMnemonic(mnemonic.cstring)

View File

@ -43,6 +43,8 @@ proc logout*(): cstring {.importc: "Logout".}
proc verifyAccountPassword*(keyStoreDir: cstring, address: cstring, password: cstring): cstring {.importc: "VerifyAccountPassword".} proc verifyAccountPassword*(keyStoreDir: cstring, address: cstring, password: cstring): cstring {.importc: "VerifyAccountPassword".}
proc changeDatabasePassword*(keyUID: cstring, password: cstring, newPassword: cstring): cstring {.importc: "ChangeDatabasePassword".}
proc validateMnemonic*(mnemonic: cstring): cstring {.importc: "ValidateMnemonic".} proc validateMnemonic*(mnemonic: cstring): cstring {.importc: "ValidateMnemonic".}
proc saveAccountAndLoginWithKeycard*(accountData: cstring, password: cstring, settingsJSON: cstring, configJSON: cstring, subaccountData: cstring, keyHex: cstring): cstring {.importc: "SaveAccountAndLoginWithKeycard".} proc saveAccountAndLoginWithKeycard*(accountData: cstring, password: cstring, settingsJSON: cstring, configJSON: cstring, subaccountData: cstring, keyHex: cstring): cstring {.importc: "SaveAccountAndLoginWithKeycard".}