feat: use crypto-hash instead of hasha

This commit is contained in:
Justin Starry
2020-03-16 17:44:12 +08:00
committed by Michael Vines
parent bd7e802e46
commit 402c160ae9
12 changed files with 75 additions and 78 deletions

5
web3.js/module.d.ts vendored
View File

@ -6,6 +6,11 @@ declare module '@solana/web3.js' {
export class PublicKey {
constructor(value: number | string | Buffer | Uint8Array | Array<number>);
static isPublicKey(o: object): boolean;
static createWithSeed(
fromPublicKey: PublicKey,
seed: string,
programId: PublicKey,
): Promise<PublicKey>;
equals(publickey: PublicKey): boolean;
toBase58(): string;
toBuffer(): Buffer;