UNPKG

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