feat: convert to a regular account method added
This commit is contained in:
parent
1d8c32e855
commit
64258e9e0c
|
@ -202,8 +202,13 @@ proc loginWithKeycard*(accountData: string, password: string, keyHex: string): s
|
|||
defer: go_shim.free(funcOut)
|
||||
return $funcOut
|
||||
|
||||
proc convertToKeycardAccount*(keyStoreDir: string, accountData: string, settingsJSON: string, password: string, newPassword: string): string =
|
||||
var funcOut = go_shim.convertToKeycardAccount(keyStoreDir.cstring, accountData.cstring, settingsJSON.cstring, password.cstring, newPassword.cstring)
|
||||
proc convertToKeycardAccount*(accountData: string, settingsJSON: string, password: string, newPassword: string): string =
|
||||
var funcOut = go_shim.convertToKeycardAccount(accountData.cstring, settingsJSON.cstring, password.cstring, newPassword.cstring)
|
||||
defer: go_shim.free(funcOut)
|
||||
return $funcOut
|
||||
|
||||
proc convertToRegularAccount*(mnemonic: string, currPassword: string, newPassword: string): string =
|
||||
var funcOut = go_shim.convertToRegularAccount(mnemonic.cstring, currPassword.cstring, newPassword.cstring)
|
||||
defer: go_shim.free(funcOut)
|
||||
return $funcOut
|
||||
|
||||
|
|
|
@ -81,7 +81,9 @@ proc validateNodeConfig*(configJSON: cstring): cstring {.importc: "ValidateNodeC
|
|||
|
||||
proc loginWithKeycard*(accountData: cstring, password: cstring, keyHex: cstring): cstring {.importc: "LoginWithKeycard".}
|
||||
|
||||
func convertToKeycardAccount*(keyStoreDir: cstring, accountData: cstring, settingsJSON: cstring, password: cstring, newPassword: cstring): cstring {.importc: "ConvertToKeycardAccount".}
|
||||
func convertToKeycardAccount*(accountData: cstring, settingsJSON: cstring, password: cstring, newPassword: cstring): cstring {.importc: "ConvertToKeycardAccount".}
|
||||
|
||||
func convertToRegularAccount*(mnemonic: cstring, currPassword: cstring, newPassword: cstring): cstring {.importc: "ConvertToRegularAccount".}
|
||||
|
||||
proc recover*(rpcParams: cstring): cstring {.importc: "Recover".}
|
||||
|
||||
|
|
Loading…
Reference in New Issue