getBSCDerivationPath method

String getBSCDerivationPath()

storedKey에 account 추가시 사용되는 메소드

Implementation

String getBSCDerivationPath() {
  // BSC는 이더리움과 같은 derivation path를 사용
  // m/44'/60'/0'/0/0
  // 60은 이더리움의 coin type (BSC도 동일하게 사용)
  const purpose = "44'";
  const coinType = "60'";
  const account = "0'";
  const change = "0";
  const index = "0";

  return "m/$purpose/$coinType/$account/$change/$index";
}