sr25519 keyring (#781)

This commit is contained in:
Jaco Greeff
2019-03-16 16:08:39 +01:00
committed by GitHub
parent 6a0f580aaf
commit 8cded2e8bf
13 changed files with 41 additions and 47 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
"@babel/core": "^7.3.3",
"@babel/register": "^7.0.0",
"@babel/runtime": "^7.3.4",
"@polkadot/dev": "^0.26.1",
"@polkadot/dev": "^0.27.1",
"@polkadot/ts": "^0.1.56",
"gh-pages": "^2.0.1"
}
+1 -1
View File
@@ -36,6 +36,6 @@
"@polkadot/rpc-rx": "^0.48.0-beta.0",
"@polkadot/storage": "^0.48.0-beta.0",
"@polkadot/types": "^0.48.0-beta.0",
"@polkadot/util-crypto": "^0.37.1"
"@polkadot/util-crypto": "^0.38.0-beta.4"
}
}
@@ -7,9 +7,8 @@ import testingPairs from '@polkadot/keyring/testingPairs';
import Api from '../../src/promise';
const keyring = testingPairs({ type: 'ed25519' });
describe.skip('e2e queries', () => {
const keyring = testingPairs({ type: 'ed25519' });
let api;
beforeEach(async (done) => {
+1 -4
View File
@@ -2,8 +2,6 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import '@polkadot/util-crypto/schnorrkel/test-polyfill';
import testingPairs from '@polkadot/keyring/testingPairs';
import createPair from '@polkadot/keyring/pair';
import { randomAsHex } from '@polkadot/util-crypto';
@@ -13,9 +11,8 @@ import Api from '../../src/promise';
import WsProvider from '../../../rpc-provider/src/ws';
import SingleAccountSigner from "../util/SingleAccountSigner";
const keyring = testingPairs({ type: 'ed25519' });
describe.skip('e2e transactions', () => {
const keyring = testingPairs({ type: 'ed25519' });
let api;
beforeEach(async (done) => {
+1 -2
View File
@@ -7,9 +7,8 @@ import testingPairs from '@polkadot/keyring/testingPairs';
import Api from '../../src/rx';
const keyring = testingPairs({ type: 'ed25519' });
describe.skip('e2e queries', () => {
const keyring = testingPairs({ type: 'ed25519' });
let api;
beforeEach(async (done) => {
+1 -2
View File
@@ -7,9 +7,8 @@ import testingPairs from '@polkadot/keyring/testingPairs';
import Api from '../../src/rx';
const keyring = testingPairs({ type: 'ed25519' });
describe.skip('e2e transactions', () => {
const keyring = testingPairs({ type: 'ed25519' });
let api;
beforeEach(async (done) => {
+1 -1
View File
@@ -33,6 +33,6 @@
"@polkadot/jsonrpc": "^0.48.0-beta.0",
"@polkadot/rpc-provider": "^0.48.0-beta.0",
"@polkadot/types": "^0.48.0-beta.0",
"@polkadot/util": "^0.37.1"
"@polkadot/util": "^0.38.0-beta.4"
}
}
+3 -3
View File
@@ -30,10 +30,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.3.4",
"@polkadot/keyring": "^0.37.1",
"@polkadot/keyring": "^0.38.0-beta.4",
"@polkadot/storage": "^0.48.0-beta.0",
"@polkadot/util": "^0.37.1",
"@polkadot/util-crypto": "^0.37.1",
"@polkadot/util": "^0.38.0-beta.4",
"@polkadot/util-crypto": "^0.38.0-beta.4",
"@types/nock": "^9.3.1",
"eventemitter3": "^3.1.0",
"isomorphic-fetch": "^2.2.1",
+1 -1
View File
@@ -12,6 +12,6 @@
"dependencies": {
"@babel/runtime": "^7.3.4",
"@polkadot/types": "^0.48.0-beta.0",
"@polkadot/util": "^0.37.1"
"@polkadot/util": "^0.38.0-beta.4"
}
}
+1 -1
View File
@@ -7,7 +7,7 @@ import { Extrinsic } from '@polkadot/types';
import extrinsics from './static';
const keyring = testingPairs({ type: 'ed25519' });
const keyring = testingPairs({ type: 'ed25519' }, false);
describe('extrinsics', () => {
it('encodes extrinsic correctly (nobody)', () => {
+3 -3
View File
@@ -30,9 +30,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme",
"dependencies": {
"@babel/runtime": "^7.3.4",
"@polkadot/keyring": "^0.37.1",
"@polkadot/keyring": "^0.38.0-beta.4",
"@polkadot/types": "^0.48.0-beta.0",
"@polkadot/util": "^0.37.1",
"@polkadot/util-crypto": "^0.37.1"
"@polkadot/util": "^0.38.0-beta.4",
"@polkadot/util-crypto": "^0.38.0-beta.4"
}
}
+2 -2
View File
@@ -30,8 +30,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.3.4",
"@polkadot/keyring": "^0.37.1",
"@polkadot/util": "^0.37.1",
"@polkadot/keyring": "^0.38.0-beta.4",
"@polkadot/util": "^0.38.0-beta.4",
"core-js": "^2.6.5"
}
}
+24 -24
View File
@@ -1393,10 +1393,10 @@
universal-user-agent "^2.0.0"
url-template "^2.0.8"
"@polkadot/dev@^0.26.1":
version "0.26.1"
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.26.1.tgz#609bd1f43860a7172e45be76a529af24c598f546"
integrity sha512-m1BBk8QlQRGxFouwWNdK4kDHPUQEIbSCAB3VUiHstFeR+zto5II7zytX7wKHRH8Bn7U5CiW3PWpJ85MR4oodDA==
"@polkadot/dev@^0.27.1":
version "0.27.1"
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.27.1.tgz#63ef2439bac8131d368ba80bf7dc8d09c0e2e927"
integrity sha512-EN60509R89FNJsoNWH87G3buCd717Mx3wrexLLkd+IURl52shFjv12HqpSdW09mMwxhUZMOmmqwYoFdRnkOFag==
dependencies:
"@babel/cli" "^7.2.3"
"@babel/core" "^7.3.4"
@@ -1429,35 +1429,35 @@
typescript "^3.3.3333"
vuepress "^1.0.0-alpha.40"
"@polkadot/keyring@^0.37.1":
version "0.37.1"
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.37.1.tgz#8e25dee196a8e52dd76208b8fb9965e906af8828"
integrity sha512-c2FkdlvGcBPn+ymQIchuR6wciNxBLQpjNAjfTzdesdGpIZMl+wn0plYfJ3c6YjbD9BP1mGHGX/cT2MFqVdOI/g==
"@polkadot/keyring@^0.38.0-beta.4":
version "0.38.0-beta.4"
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.38.0-beta.4.tgz#18e89f234fb60764c973f9f992b225105f03aaf4"
integrity sha512-xm5tRsXISF6jWCbL/8pq8yqAsvVp3yFnYlyAd/u+Oj/XEQR5Vij26y7eQUXyX6pFYRtFda/RSaNLWkKDHoUJbQ==
dependencies:
"@babel/runtime" "^7.3.4"
"@polkadot/util" "^0.37.1"
"@polkadot/util-crypto" "^0.37.1"
"@polkadot/util" "^0.38.0-beta.4"
"@polkadot/util-crypto" "^0.38.0-beta.4"
"@types/bs58" "^4.0.0"
bs58 "^4.0.1"
"@polkadot/schnorrkel-js@^0.1.2-3":
version "0.1.2-3"
resolved "https://registry.yarnpkg.com/@polkadot/schnorrkel-js/-/schnorrkel-js-0.1.2-3.tgz#9117ac5126b465a1cf53c2b6bb68a17efc7e0390"
integrity sha512-1LgF4wtER3q5uqY67CdOsQQ/SBqT6v0ZKQIS3cOTVByF16WtApD6U324uCJyMdie+GZFv0xr/40I4Ni2It+8jw==
"@polkadot/schnorrkel-js@^0.2.0-12":
version "0.2.0-12"
resolved "https://registry.yarnpkg.com/@polkadot/schnorrkel-js/-/schnorrkel-js-0.2.0-12.tgz#fd70f3b79d2c7a97874c26ae41bf331ef8763b77"
integrity sha512-S/tbdME58VDzP5nXE4kWseZnrWGkaMFFmEdW43KlwGlWvxNMREpgncUdDfTFip6lDahcKNSU98n+QJJlkaSB+A==
"@polkadot/ts@^0.1.56":
version "0.1.56"
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.56.tgz#ffd6e9c95704a7fb90b918193b9dc5c440114b27"
integrity sha512-wnt4zXxZXyz6WaubTO/I+nUElwV2DogFzdl6CrKfVn2PTWp8uHN06W9s40FH57ORtmQfDr9rLRP8Nq+oIyElbg==
"@polkadot/util-crypto@^0.37.1":
version "0.37.1"
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.37.1.tgz#dfbb00258d2cdaf28ef9629ce16aae1d8198c8d7"
integrity sha512-j6/xARFCeWK/nIJb2Wi0xVkyCGANyyFM1eC0WCVslX4+DXjo9VqLAYlonBxfVPArC5gVkeKS2xESuXYN2QJCJA==
"@polkadot/util-crypto@^0.38.0-beta.4":
version "0.38.0-beta.4"
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.38.0-beta.4.tgz#a26bc2409baef56d5d8213a08bf91a92322ecbc8"
integrity sha512-fTxrv7CipaMrmjFi4Dy+r3BqhC8WIOfRAUCRXCkaHBDd2cRyrDrHRrONVAbUhv36B/ZNogaVRd3Aq2uF1TSpzw==
dependencies:
"@babel/runtime" "^7.3.4"
"@polkadot/schnorrkel-js" "^0.1.2-3"
"@polkadot/util" "^0.37.1"
"@polkadot/schnorrkel-js" "^0.2.0-12"
"@polkadot/util" "^0.38.0-beta.4"
"@types/bip39" "^2.4.2"
"@types/pbkdf2" "^3.0.0"
"@types/secp256k1" "^3.5.0"
@@ -1470,10 +1470,10 @@
tweetnacl "^1.0.1"
xxhashjs "^0.2.2"
"@polkadot/util@^0.37.1":
version "0.37.1"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.37.1.tgz#a2f422dd9a25594ddc1d301d351588b7211a9e04"
integrity sha512-y6Y3I6t7Xl8ZEc5WQMZES9HQsd4URATCNqcwErLGBCKIH550QXA8lm4ZthSeiMBZ9ga6RFasIMi/ae+AfPUZhA==
"@polkadot/util@^0.38.0-beta.4":
version "0.38.0-beta.4"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.38.0-beta.4.tgz#ae791b53feed18240f1335db47de1ef05ba4be15"
integrity sha512-Aq1Ul1JEQDdZSUhQPztbWrZHqFGkWMMK3bg47xtoxrWdtqYhS52a89i+LANSNqli65Z2KhVSTsBakj/tCMBxNQ==
dependencies:
"@babel/runtime" "^7.3.4"
"@types/bn.js" "^4.11.4"