Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

digitalproperty-network

Package Overview
Dependencies
1
Maintainers
3
Versions
185
Issues
File Explorer

Advanced tools

digitalproperty-network

Digital Property Network

    0.2.5latest

Version published
Maintainers
3
Yearly downloads
5,623
increased by2.46%

Weekly downloads

Changelog

Source

v0.2.5

Fixes for #175 #176 and #177 🚑

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

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc