This package has been deprecated

Author message:

Hyperledger Composer has been deprecated. Please see the README for more details: https://github.com/hyperledger/composer/blob/master/README.md

pii-network

0.2.5 • Public • Published

Personally Identifiable Information Network

A business network where members can grant/revoke access to their personal information to other members.

This business network defines:

Participant Member

Transaction AuthorizeAccess RevokeAccess

To test this Business Network Definition in the Test tab:

Create two Member participants:

{
  "$class": "org.acme.pii.Member",
  "email": "memberA@acme.org",
  "firstName": "Billy",
  "lastName": "Thompson"
}
{
  "$class": "org.acme.pii.Member",
  "email": "memberB@acme.org",
  "firstName": "Jenny",
  "lastName": "Jones"
}

Submit a AuthorizeAccess transaction:

{
  "$class": "org.acme.pii.AuthorizeAccess",
  "memberId": "org.acme.pii.Member#memberA@acme.org"
}

This AuthorizeAccess allowed memberA@acme.org permission to view personal information of other members.

Submit a RevokeAccess transaction:

{
  "$class": "org.acme.pii.RevokeAccess",
  "memberId": "org.acme.pii.Member#memberB@acme.org"
}

This RevokeAccess revoked memberB@acme.org permission to view personal information of other members.

Congratulations!

License

Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Hyperledger Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.

Package Sidebar

Install

npm i pii-network

Weekly Downloads

3

Version

0.2.5

License

Apache-2.0

Unpacked Size

44.8 kB

Total Files

16

Last publish

Collaborators

  • hyperledger-ci