From 294c255ab87e2290959cb13d098e7d397ee88980 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 13 Feb 2019 17:33:49 +0100 Subject: [PATCH] Bump dev (copy schnorrkel js files) (#299) --- CHANGELOG.md | 2 +- package.json | 2 +- packages/keyring/src/index.ts | 7 +++++++ yarn.lock | 8 ++++---- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1e8e1ae2..3426f67d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ # 0.34.1 -- Keyring now allows for ed25519 and sr25519 instances. Upon creation, you need to pass the `ed25519`or `sr25519` string to denote the type +- Keyring now allows for ed25519 and sr25519 instances. Upon creation, you need to pass the `ed25519`or `sr25519` string to denote the type, i.e. `new Keyring({ type: 'sr25519' })` diff --git a/package.json b/package.json index f2367a962..19e1c07f4 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "devDependencies": { "@babel/core": "^7.2.2", - "@polkadot/dev": "^0.23.14", + "@polkadot/dev": "^0.23.15", "@polkadot/ts": "^0.1.52" } } diff --git a/packages/keyring/src/index.ts b/packages/keyring/src/index.ts index f90af761d..cbea10208 100644 --- a/packages/keyring/src/index.ts +++ b/packages/keyring/src/index.ts @@ -44,6 +44,13 @@ export default class Keyring implements KeyringInstance { encodeAddress = encodeAddress; setAddressPrefix = setAddressPrefix; + /** + * @description Returns the type of the keyring, either ed25519 of sr25519 + */ + get type (): PairType { + return this._type; + } + /** * @name addPair * @signature addPair (pair: KeyringPair): KeyringPair diff --git a/yarn.lock b/yarn.lock index ba55b8c40..cefe0c5b2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1293,10 +1293,10 @@ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== -"@polkadot/dev@^0.23.14": - version "0.23.14" - resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.23.14.tgz#e649dfaaab4fb1c8e8f2c1695a8b5367dd3ce2ce" - integrity sha512-vmgS7THEvEp1v7iKw/QxanedAozSIRzUJWVHLUkIRyDSRfH3/iOFxEwNso0CNMULO1OHfIfhgDP+3lHj/IMB1A== +"@polkadot/dev@^0.23.15": + version "0.23.15" + resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.23.15.tgz#f1428a706e5ff2138eaf38900070579dee84b57d" + integrity sha512-SVkB3s1KsFQm9Pka8zKx4S06LX5S70r7xCV2lTmbj/5Wj/diamuZgbAHU313cH89q59qU9Bns2gJhynvGXkXfg== dependencies: "@babel/cli" "^7.2.3" "@babel/core" "^7.2.2"