Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove index from derivation path #60

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tui/keychainmanagementui/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
// set a default derivation path
if m.focusIndex == len(m.inputs)+6+len(m.serviceNames)+1 {
serviceName := m.newServiceInputs[0].Value()
derivationPath := "m/650'/" + serviceName + msg.String() + "/0"
derivationPath := "m/650'/" + serviceName + msg.String()
m.newServiceInputs[1].SetValue(derivationPath)
}
}
Expand Down
2 changes: 1 addition & 1 deletion tui/tuiutils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func CreateKeychain(url string, accessSeed []byte) (string, string, string, stri
rand.Read(randomSeed)

keychain := archethic.NewKeychain(randomSeed)
keychain.AddService("uco", "m/650'/0/0", archethic.ED25519, archethic.SHA256)
keychain.AddService("uco", "m/650'/0", archethic.ED25519, archethic.SHA256)
keychain.AddAuthorizedPublicKey(publicKey)

accessAddress, err := archethic.DeriveAddress(accessSeed, 1, archethic.ED25519, archethic.SHA256)
Expand Down
Loading