Skip to content

Commit

Permalink
chore: extract account constant
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Johnson <[email protected]>
  • Loading branch information
dtscalac and stevenj authored Nov 29, 2024
1 parent ab8e0ad commit 063e107
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ final class KeyDerivation {
/// See: https://github.com/input-output-hk/catalyst-voices/pull/1300
static const int _purpose = 508;
static const int _type = 139;

static const int _account = 0; // Future Use
final CatalystKeyDerivation _keyDerivation;

const KeyDerivation(this._keyDerivation);
Expand Down Expand Up @@ -49,6 +49,6 @@ final class KeyDerivation {
/// The path feed into key derivation algorithm
/// to generate a key pair from a seed phrase.
String _roleKeyDerivationPath(AccountRole role) {
return "m/$_purpose'/$_type'/0'/${role.number}/0";
return "m/$_purpose'/$_type'/$_account'/${role.number}/0";
}
}

0 comments on commit 063e107

Please sign in to comment.