Exposed changeDatabasePassword function.
This commit is contained in:
parent
f4463f3955
commit
253e673e5e
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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".}
|
||||||
|
|
Loading…
Reference in New Issue