-
Notifications
You must be signed in to change notification settings - Fork 161
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
[VM] Implement basic message types and signing stubs #31
Conversation
vm/src/message/mod.rs
Outdated
pub(crate) method: u64, | ||
pub(crate) params: Vec<u8>, | ||
|
||
pub(crate) gas_price: BigUint, // change these to big int |
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.
What's with the comment?
vm/src/message/mod.rs
Outdated
pub(crate) from: Address, | ||
pub(crate) to: Address, | ||
|
||
pub(crate) nonce: u64, |
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 don't see nonce
defined in the spec for Message type?
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.
its sequence, which is why I was asking about standardizing this name since other implementations have this field as nonce
vm/src/message/mod.rs
Outdated
|
||
pub(crate) value: BigUint, | ||
|
||
pub(crate) method: u64, |
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.
Can we rename this field to method_id rather than method?
#[derive(PartialEq, Clone)] | ||
pub struct MessageReceipt { | ||
// TODO: determine if this is necessary, code returned from cbor | ||
pub(crate) exit_code: u8, |
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.
may want to enum this in the future. but should be ok for now
* feat(upgrade toolchain to match rust-fil-proofs) * fixup(point crates at Git branches during dev) * feat(consume new 0.6.0 releases) * feat(install paramcache from HEAD of master branch and compute Groth parameters) * feat(use chatty logging to see what's going on with sector builder) * feat(force install so that we don't explode if the binary already exists) * feat(consume new 0.6.1 patch release) * refactor(edits to accommodate new rust toolchain version) * feat(bump filecoin-proofs-ffi crate dependency)
Will split TODO items into other issues to keep PRs small. Reason for me making currently unused fields as public to the crate is because I don't know exactly how they will be used so do not want to flood the method with getters but do not want to expose it publicly until I figure out exactly how they are used.