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

feat: add ring equality check and expose ring on ringsig #14

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

h5law
Copy link
Contributor

@h5law h5law commented Oct 13, 2023

Summary

This PR addresses issue #13 by adding the following methods:

func (r *Ring) Equals(other *Ring) bool
func (rs *RingSig) Ring() *Ring

These allow for the RingSig to check whether it contains a specific ring using the following flow:

if eq := sig.Ring().Equals(otherRing); !eq {
	panic("ring sig doesnt contain otherRing")
}

@h5law h5law requested a review from noot October 18, 2023 19:15
@noot noot merged commit 6c4b33b into noot:master Oct 19, 2023
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