-
Notifications
You must be signed in to change notification settings - Fork 115
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
Support hard derivation parts for ED25519 keys #284
Comments
Is there are any milestone, when this will be implemented? Polkadot binary seems to have derivation for all key types:
If only the public key needed, I found a workaround for from substrateinterface import SubstrateInterface
# WARNING: use local node, if mnemonic sent over the network it can be intercepted and decoded.
substrate = SubstrateInterface(url='ws://127.0.0.1:9944') # statemint-rpc
result = substrate.runtime_call("SessionKeys", "generate_session_keys", ['test test test test test test test test test test test junk//path//1'])
print(result.value)
# 0x2e51ba0eb929a6ddea0e4ace308e159e6d6a59af10b650811157d26c7d3e83dd It is same output as polkadot binary:
|
This issue was indeed a bit off the radar; I'll put it on the backlog for the upcoming release. There is some uncertainty regarding whether the above suggested @BulatSaif sidenote, be careful using |
Oh fair observation, I will update my previous comment with a warning. |
Is there any progress with this issue? The previous workaround with |
Currently, hard derivation is not supported for ED25519 keypairs.
The following example fails:
This error is thrown:
While it's not trivial to implement, for the sake of completeness of the python substrate API, it would be nice to be able to do this. Our current use case for it is : injecting derived grandpa keys on testnet nodes.
However only hard derivation can be supported as this key type has issues with soft derivation, see paritytech/substrate#3294
Other reference link: https://github.com/w3f/hd-ed25519
The text was updated successfully, but these errors were encountered: