-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into java14_compat
- Loading branch information
Showing
10 changed files
with
119 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Contributing to Tessera code | ||
|
||
Thank you for your interest in contributing to our Tessera code. We welcome all meaningful contribution no matter the size. | ||
|
||
If you'd like to contribute please send us a pull request with the change. We are very interactive and will respond immediately. | ||
Commits which do not comply with the coding standards and without substance are generally ignored/closed. | ||
|
||
## What to contribute | ||
|
||
We are happy for all contributions including: | ||
|
||
* Improved End to End Flow diagram | ||
* Documentation updates | ||
* Code contributions | ||
* Responding to other issues/supporting our community | ||
|
||
Please refer our [Product Roadmap](http://docs.goquorum.com/en/latest/roadmap/) or [Issues](https://github.com/jpmorganchase/tessera/issues) for ideas to contribute. | ||
|
||
## What makes a good contribution ? | ||
|
||
* Code must adhere to proper coding standards and self-documenting, easy to understand and explain | ||
* Follow standard [style guides](https://google.github.io/styleguide/javaguide.html). | ||
* Include test coverage (both unit and integration). Without 100 % test coverage the build will fail. All submissions must be testable in an automated fashion. | ||
* If the change needs end to end testing with Quorum, please also contribute to our [Quorum acceptance Test suite](https://github.com/jpmorganchase/quorum-acceptance-tests). | ||
* Raise individual features/enhancements separately and do not bundle them as one big change. | ||
* Link each change to an issue (if it is new feature, please create an issue before contributing with the change) | ||
* Add proper commit messages and description of change in the request. | ||
* Always add logging at appropriate level where applicable. | ||
* Be proactive after submitting PR making sure all checks are passing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,5 +195,8 @@ The best way to receive security announcements is to subscribe to the Quorum-ann | |
|
||
Comments on This Policy If you have any suggestions to improve this policy, please send an email to [email protected] for discussion. | ||
|
||
## Contributing | ||
Tessera is built open source and we welcome external contribution on features and enhancements. Upon review you will be required to complete a Contributor License Agreement (CLA) before we are able to merge. If you have any questions about the contribution process, please feel free to send an email to [[email protected]](mailto:[email protected]). Please see the [Contributors guide](.github/CONTRIBUTING.md) in wiki for more information about the process. | ||
|
||
# Getting Help | ||
Stuck at some step? Please join our <a href="https://www.goquorum.com/slack-inviter" target="_blank" rel="noopener">slack community</a> for support. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
encryption/encryption-api/src/test/java/com/quorum/tessera/encryption/BaseKeyTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.quorum.tessera.encryption; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
public class BaseKeyTest { | ||
|
||
@Test | ||
public void toStringDoesNotUseUnderlyingData() { | ||
final BaseKey k = new TestBaseKeyImpl(new byte[]{5, 6, 7}); | ||
final BaseKey k2 = new TestBaseKeyImpl(new byte[]{5, 6, 7}); | ||
|
||
assertThat(k.toString()).isNotEqualTo(k2.toString()); | ||
} | ||
|
||
static class TestBaseKeyImpl extends BaseKey implements MyKey { | ||
|
||
protected TestBaseKeyImpl(byte[] keyBytes) { | ||
super(keyBytes); | ||
} | ||
} | ||
|
||
interface MyKey { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.