Socket
Socket
Sign inDemoInstall

digitalproperty-network

Package Overview
Dependencies
1
Maintainers
3
Versions
185
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

digitalproperty-network

Digital Property Network


Version published
Maintainers
3
Weekly downloads
100
increased by334.78%
Install size
43.6 kB

Weekly downloads

Readme

Source

Digital Property Network

This Defines a business network where house sellers can list their properties for sale.

This business network defines:

Participant Person

Assets LandTitle SalesAgreement

Transaction RegisterPropertyForSale

A Person is responsible for a LandTitle. By creating a SalesAgreement between two Person participants you are then able to submit a RegisterPropertyForSale transaction.

To test this Business Network Definition in the Test tab:

Create two Person participants:

{
  "$class": "net.biz.digitalPropertyNetwork.Person",
  "personId": "personId:Billy",
  "firstName": "Billy",
  "lastName": "Thompson"
}
{
  "$class": "net.biz.digitalPropertyNetwork.Person",
  "personId": "personId:Jenny",
  "firstName": "Jenny",
  "lastName": "Jones"
}

Create a LandTitle asset:

{
  "$class": "net.biz.digitalPropertyNetwork.LandTitle",
  "titleId": "titleId:ABCD",
  "owner": "resource:net.biz.digitalPropertyNetwork.Person#personId:Billy",
  "information": "Detached House"
}

Create a SalesAgreement asset:

{
  "$class": "net.biz.digitalPropertyNetwork.SalesAgreement",
  "salesId": "salesId:1234",
  "buyer": "resource:net.biz.digitalPropertyNetwork.Person#personId:Jenny",
  "seller": "resource:net.biz.digitalPropertyNetwork.Person#personId:Billy",
  "title": "resource:net.biz.digitalPropertyNetwork.LandTitle#titleId:ABCD"
}

Submit a RegisterPropertyForSale transaction:

{
  "$class": "net.biz.digitalPropertyNetwork.RegisterPropertyForSale",
  "seller": "resource:net.biz.digitalPropertyNetwork.Person#personId:Billy",
  "title": "resource:net.biz.digitalPropertyNetwork.LandTitle#titleId:ABCD"
}

This RegisterPropertyForSale transaction will update titleId:ABCD LandTitle asset to forSale.

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

Keywords

FAQs

Last updated on 30 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc