1 | // Copyright 2017-2022 @polkadot/util-crypto authors & contributors
|
2 | // SPDX-License-Identifier: Apache-2.0
|
3 | import { sr25519DeriveHard } from "../sr25519/deriveHard.js";
|
4 | import { sr25519DeriveSoft } from "../sr25519/deriveSoft.js";
|
5 | export function keyHdkdSr25519(keypair, {
|
6 | chainCode,
|
7 | isSoft
|
8 | }) {
|
9 | return isSoft ? sr25519DeriveSoft(keypair, chainCode) : sr25519DeriveHard(keypair, chainCode);
|
10 | } |
\ | No newline at end of file |