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

[VM] Implement basic message types and signing stubs #31

Merged
merged 6 commits into from
Nov 25, 2019

Conversation

austinabell
Copy link
Contributor

  • Completes Message Types #13 by setting up basic message types to be used by other components
  • Implements signer trait to be used to sign data and sets up flow for generating and signing messages for when cbor encoding and decoding is added

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.

@ansermino ansermino mentioned this pull request Nov 25, 2019
pub(crate) method: u64,
pub(crate) params: Vec<u8>,

pub(crate) gas_price: BigUint, // change these to big int
Copy link
Member

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?

@austinabell austinabell changed the title Implement basic message types and signing stubs [VM] Implement basic message types and signing stubs Nov 25, 2019
pub(crate) from: Address,
pub(crate) to: Address,

pub(crate) nonce: u64,
Copy link
Contributor

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?

Copy link
Contributor Author

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


pub(crate) value: BigUint,

pub(crate) method: u64,
Copy link
Contributor

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,
Copy link
Member

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

@austinabell austinabell merged commit e85e699 into master Nov 25, 2019
@austinabell austinabell deleted the austin/vmmessage branch November 25, 2019 19:57
vmx pushed a commit to dignifiedquire/forest that referenced this pull request Mar 19, 2020
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants