Skip to content

Commit 42406e4

Browse files
committed
Agumented the Referencing published Fact Statement in Consumer dApps
1 parent 18185ba commit 42406e4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,3 +1100,16 @@ contains the [Fact Statement minting
11001100
policy](coop-docs/02-plutus-protocol.md#fs-policy) script which is the `Currency
11011101
Symbol` the consuming dApps use to assert the authenticity and provenance of the
11021102
referenced [Fact Statement UTxOs](coop-docs/02-plutus-protocol.md#fs-validator).
1103+
1104+
An example Consumer [validator script](coop-plutus/src/Coop/Plutus:L594-L608)
1105+
was provided to demonstrate how to authenticate [Fact Statement
1106+
UTxOs](coop-docs/02-plutus-protocol.md#fs-validator) on-chain. The script
1107+
performs a simple assertion on the
1108+
[Value](https://github.com/input-output-hk/plutus/blob/c3918d6027a9a34b6f72a6e4c7bf2e5350e6467e/plutus-ledger-api/src/PlutusLedgerApi/V1/Value.hs#L185)
1109+
a referenced UTxO to make sure it contains a
1110+
[CurrencySymbol](https://github.com/input-output-hk/plutus/blob/c3918d6027a9a34b6f72a6e4c7bf2e5350e6467e/plutus-ledger-api/src/PlutusLedgerApi/V1/Value.hs#L79)
1111+
of the [$FS](coop-docs/02-plutus-protocol.md#fs-token) tokens it trusts
1112+
1113+
The second part of the script demonstrates how to parse a [Plutus
1114+
JSON](coop-docs/05-json-plutus.md) [Fact
1115+
Statement](coop-plutus/resources/sample.json).

0 commit comments

Comments
 (0)