diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-09-28 23:41:34 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-09-28 23:41:34 +0200 |
commit | 274204c21e421ed13c66411ce56bb70dea03d410 (patch) | |
tree | 44f96996f5631526e96866fe583de2ca87ec2898 /lib/wallet/cryptoApi.ts | |
parent | 29909a27f592ac1bca98bfe7058b576167445518 (diff) | |
download | wallet-core-274204c21e421ed13c66411ce56bb70dea03d410.tar.xz |
check contract hash, fix unicode bug
Diffstat (limited to 'lib/wallet/cryptoApi.ts')
-rw-r--r-- | lib/wallet/cryptoApi.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/wallet/cryptoApi.ts b/lib/wallet/cryptoApi.ts index 585aa39e7..db29592fc 100644 --- a/lib/wallet/cryptoApi.ts +++ b/lib/wallet/cryptoApi.ts @@ -176,6 +176,10 @@ export class CryptoApi { return this.doRpc("createPreCoin", 1, denom, reserve); } + hashString(str: string): Promise<string> { + return this.doRpc("hashString", 1, str); + } + hashRsaPub(rsaPub: string): Promise<string> { return this.doRpc("hashRsaPub", 2, rsaPub); } |