Skip to content

Commit 4ad35ae

Browse files
Merge pull request #58 from Concordium/cis2-clarifications
Cis2 clarifications
2 parents 7f759eb + 88d0b26 commit 4ad35ae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source/CIS/cis-2.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "S
3838
General types and serialization
3939
-------------------------------
4040

41+
.. note::
42+
43+
Integers are encoded in little-endian unless stated otherwise.
44+
4145
.. _CIS-2-TokenID:
4246

4347
``TokenID``
@@ -158,7 +162,7 @@ It is serialized as: the first 2 bytes encode the length (``n``) of the data, fo
158162

159163
A URL and optional checksum for metadata stored outside of this contract.
160164

161-
It is serialized as: 2 bytes for the length of the metadata url (``n``) and then this many bytes for the url to the metadata (``url``) followed by an optional checksum.
165+
It is serialized as: 2 bytes for the length of the metadata URL (``n``) and then this many bytes for the URL to the metadata (``url``) (UTF-8 encoded) followed by an optional checksum.
162166
The checksum is serialized by 1 byte to indicate whether a hash of the metadata is included, if its value is 0, then no content hash, if the value is 1 then 32 bytes for a SHA256 hash (``hash``) follows::
163167

164168
MetadataChecksum ::= (0: Byte)

0 commit comments

Comments
 (0)