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

feat: ERC-6492 creation #44

Merged
merged 18 commits into from
Nov 6, 2024
Merged

feat: ERC-6492 creation #44

merged 18 commits into from
Nov 6, 2024

Conversation

chris13524
Copy link
Member

@chris13524 chris13524 commented Oct 16, 2024

This implements 6492 signature creation for deployed and non-deployed cases.

Remaining work:

Resolves RES-97

@chris13524 chris13524 self-assigned this Oct 16, 2024
Base automatically changed from feat/erc6492-verification to main November 5, 2024 13:06
@chris13524 chris13524 marked this pull request as ready for review November 5, 2024 18:35
Copy link

linear bot commented Nov 5, 2024

.await
}

pub async fn finalize_sign_message(
Copy link
Contributor

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?

Copy link
Member Author

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(
Copy link
Contributor

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(
Copy link
Collaborator

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?

Copy link
Member Author

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

Copy link
Collaborator

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

Copy link
Member Author

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()

Copy link
Collaborator

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

Copy link
Member Author

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

@chris13524 chris13524 merged commit d27c3e5 into main Nov 6, 2024
3 checks passed
@chris13524 chris13524 deleted the feat/erc6492-creation branch November 6, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants