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

Avalanche Warp Messaging #440

Closed
aaronbuchwald opened this issue Jan 18, 2023 · 4 comments
Closed

Avalanche Warp Messaging #440

aaronbuchwald opened this issue Jan 18, 2023 · 4 comments

Comments

@michaelkaplan13
Copy link
Contributor

Calling out a dev dependency: We'll need the precompile solidity interface in order to filter for messages to be inserted into the messages database.

May want to consider moving the precompile solidity interface up to the top.

@aaronbuchwald
Copy link
Collaborator Author

aaronbuchwald commented Jan 18, 2023

Calling out a dev dependency: We'll need the precompile solidity interface in order to filter for messages to be inserted into the messages database.

May want to consider moving the precompile solidity interface up to the top.

The messages database in the first ticket should be the database of messages the validator is willing to sign, so there won't be a need to filter that as any message emitted by the precompile should go in.

Any message emitted by the Warp precompile, should be added to the database when it gets accepted, so it should just need the following interface:

type WarpBackend interface {
	AddMessage(ctx context.Context, unsignedMessage *teleporter.UnsignedMessage) error
	GetSignature(ctx context.Context, messageHash ids.ID) ([]byte, error)
}

I was thinking that the WarpBackend can take care of signing the message, so that it only needs to keep track of a messageHash and the signature that corresponds to it if present.

@aaronbuchwald
Copy link
Collaborator Author

@minghinmatthewlam to add a separate ticket to clean up the warp messages database and add to this ticket.

@minghinmatthewlam
Copy link

Added #471 into list of issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Status: In Progress 🏗
Development

No branches or pull requests

4 participants