-
Notifications
You must be signed in to change notification settings - Fork 31
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
Radix connects with the wrong address #969
Comments
Hope this helps.. as I say though, I'd like for the option of the current way to still be available.. perhaps if index is set to -1 or somehing then it could do that, otherwise, this... `
` |
Thanks will be working on radix in a couple hours. |
Cool... if you are doing other radix stuff, here is my code that can input into the maya LP. `
` |
Today busy with hard fork - will be continuing tmrw. FYI |
Current behavior
Given a phrase or key, the address given for the Radix wallet gives a different address than that in other apps such as the Radix app or CacaoSwap.
`
export async function createPrivateKey(phrase: string) {
const seed = await mnemonicToSeed(phrase);
return new PrivateKey.Ed25519(seed.slice(0, 32));
}
`
Suspect it's to do with this... it should give a digest not just take the first 32 chars, although I've been unable so far to work out what it should be.
Unfortunately now I have some users (perhaps just one, but a big one) who has used this method and so it needs to be an optional change not a breaking one.
Expected behavior
Gives the same address as other things.
Functionality
Packages
Details
Package versions:
@swapkit/[email protected]
The text was updated successfully, but these errors were encountered: