You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2020. It is now read-only.
This transaction adds Alice to the array of parties in the `approval` field of the `LetterOfCredit` asset.
140
140
141
141
---
142
142
143
-
Use the ID registry to select Ella to be your identity.
143
+
Use the ID registry to select Ella to be your identity.
144
+
145
+
**NOTE:** Alice doesn't have permission to see Ella and therefore you must switch via admin first.
144
146
145
147
Ella works at Bob's bank. Review the letter of credit by selecting the `LetterOfCredit` asset. Ella decides that the letter of credit is acceptable to her bank and that she will approve the request.
146
148
147
-
Approve the letter by submitting an `ApproveTransaction`:
149
+
Approve the letter by submitting an `Approve` transaction:
@@ -162,26 +164,26 @@ Use the ID registry to select Bob to be your identity.
162
164
163
165
Bob reviews the letter of credit to ensure that it matches with his and Alice's agreement. He notices that the rules don't quite match the agreement however he still decides to accept the letter of credit and go through with the deal.
164
166
165
-
Approve the letter by submitting an `ApproveTransaction`:
167
+
Approve the letter by submitting an `Approve` transaction:
This transaction adds Bob to the array of parties in the `approval` field of the `LetterOfCredit` asset. As now all the parties have submitted their approval the `status` field is also updated to be `APPROVED`. At this point no participant may reject or suggest changes to the letter. Further participants (e.g. other bank employees) are also blocked from adding their approval.
176
178
177
-
Bob manufactures the computers and gives ships them. He updates the `LetterOfCredit` asset to add proof that he has shipped the goods.
179
+
Bob manufactures the computers and ships them. He updates the `LetterOfCredit` asset to add proof that he has shipped the goods.
This transaction updates the `status` of the letter to be `CLOSED`. The letter is now complete and no further transactions can take place.
242
246
243
-
This business network has been used to create demo application that simulate the scenario above. You can find more detail on these at https://github.com/hyperledger/composer-sample-applications/tree/master/packages/letters-of-credit
247
+
This business network has been used to create demo application that simulate the scenario above. You can find more detail on these at https://github.com/hyperledger/composer-sample-applications/tree/master/packages/letters-of-credit
248
+
249
+
## License <aname="license"></a>
250
+
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/.
0 commit comments