<p>I think the <a href="https://github.com/input-output-hk/cardano-ledger/blob/master/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L111-L114" rel="nofollow noreferrer">explanation follows</a> after the canonical encoding description</p>
<pre><code>; For PlutusV1 (language id 0), the script integrity data is a cost_model.
; This is the value of the costmdls map at key 0.
</code></pre>
<p>Looks like you need to encode cost-model map as language-views key <code>0</code> according to <a href="https://github.com/input-output-hk/cardano-ledger/blob/master/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L100-L109" rel="nofollow noreferrer">canonical encoding</a>.</p>

CC BY-SA 4.0
2021-12-03T13:15:36.463Z
2021-12-03T13:15:36.463Z
sorki
<p>I read the docs for <code>language views</code> here, but I still don't quite understand what they are: <a href="https://github.com/input-output-hk/cardano-ledger-specs/blob/master/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L97" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-ledger-specs/blob/master/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L97</a></p>
<p>For the Spacebudz marketplace, Alessandro requires this to be set and I'm not sure if it we need to change it for our own dApp: <a href="https://github.com/Berry-Pool/spacebudz/blob/main/src/cardano/market/languageViews.js" rel="nofollow noreferrer">https://github.com/Berry-Pool/spacebudz/blob/main/src/cardano/market/languageViews.js</a></p>

<plutus><nami-wallet>
What exactly are language views?
# What exactly are language views?

(Asked by: username_0 on 2021-10-31)

I read the docs for `language views` here, but I still don't quite understand what they are: <https://github.com/input-output-hk/cardano-ledger-specs/blob/master/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L97>

For the Spacebudz marketplace, Alessandro requires this to be set and I'm not sure if it we need to change it for our own dApp: <https://github.com/Berry-Pool/spacebudz/blob/main/src/cardano/market/languageViews.js>

**Tags:** plutus, nami-wallet

---

## 1 answers

### Answer by username_1 on 2021-12-03. Score: 1 | Accepted answer

I think the explanation follows after the canonical encoding description
; For PlutusV1 (language id 0), the script integrity data is a cost_model.
; This is the value of the costmdls map at key 0.

Looks like you need to encode cost-model map as language-views key 0 according to canonical encoding.


---

