Replies: 1 comment 1 reply
-
The original authors of the crypto code were very protective against signing arbitrary data, but you can do one of two things:
Here's an example of how key rotation is handled in the Aptos CLI https://github.com/aptos-labs/aptos-core/blob/main/crates/aptos/src/account/key_rotation.rs#L118-L136 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Unable to figure out how to actually sign a rotation proof challenge, for verifying capability to rotate the authentication key.
My rotation proof challenge -
need to pass the signed challenge to the aptos_framework_sdk_builder rotate function, here
I am trying to use the sign_arbitrary_message exposed on the Ed25519PrivateKey struct here, but the function is private.
trying to find a workaround but seems like serialization is needed for the proof to be signed by other key types.
searching on discord, yields results for the typescript sdk here but confused how to do it in rust
any help/guide/examples would be appreciated
Thanks
Beta Was this translation helpful? Give feedback.
All reactions