feat: add isAlias (#7)

This commit is contained in:
Richard Ramos 2022-03-14 14:35:23 -04:00 committed by GitHub
parent a47b8fa2eb
commit 50e8f7eef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -89,6 +89,11 @@ proc generateAlias*(pk: string): string =
defer: go_shim.free(funcOut)
return $funcOut
proc isAlias*(value: string): string =
var funcOut = go_shim.isAlias(value)
defer: go_shim.free(funcOut)
return $funcOut
proc identicon*(pk: string): string =
var funcOut = go_shim.identicon(pk)
defer: go_shim.free(funcOut)

View File

@ -35,6 +35,8 @@ proc sendTransaction*(jsonArgs: cstring, password: cstring): cstring {.importc:
proc generateAlias*(pk: cstring): cstring {.importc: "GenerateAlias".}
proc isAlias*(value: cstring): cstring {.importc: "IsAlias".}
proc identicon*(pk: cstring): cstring {.importc: "Identicon".}
proc login*(accountData: cstring, password: cstring): cstring {.importc: "Login".}