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

Add a validate function. #39

Merged
merged 1 commit into from
Aug 14, 2020

Conversation

Stebalien
Copy link
Collaborator

This function is equivalent to Deferred.UnmarshalCBOR, just more efficient because it doesn't copy.

This function is equivalent to Deferred.UnmarshalCBOR, just more efficient
because it doesn't copy.
Stebalien added a commit to filecoin-project/specs-actors that referenced this pull request Aug 14, 2020
This change validates CBOR whenever accepted from the user as an arbitrary byte
array.

Note:

1. For the multisig actor, we could _technically_ skip validating the CBOR on
approval because it has already been validated on propose. But this shouldn't be
that expensive.
2. We don't actually need to validate the CBOR in the cron actor. I'm happy to
remove it, I just wanted to start with something paranoid and walk back from there.

fixes #972

depends on whyrusleeping/cbor-gen#39
@whyrusleeping whyrusleeping merged commit 534767c into whyrusleeping:master Aug 14, 2020
@Stebalien Stebalien deleted the feat/validate branch August 14, 2020 00:54
Stebalien added a commit to filecoin-project/specs-actors that referenced this pull request Aug 14, 2020
This change validates CBOR whenever accepted from the user as an arbitrary byte
array.

Note:

1. For the multisig actor, we could _technically_ skip validating the CBOR on
approval because it has already been validated on propose. But this shouldn't be
that expensive.
2. We don't actually need to validate the CBOR in the cron actor. I'm happy to
remove it, I just wanted to start with something paranoid and walk back from there.

fixes #972

depends on whyrusleeping/cbor-gen#39
@aschmahmann aschmahmann mentioned this pull request May 14, 2021
71 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants