Use wasm-schnorrkel package (#371)

* Use wasm-schnorrkel package

* wasm-schnorrkel 0.1.1
This commit is contained in:
Jaco Greeff
2019-03-18 10:25:02 +01:00
committed by GitHub
parent 916074c95f
commit eb167f8735
9 changed files with 13 additions and 13 deletions
@@ -6,7 +6,7 @@ import { Keypair } from '../types';
import './polyfill';
import schnorrkel from '@polkadot/schnorrkel-js';
import schnorrkel from '@polkadot/wasm-schnorrkel';
import keypairFromU8a from './keypair/fromU8a';
import keypairToU8a from './keypair/toU8a';
@@ -6,7 +6,7 @@ import { Keypair } from '../types';
import './polyfill';
import schnorrkel from '@polkadot/schnorrkel-js';
import schnorrkel from '@polkadot/wasm-schnorrkel';
import keypairFromU8a from './keypair/fromU8a';
import keypairToU8a from './keypair/toU8a';
@@ -6,7 +6,7 @@ import { Keypair } from '../../types';
import '../polyfill';
import schnorrkel from '@polkadot/schnorrkel-js';
import schnorrkel from '@polkadot/wasm-schnorrkel';
import keypairFromU8a from './fromU8a';
@@ -2,4 +2,4 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import '@polkadot/schnorrkel-js/crypto-polyfill';
import '@polkadot/wasm-schnorrkel/crypto-polyfill';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import schnorrkel from '@polkadot/schnorrkel-js';
import schnorrkel from '@polkadot/wasm-schnorrkel';
export default function schnorrkelWaitReady (): Promise<boolean> {
return schnorrkel.waitReady();
+1 -1
View File
@@ -6,8 +6,8 @@ import { Keypair } from '../types';
import './polyfill';
import schnorrkel from '@polkadot/schnorrkel-js';
import { assert } from '@polkadot/util';
import schnorrkel from '@polkadot/wasm-schnorrkel';
/**
* @name schnorrkelSign
@@ -3,7 +3,7 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import './polyfill';
import schnorrkel from '@polkadot/schnorrkel-js';
import schnorrkel from '@polkadot/wasm-schnorrkel';
/**
* @name schnorrkelVerify