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

Setting up tide-disco bindings #9

Merged
merged 6 commits into from
Feb 5, 2024
Merged

Conversation

nyospe
Copy link
Contributor

@nyospe nyospe commented Feb 1, 2024

No description provided.

@nyospe nyospe requested review from jbearer, QuentinI and move47 February 1, 2024 18:14
<<I as NodeType>::BlockPayload as BlockPayload>::Metadata,
);
pub type BlockHash<I: NodeType> = Commitment<HashableBlock<I>>;
impl<I: NodeType> Default for HashableBlock<I> {
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need default for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The tide-disco type resolver needed it for extracting the parameter from TaggedBase64 for claim_block. I didn't really take the time to dig into why...

Copy link
Member

Choose a reason for hiding this comment

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

That's odd. I don't see any Default requirement in https://github.com/EspressoSystems/tide-disco/blob/main/src/request.rs. Could you point me to where the requirement is coming from? I feel like this shouldn't be required (although it's not a big deal for now and does not have to block this PR)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking at it again, I think it's because of the way I originally invoked .blob_param(), which I changed before the push...

... but this should be gone once I update with Artemii's changes to HotShot.

src/block_metadata.rs Show resolved Hide resolved

#[derive(Clone, Debug, Snafu, Deserialize, Serialize)]
#[snafu(visibility(pub))]
pub enum BuildError {
Copy link
Member

Choose a reason for hiding this comment

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

Assuming we will change this to be more specific to the errors the builder can encounter, once we start implementing the traits?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

Copy link
Member

@jbearer jbearer left a comment

Choose a reason for hiding this comment

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

LGTM

<<I as NodeType>::BlockPayload as BlockPayload>::Metadata,
);
pub type BlockHash<I: NodeType> = Commitment<HashableBlock<I>>;
impl<I: NodeType> Default for HashableBlock<I> {
Copy link
Member

Choose a reason for hiding this comment

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

That's odd. I don't see any Default requirement in https://github.com/EspressoSystems/tide-disco/blob/main/src/request.rs. Could you point me to where the requirement is coming from? I feel like this shouldn't be required (although it's not a big deal for now and does not have to block this PR)

@nyospe nyospe merged commit 27af7dc into main Feb 5, 2024
4 checks passed
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