Skip to content

Commit

Permalink
Merge pull request #7 from onix-labs/main
Browse files Browse the repository at this point in the history
Main
  • Loading branch information
MrMatthewLayton authored Jun 21, 2021
2 parents 81fc061 + 2c8da85 commit 1f9e1fd
Show file tree
Hide file tree
Showing 114 changed files with 376 additions and 374 deletions.
13 changes: 13 additions & 0 deletions HEADER
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2020-2021 ONIXLabs

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
29 changes: 28 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,31 @@
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
15 changes: 0 additions & 15 deletions LICENSE-BOILERPLATE

This file was deleted.

39 changes: 5 additions & 34 deletions readme.md → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ The ONIXLabs Corda BNMS (Business Network Management System) is a framework desi

## Prerequisites

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.
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.

## Design Goals

### Business Network Interoperability

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.
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.

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.

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.
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.

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.

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

### Data Privacy

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.
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.

### Dynamic Smart Contract Execution

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

## Membership Management

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.
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.

### Membership Issuance

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

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.

### Membership Discovery

INSERT TEXT HERE

## Relationship Management

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.
Expand Down Expand Up @@ -109,28 +105,3 @@ Membership attestation amendment can only be performed by the attestor. This rep
### Membership Attestation Revocation

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.


# Local setup

## How to publish to local maven repo
- With tests
- `./gradlew releaseLocal`
- Without tests
- `./gradlew clean build -x test publishToMavenLocal`

## How to delete local maven repo
- `rm -rf ~/.m2/repository/io/onixlabs`

## How to setup to publish to maven repo
- [Create a GitHub Personal Access Token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)
- 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)
- Add the following to your `~/.gradle/gradle.properties` file, replacing `GITHUB_USERNAME` and `GITHUB_ACCESS_KEY`
> Note this file is in your home directory - not the root of the repo
```
gpr.user=GITHUB_USERNAME
gpr.key=GITHUB_ACCESS_KEY
```
## Publish a new version
- Update the version name in the root `build.gradle` file
- Run `./gradlew publish`
9 changes: 4 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
kotlin_group = 'org.jetbrains.kotlin'
kotlin_version = '1.2.71'

corda_artifactory_url = 'https://ci-artifactory.corda.r3cev.com/artifactory'
corda_artifactory_url = 'https://software.r3.com/artifactory'
corda_group = 'net.corda'
corda_release_version = '4.6'

Expand All @@ -18,7 +18,6 @@ buildscript {
onixlabs_corda_idfx_release_version = '2.0.0-rc2'

cordapp_platform_version = 8
cordapp_signing_enabled = true
cordapp_contract_name = 'ONIXLabs Corda BNMS Contract'
cordapp_workflow_name = 'ONIXLabs Corda BNMS Workflow'
cordapp_vendor_name = 'ONIXLabs'
Expand All @@ -28,8 +27,8 @@ buildscript {
cordapp_signing_enabled = true
cordapp_signing_alias = 'cordapp-signer'
cordapp_signing_storetype = 'PKCS12'
cordapp_signing_keystore = getProperty('jar.sign.keystore')
cordapp_signing_password = getProperty('jar.sign.password')
cordapp_signing_keystore = findProperty('onixlabs.production.jarsign.keystore') ?: getProperty('onixlabs.development.jarsign.keystore')
cordapp_signing_password = findProperty('onixlabs.production.jarsign.password') ?: getProperty('onixlabs.development.jarsign.password')
}

repositories {
Expand All @@ -47,7 +46,7 @@ buildscript {
}

group 'io.onixlabs'
version '1.0.0-rc9'
version '1.0.0'

subprojects {
repositories {
Expand Down
9 changes: 8 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
kotlin.code.style=official
name=onixlabs-corda-bnms
group=io.onixlabs

kotlin.incremental=false
kotlin.code.style=official

onixlabs.development.jarsign.keystore=../lib/onixlabs.development.pkcs12
onixlabs.development.jarsign.password=5891f47942424d2acbe108691fdb5ba258712fca7e4762be4327241ebf3dbfa3
Binary file added lib/onixlabs.development.jks
Binary file not shown.
Binary file added lib/onixlabs.development.pkcs12
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2020 Matthew Layton
/*
* Copyright 2020-2021 ONIXLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Loading

0 comments on commit 1f9e1fd

Please sign in to comment.