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

[relayer] use Vec<u8> instead of Vec<Felt> #179

Open
rnbguy opened this issue Jan 10, 2025 · 0 comments
Open

[relayer] use Vec<u8> instead of Vec<Felt> #179

rnbguy opened this issue Jan 10, 2025 · 0 comments
Labels

Comments

@rnbguy
Copy link
Member

rnbguy commented Jan 10, 2025

In cairo code, we use Array<u8> for StateProof and Acknowledgment

pub struct StateProof {
pub proof: Array<u8>,
}

pub struct Acknowledgement {
pub ack: Array<u8>,
}

But because of #178, in the rust relayer code, we use Vec<Felt> for StateProof and Acknowledgment.

pub struct StateProof {
// TODO(rano): Array<u8> in Cairo
// Currently, Vec<u8> is serialized for ByteArray
pub proof: Vec<Felt>,
}

pub struct Acknowledgement {
// TODO(rano): Array<u8> in Cairo
// Currently, Vec<u8> is serialized for ByteArray
pub ack: Vec<Felt>,

@rnbguy rnbguy added the relayer label Jan 10, 2025
@rnbguy rnbguy changed the title relayer: use Vec<u8> instead of Vec<Felt> [relayer] use Vec<u8> instead of Vec<Felt> Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant