-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: ERC-6492 creation #44
Conversation
92579ed
to
8110fbc
Compare
…/erc6492-creation
8110fbc
to
06c9ba5
Compare
06c9ba5
to
c93caf9
Compare
…/erc6492-creation
e5ab7ce
to
5591abb
Compare
.await | ||
} | ||
|
||
pub async fn finalize_sign_message( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need 3 steps to create a signature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need 2 signatures unfortunately, 3rd step is to accept the second signature
@@ -131,8 +140,67 @@ impl AccountClient { | |||
.await | |||
} | |||
|
|||
pub async fn sign_message(&self, message: String) -> eyre::Result<String> { | |||
todo!("Implement sign_message: {}", message) | |||
pub fn prepare_sign_message( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kotlin, It would copy these methods to account_client in kotlin-ffi. With some tweaks, it should work
_message_hash: String, | ||
) -> Result<FFIPreparedSignature, FFIError>; | ||
|
||
pub async fn do_sign_message( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just thinking what do we need this method for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we addressed this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, maybe we can just add the 3rd method bindings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's finalize_sign_message()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't see it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's in crates/ffi/src/account_client.rs
I didn't add to Swift
This implements 6492 signature creation for deployed and non-deployed cases.
Remaining work:
Resolves RES-97