Use wasm-schnorrkel package (#371)
* Use wasm-schnorrkel package * wasm-schnorrkel 0.1.1
This commit is contained in:
@@ -29,8 +29,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/schnorrkel-js": "^0.2.0-12",
|
||||
"@polkadot/util": "^0.38.0-beta.4",
|
||||
"@polkadot/wasm-schnorrkel": "^0.1.1",
|
||||
"@types/bip39": "^2.4.2",
|
||||
"@types/pbkdf2": "^3.0.0",
|
||||
"@types/secp256k1": "^3.5.0",
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user