We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ffbfce commit 22ddba1Copy full SHA for 22ddba1
modules/sdk-coin-icp/src/icp.ts
@@ -36,7 +36,7 @@ import {
36
} from './lib/iface';
37
import { TransactionBuilderFactory } from './lib/transactionBuilderFactory';
38
import utils from './lib/utils';
39
-import { createHash } from 'crypto';
+import { createHash, Hash } from 'crypto';
40
import { Principal } from '@dfinity/principal';
41
import axios from 'axios';
42
@@ -134,6 +134,11 @@ export class Icp extends BaseCoin {
134
return 'ecdsa';
135
}
136
137
+ /** @inheritDoc **/
138
+ getHashFunction(): Hash {
139
+ return createHash('sha256');
140
+ }
141
+
142
private async getAddressFromPublicKey(hexEncodedPublicKey: string) {
143
return utils.getAddressFromPublicKey(hexEncodedPublicKey);
144
0 commit comments