Bump dev (w/ Node 16+ only) (#1813)

* Bump dev (w/ Node 16+ only)

* Lint

* Fix build
This commit is contained in:
Jaco
2023-04-21 10:10:27 +03:00
committed by GitHub
parent e3b11360ab
commit 51a7263d38
25 changed files with 175 additions and 174 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
// Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { DeriveJunction } from './DeriveJunction.js';
import type { DeriveJunction } from './DeriveJunction.js';
import { keyExtractPath } from './extractPath.js';
export interface ExtractResult {
+1 -1
View File
@@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
import type { Keypair, KeypairType } from '../types.js';
import type { DeriveJunction } from './DeriveJunction.js';
import { DeriveJunction } from './DeriveJunction.js';
import { keyHdkdEcdsa } from './hdkdEcdsa.js';
import { keyHdkdEd25519 } from './hdkdEd25519.js';
import { keyHdkdSr25519 } from './hdkdSr25519.js';
+1 -2
View File
@@ -2,8 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { Keypair } from '../types.js';
import { DeriveJunction } from './DeriveJunction.js';
import type { DeriveJunction } from './DeriveJunction.js';
export function createSeedDeriveFn (fromSeed: (seed: Uint8Array) => Keypair, derive: (seed: Uint8Array, chainCode: Uint8Array) => Uint8Array): (keypair: Keypair, junction: DeriveJunction) => Keypair {
return (keypair: Keypair, { chainCode, isHard }: DeriveJunction): Keypair => {
+1 -1
View File
@@ -2,10 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
import type { Keypair } from '../types.js';
import type { DeriveJunction } from './DeriveJunction.js';
import { sr25519DeriveHard } from '../sr25519/deriveHard.js';
import { sr25519DeriveSoft } from '../sr25519/deriveSoft.js';
import { DeriveJunction } from './DeriveJunction.js';
export function keyHdkdSr25519 (keypair: Keypair, { chainCode, isSoft }: DeriveJunction): Keypair {
return isSoft