Skip to content

Commit 552227e

Browse files
Gradle updates and license amendments for v1.
1 parent 1f1dac6 commit 552227e

File tree

112 files changed

+376
-374
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+376
-374
lines changed

HEADER

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2020-2021 ONIXLabs
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

LICENSE

+28-1
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,31 @@
171171
of any other Contributor, and only if You agree to indemnify,
172172
defend, and hold each Contributor harmless for any liability
173173
incurred by, or claims asserted against, such Contributor by reason
174-
of your accepting any such warranty or additional liability.
174+
of your accepting any such warranty or additional liability.
175+
176+
END OF TERMS AND CONDITIONS
177+
178+
APPENDIX: How to apply the Apache License to your work.
179+
180+
To apply the Apache License to your work, attach the following
181+
boilerplate notice, with the fields enclosed by brackets "[]"
182+
replaced with your own identifying information. (Don't include
183+
the brackets!) The text should be enclosed in the appropriate
184+
comment syntax for the file format. We also recommend that a
185+
file or class name and description of purpose be included on the
186+
same "printed page" as the copyright notice for easier
187+
identification within third-party archives.
188+
189+
Copyright [yyyy] [name of copyright owner]
190+
191+
Licensed under the Apache License, Version 2.0 (the "License");
192+
you may not use this file except in compliance with the License.
193+
You may obtain a copy of the License at
194+
195+
http://www.apache.org/licenses/LICENSE-2.0
196+
197+
Unless required by applicable law or agreed to in writing, software
198+
distributed under the License is distributed on an "AS IS" BASIS,
199+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200+
See the License for the specific language governing permissions and
201+
limitations under the License.

LICENSE-BOILERPLATE

-15
This file was deleted.

readme.md renamed to README.md

+5-34
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ The ONIXLabs Corda BNMS (Business Network Management System) is a framework desi
66

77
## Prerequisites
88

9-
The ONIXLabs Corda BNMS utilizes the ONIXLabs Corda Claims API as an underlying mechanism for creating, distributing and attesting to identity credentials used to define membership. In order to fully understand how identity is managed within the ONIXLabs Corda BNMS, please see the readme for the ONIXLabs Corda Claims API.
9+
The ONIXLabs Corda BNMS utilizes the [ONIXLabs Corda Identity Framework](https://github.com/onix-labs/onixlabs-corda-identity-framework) as an underlying mechanism for creating, distributing and attesting to identity credentials used to define membership, as well as extending the claim and attestation models to create roles, permissions, settings, and membership and relationship attestations.
1010

1111
## Design Goals
1212

1313
### Business Network Interoperability
1414

15-
Corda nodes may require participation in multiple business networks, each with their own standards governing identity and configuration. Without standard APIs for construction of business networks, there is a high likeliness that different business network implementations will be incompatible.
15+
Corda nodes may require participation in multiple business networks, each with their own standards governing identity and configuration. Without standard APIs for constructiing business networks, there is a high likeliness that different business network implementations will be incompatible.
1616

1717
The ONIXLabs Corda BNMS solves this problem by providing protocol level, configurable standards for membership and multi-lateral relationship management implementations, allowing business networks to scale independently whilst remaining interoperable with one another.
1818

19-
The ONIXLabs Corda BNMS is built on top of the ONIXLabs Corda Claims API which not only improves business network interoperability, but also Corda application interoperability. Claims can be shared between applications and distributed across the network, helping to reduce data duplication and inconsistency.
19+
The ONIXLabs Corda BNMS is built on top of the ONIXLabs Corda Identity Framework which not only improves business network interoperability, but also Corda application interoperability. Claims can be shared between applications and distributed across the network, helping to reduce data duplication and inconsistency.
2020

2121
The ONIXLabs Corda BNMS has been designed from the ground up to support centralised business networks that are governed by a business network operator and decentralised business networks that are governed autonomously by the network members themselves.
2222

@@ -34,7 +34,7 @@ This constitutes a partial trust model, with respect to the network as a whole s
3434

3535
### Data Privacy
3636

37-
Data privacy surrounding member identity is handled by the underlying ONIXLabs Corda Claims API. Membership in either centralised or decetralised networks will require either the business network operator or other members of the network to obtain and/or verify identity information. Claims can be issued, distributed and attested independly to membership states, thus allowing verified membership states to be distributed whilst keeping identity information private.
37+
Data privacy surrounding member identity is handled by the underlying ONIXLabs Corda Identity Framework. Membership in either centralised or decetralised networks will require either the business network operator or other members of the network to obtain and/or verify identity information. Claims can be issued, distributed and attested independly to membership states, thus allowing verified membership states to be distributed whilst keeping identity information private.
3838

3939
### Dynamic Smart Contract Execution
4040

@@ -44,7 +44,7 @@ The ONIXLabs Corda BNMS facilitates the ability to perform dynamic smart contrac
4444

4545
## Membership Management
4646

47-
Membership is defined as a reference to a business network, complete with configurable identity (using the ONIXLabs Corda Claims API) as well as roles and grants which provide levels of access and authorisation for utilitsation within the business network. A Corda node may define many relationship states; one per business network. These can be managed by the member or optionally by a network operator.
47+
Membership is defined as a reference to a business network, complete with configurable identity as well as roles, permissions and settings which provide levels of access and authorisation for utilitsation within the business network. A Corda node may define many relationship states; one per business network. These can be managed by the member or optionally by a network operator.
4848

4949
### Membership Issuance
5050

@@ -58,10 +58,6 @@ Membership amendment can be performed by the member themselves, or optionally by
5858

5959
Membership revocation can be performed by the member themselves, or optionally by the network operator. This represents the exit of a member from a business network. All participants are required to sign a membership revocation transaction.
6060

61-
### Membership Discovery
62-
63-
INSERT TEXT HERE
64-
6561
## Relationship Management
6662

6763
A relationship is defined as reference to a business network, complete with a multi-lateral agreement defining configurable governance about how individual members of the relationship interact with one another. A Corda node may define many relationship states. These can be managed by the members of the relationship or by the network operator.
@@ -109,28 +105,3 @@ Membership attestation amendment can only be performed by the attestor. This rep
109105
### Membership Attestation Revocation
110106

111107
Membership attestation revocation can only be performed by the attestor. This represents complete revocation of an attestation to a membership state, which can be used when a membership state is revoked. Only the attestor is required to sign a membership attestation issuance transaction.
112-
113-
114-
# Local setup
115-
116-
## How to publish to local maven repo
117-
- With tests
118-
- `./gradlew releaseLocal`
119-
- Without tests
120-
- `./gradlew clean build -x test publishToMavenLocal`
121-
122-
## How to delete local maven repo
123-
- `rm -rf ~/.m2/repository/io/onixlabs`
124-
125-
## How to setup to publish to maven repo
126-
- [Create a GitHub Personal Access Token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)
127-
- Ensure it has the [correct permissions](https://docs.github.com/en/packages/publishing-and-managing-packages/about-github-packages#about-scopes-and-permissions-for-github-container-registry)
128-
- Add the following to your `~/.gradle/gradle.properties` file, replacing `GITHUB_USERNAME` and `GITHUB_ACCESS_KEY`
129-
> Note this file is in your home directory - not the root of the repo
130-
```
131-
gpr.user=GITHUB_USERNAME
132-
gpr.key=GITHUB_ACCESS_KEY
133-
```
134-
## Publish a new version
135-
- Update the version name in the root `build.gradle` file
136-
- Run `./gradlew publish`

build.gradle

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
kotlin_group = 'org.jetbrains.kotlin'
44
kotlin_version = '1.2.71'
55

6-
corda_artifactory_url = 'https://ci-artifactory.corda.r3cev.com/artifactory'
6+
corda_artifactory_url = 'https://software.r3.com/artifactory'
77
corda_group = 'net.corda'
88
corda_release_version = '4.6'
99

@@ -18,7 +18,6 @@ buildscript {
1818
onixlabs_corda_idfx_release_version = '2.0.0-rc2'
1919

2020
cordapp_platform_version = 8
21-
cordapp_signing_enabled = true
2221
cordapp_contract_name = 'ONIXLabs Corda BNMS Contract'
2322
cordapp_workflow_name = 'ONIXLabs Corda BNMS Workflow'
2423
cordapp_vendor_name = 'ONIXLabs'
@@ -28,8 +27,8 @@ buildscript {
2827
cordapp_signing_enabled = true
2928
cordapp_signing_alias = 'cordapp-signer'
3029
cordapp_signing_storetype = 'PKCS12'
31-
cordapp_signing_keystore = getProperty('jar.sign.keystore')
32-
cordapp_signing_password = getProperty('jar.sign.password')
30+
cordapp_signing_keystore = findProperty('onixlabs.production.jarsign.keystore') ?: getProperty('onixlabs.development.jarsign.keystore')
31+
cordapp_signing_password = findProperty('onixlabs.production.jarsign.password') ?: getProperty('onixlabs.development.jarsign.password')
3332
}
3433

3534
repositories {
@@ -47,7 +46,7 @@ buildscript {
4746
}
4847

4948
group 'io.onixlabs'
50-
version '1.0.0-rc9'
49+
version '1.0.0'
5150

5251
subprojects {
5352
repositories {

gradle.properties

+8-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
kotlin.code.style=official
1+
name=onixlabs-corda-bnms
2+
group=io.onixlabs
3+
4+
kotlin.incremental=false
5+
kotlin.code.style=official
6+
7+
onixlabs.development.jarsign.keystore=../lib/onixlabs.development.pkcs12
8+
onixlabs.development.jarsign.password=5891f47942424d2acbe108691fdb5ba258712fca7e4762be4327241ebf3dbfa3

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/Extensions.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/Network.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/NetworkState.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/Permission.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/Role.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/Setting.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/membership/Extensions.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/membership/Membership.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/membership/MembershipAttestation.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/membership/MembershipAttestationContract.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/membership/MembershipAttestationSchema.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/membership/MembershipContract.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/membership/MembershipSchema.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
1+
/*
2+
* Copyright 2020-2021 ONIXLabs
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)