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

Adds Cryptographic Identity utility for working with various keys ect #470

Merged
merged 4 commits into from
Nov 15, 2022

Conversation

danwt
Copy link
Contributor

@danwt danwt commented Nov 11, 2022

This is a utility set that I extracted from working on Key Assignment.

It gives a really handy way to get all the various key and address types used by the sdk and tendermint, and their various interfaces, without having to piece everything together each time.

This is used extensively in the Key Assignment tests but I've opened this PR to get it in sooner, so that I can start using it to improve the diff tests ect.

Copy link
Contributor

@shaspitz shaspitz left a comment

Choose a reason for hiding this comment

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

Great stuff! Could we delete this struct and it's below helper in this PR? Should be easily replaceable with your more extensive helpers

testutil/crypto/crypto.go Outdated Show resolved Hide resolved
@danwt
Copy link
Contributor Author

danwt commented Nov 11, 2022

Great stuff! Could we delete this struct and it's below helper in this PR? Should be easily replaceable with your more extensive helpers

@smarshall-spitzbart for sure! How about letting this one in first, then I (or we) can make a pass over the codebase and use these utils in all the obvious places?

@shaspitz
Copy link
Contributor

shaspitz commented Nov 11, 2022

Great stuff! Could we delete this struct and it's below helper in this PR? Should be easily replaceable with your more extensive helpers

@smarshall-spitzbart for sure! How about letting this one in first, then I (or we) can make a pass over the codebase and use these utils in all the obvious places?

Sure thing, a larger parse through the codebase would make sense when we have time 👍 , for now I've made #473 which removes only the helper I was referencing

Copy link
Contributor

@MSalopek MSalopek left a comment

Choose a reason for hiding this comment

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

LGTM!

This is really useful, needed it a couple of times already and had to do weird stuff :D

@danwt danwt merged commit 0096317 into main Nov 15, 2022
@danwt danwt deleted the danwt/testutil-cryptographic-identity branch November 15, 2022 19:24
danwt pushed a commit that referenced this pull request Nov 16, 2022
commit fb83bb7
Author: MSalopek <[email protected]>
Date:   Tue Nov 15 22:54:06 2022 +0100

    add multiple consumer chains in integration tests (#407)

commit 33137b3
Author: Shawn Marshall-Spitzbart <[email protected]>
Date:   Tue Nov 15 12:05:45 2022 -0800

    testutils refactors and cleanup (#472)

    * changes

    * mas

    * Update README.md

    * Update README.md

    * sorry for the friday night emails

    * Update instance_test.go

    * util naming

commit 0096317
Author: Daniel T <[email protected]>
Date:   Tue Nov 15 19:24:40 2022 +0000

    Adds Cryptographic Identity utility for working with various keys ect (#470)

    * Adds crypto.go Cryptographic Identity util

    * Changes mock to ibcmock

    Co-authored-by: Daniel <[email protected]>

commit b10e132
Author: Shawn Marshall-Spitzbart <[email protected]>
Date:   Mon Nov 14 16:32:31 2022 -0800

    circuit breaker params  (#444)

    * changes

    * Update params.go

commit df53566
Author: Shawn Marshall-Spitzbart <[email protected]>
Date:   Mon Nov 14 16:11:22 2022 -0800

    Slashing related e2e test improvements (#461)
danwt added a commit that referenced this pull request Nov 16, 2022
Squashed commit of the following:

commit fb83bb7
Author: MSalopek <[email protected]>
Date:   Tue Nov 15 22:54:06 2022 +0100

    add multiple consumer chains in integration tests (#407)

commit 33137b3
Author: Shawn Marshall-Spitzbart <[email protected]>
Date:   Tue Nov 15 12:05:45 2022 -0800

    testutils refactors and cleanup (#472)

    * changes

    * mas

    * Update README.md

    * Update README.md

    * sorry for the friday night emails

    * Update instance_test.go

    * util naming

commit 0096317
Author: Daniel T <[email protected]>
Date:   Tue Nov 15 19:24:40 2022 +0000

    Adds Cryptographic Identity utility for working with various keys ect (#470)

    * Adds crypto.go Cryptographic Identity util

    * Changes mock to ibcmock

    Co-authored-by: Daniel <[email protected]>

commit b10e132
Author: Shawn Marshall-Spitzbart <[email protected]>
Date:   Mon Nov 14 16:32:31 2022 -0800

    circuit breaker params  (#444)

    * changes

    * Update params.go

commit df53566
Author: Shawn Marshall-Spitzbart <[email protected]>
Date:   Mon Nov 14 16:11:22 2022 -0800

    Slashing related e2e test improvements (#461)

Co-authored-by: Daniel <[email protected]>
@shaspitz shaspitz mentioned this pull request Apr 11, 2023
12 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.

3 participants