Skip to content

Further fixes to make the code usuable in librustzcash#185

Closed
vivek-arte wants to merge 2 commits intozsa1from
fixes_for_librustzcash
Closed

Further fixes to make the code usuable in librustzcash#185
vivek-arte wants to merge 2 commits intozsa1from
fixes_for_librustzcash

Conversation

@vivek-arte
Copy link

Some visibility changes to methods needed for the corresponding encoding change in librustzcash

@what-the-diff
Copy link

what-the-diff bot commented Sep 5, 2025

PR Summary

  • Increase Visibility of encode Method
    The visibility of the encode method was changed from pub(crate) to pub, making this function accessible for use in a broader context within the project.

  • Increase Visibility of decode Method
    The visibility of the decode method was also changed from pub(crate) to pub. This means that this function can now be used more widely within the project. This adjustment provides additional flexibility for code implementation.

signature: IssueAuthSig::decode(data).unwrap(),
}
/// Constructs a `Signed` from an `IssueAuthSig`.
pub fn from_sig(signature: IssueAuthSig<ZSASchnorr>) -> Self {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I prefer to call this function new rather than from_sig.
I prefer if it is the first function in the impl Signed block.

@ConstanceBeguier
Copy link
Collaborator

Implemented in #181

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