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

Implements Address cbor encoding #59

Merged
merged 9 commits into from
Dec 4, 2019
Merged

Conversation

austinabell
Copy link
Contributor

  • Progress toward Setup and investigate consistent cbor encoding/decoding #35 (or can complete and create new issue with more detailed information)
  • Implements address cbor encoding and tests against intermediate vectors pulled from logging the go implementation
  • Fixes the leb128 encoding for ID protocols (was storing unnecessary bytes since it was storing the whole buffer as bytes which affected the cbor encoding)

@@ -123,14 +125,14 @@ impl Address {

/// Generates new address using ID protocol
pub fn new_id(id: u64) -> Result<Self, Error> {
let mut buf = [0; 1023];
let mut buf = [0; 1024];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buffer size should probably be a constant

@austinabell
Copy link
Contributor Author

made small tweak @ec2 @dutterbutter

Copy link
Member

@GregTheGreek GregTheGreek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@austinabell austinabell merged commit af33dd2 into master Dec 4, 2019
@austinabell austinabell deleted the austin/cboraddressimpl branch December 4, 2019 15:10
vmx pushed a commit to dignifiedquire/forest that referenced this pull request Mar 19, 2020
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

5 participants