Skip to content

Commit 30743ba

Browse files
authored
Update array serialisation format (#1092)
1 parent 43dea7f commit 30743ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CIP-0138/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ We add the following builtin functions:
6363
As with all Plutus Core builtin types, arrays must have a fixed binary representation.
6464

6565
For arrays, this representation will be based on the one currently implemented in the [flat][8] encoding
66-
for the [Haskell `Array` type][9].
66+
for the [Haskell `List` type][9]. Plutus Core arrays must be converted to lists before being serialised,
67+
and deserialisation is performed by using the flat decoder for lists and converting the result to an array.
6768

6869
## Rationale: how does this CIP achieve its goals?
6970

@@ -205,4 +206,4 @@ This CIP is licensed under [CC-BY-4.0](https://creativecommons.org/licenses/by/4
205206
[6]: https://github.com/IntersectMBO/cardano-ledger "cardano-ledger"
206207
[7]: https://github.com/IntersectMBO/cardano-node "cardano-node"
207208
[8]: https://hackage.haskell.org/package/flat "flat"
208-
[9]: https://hackage.haskell.org/package/array-0.5.4.0/docs/Data-Array.html#t:Array "Haskell Array"
209+
[9]: https://hackage.haskell.org/package/base-4.21.0.0/docs/Data-List.html "Haskell List"

0 commit comments

Comments
 (0)