Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/keyring

Package Overview
Dependencies
Maintainers
1
Versions
1173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/keyring - npm Package Compare versions

Comparing version 0.32.21 to 0.32.22

2

address/decode.js

@@ -20,3 +20,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
// Original implementation: https://github.com/paritytech/polka-ui/blob/4858c094684769080f5811f32b081dd7780b0880/src/polkadot.js#L6

@@ -23,0 +23,0 @@ function decode(encoded) {

@@ -9,3 +9,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
const defaults = {

@@ -12,0 +12,0 @@ allowedDecodedLengths: [1, 2, 4, 8, 32],

@@ -20,3 +20,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
// Original implementation: https://github.com/paritytech/polka-ui/blob/4858c094684769080f5811f32b081dd7780b0880/src/polkadot.js#L34

@@ -23,0 +23,0 @@ function encode(_key) {

@@ -14,5 +14,5 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
function setPrefix(prefix) {
_defaults.default.prefix = prefix;
}
// Copyright 2017-2018 @polkadot/keyring authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
export type Prefix = 0 | 1 | 42 | 43 | 68 | 69;

@@ -40,3 +40,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.

@@ -43,0 +43,0 @@ /**

{
"name": "@polkadot/keyring",
"version": "0.32.21",
"version": "0.32.22",
"description": "Keyring management",

@@ -27,3 +27,3 @@ "main": "index.js",

"contributors": [],
"license": "ISC",
"license": "Apache-2.0",
"bugs": {

@@ -35,4 +35,4 @@ "url": "https://github.com/polkadot-js/common/issues"

"@babel/runtime": "^7.1.5",
"@polkadot/util": "^0.32.21",
"@polkadot/util-crypto": "^0.32.21",
"@polkadot/util": "^0.32.22",
"@polkadot/util-crypto": "^0.32.22",
"@types/bs58": "^3.0.30",

@@ -39,0 +39,0 @@ "bs58": "^4.0.1"

@@ -18,3 +18,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
const KEY_LENGTH = 32;

@@ -21,0 +21,0 @@ const SEED_OFFSET = _defaults.PKCS8_HEADER.length;

@@ -9,3 +9,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
const PKCS8_DIVIDER = new Uint8Array([161, 35, 3, 33, 0]);

@@ -12,0 +12,0 @@ exports.PKCS8_DIVIDER = PKCS8_DIVIDER;

@@ -16,3 +16,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
function encode(secretKey, passphrase) {

@@ -19,0 +19,0 @@ const encoded = (0, _index.u8aConcat)(_defaults.PKCS8_HEADER, secretKey.subarray(0, 32), _defaults.PKCS8_DIVIDER, secretKey.subarray(32, 64));

@@ -10,5 +10,5 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
function getMeta(state) {
return state.meta;
}

@@ -28,3 +28,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.

@@ -31,0 +31,0 @@ /**

@@ -14,3 +14,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
const _publicKey = new Uint8Array(32);

@@ -17,0 +17,0 @@

@@ -14,5 +14,5 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
function setMeta(state, meta) {
state.meta = (0, _objectSpread2.default)({}, state.meta, meta);
}

@@ -14,3 +14,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
function toJson(_ref, encoded, isEncrypted) {

@@ -17,0 +17,0 @@ let publicKey = _ref.publicKey,

// Copyright 2017-2018 @polkadot/keyring authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.

@@ -5,0 +5,0 @@ import { KeyringPair$Meta } from '../types';

@@ -18,3 +18,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
class Pairs {

@@ -21,0 +21,0 @@ constructor() {

@@ -18,3 +18,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
function padSeed(seed) {

@@ -21,0 +21,0 @@ return (0, _index.stringToU8a)(seed.padEnd(32, ' '));

@@ -16,3 +16,3 @@ "use strict";

// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.
function testKeyringPairs() {

@@ -19,0 +19,0 @@ const keyring = (0, _testing.default)();

// Copyright 2017-2018 @polkadot/keyring authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// of the Apache-2.0 license. See the LICENSE file for details.

@@ -5,0 +5,0 @@ import { Prefix } from './address/types';

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc