aboutsummaryrefslogtreecommitdiff
path: root/lib/wallet/cryptoApi.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-09-28 23:41:34 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-09-28 23:41:34 +0200
commit274204c21e421ed13c66411ce56bb70dea03d410 (patch)
tree44f96996f5631526e96866fe583de2ca87ec2898 /lib/wallet/cryptoApi.ts
parent29909a27f592ac1bca98bfe7058b576167445518 (diff)
downloadwallet-core-274204c21e421ed13c66411ce56bb70dea03d410.tar.xz
check contract hash, fix unicode bug
Diffstat (limited to 'lib/wallet/cryptoApi.ts')
-rw-r--r--lib/wallet/cryptoApi.ts4
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);
}