1 | import { sr25519DeriveHard } from '../sr25519/deriveHard.js';
|
2 | import { sr25519DeriveSoft } from '../sr25519/deriveSoft.js';
|
3 | export function keyHdkdSr25519(keypair, { chainCode, isSoft }) {
|
4 | return isSoft
|
5 | ? sr25519DeriveSoft(keypair, chainCode)
|
6 | : sr25519DeriveHard(keypair, chainCode);
|
7 | }
|