Skip to main content
Module

x/polkadot/util-crypto/crypto.ts

Package publishing for deno.land/x/polkadot
Go to Latest
File

import { isReady, waitReady } from 'https://deno.land/x/polkadot@0.2.40/wasm-crypto/mod.ts';
export const cryptoIsReady = isReady;
export function cryptoWaitReady (): Promise<boolean> { return waitReady() .then((): boolean => { if (!isReady()) { throw new Error('Unable to initialize @polkadot/util-crypto'); }
return true; }) .catch(() => false);}