プロパティ
Inscriptions may include CBOR properties, stored as data pushes in fields with tag 17. Since data pushes are limited to 520 bytes, CBOR longer than 520 bytes must be split into multiple tag 17 fields which are then concatenated before decoding.
Properties are a structured counterpart to metadata. While metadata may contain arbitrary CBOR which has no protocol-defined meaning, and is presented on /inscription as free-form HTML, properties have protocol-defined meaning and must conform to a strict schema.
Indefinite-length CBOR types are not supported in properties. All maps, arrays, byte strings, and text strings must be definite.
プロパティ値の非規範的なCDDLスキーマは以下の通りです:
Properties = {
? 0: [*Item],
? 1: Attributes,
* any => any,
}
Item = {
? 0: bytes .size (32..36),
? 1: Attributes,
* any => any,
}
Attributes = {
? 0: text, ; title
* any => any,
}
上記のCDDLスキーマは便宜上提供されています。いつものように、オーディナルズのリファレンス実装であるordがInscriptionの規範的仕様であり、したがってプロパティフィールドの仕様でもあります。
Fields matching the * any => any wildcard must be accepted but ignored, for compatibility with future additions.
ギャラリー
Inscriptions whose properties field contains Items are galleries.
Galleries contain Items, whose key 0 contains a serialized inscription ID. Inscription ID TXIDiINDEX is serialized as a byte string containing the 32 byte TXID, concatenated with by the four-byte little-endian INDEX. Trailing zeros may be removed from four-byte INDEX, so IDs ending in i0 may be serialized in 32 bytes.
ギャラリーアイテムは、エクスプローラーのInscriptionの/inscriptionページに表示されます。
ギャラリーは、Inscriptionのコレクションを作成する方法を提供するという点で子要素に似ています。ただし、ギャラリーはパーミッションレスです。誰でも任意のInscriptionを含むギャラリーを作成できます。したがって、ギャラリーに含まれることは出所を意味しません。さらに、このため、ギャラリーに含まれてもギャラリーアイテムの/inscriptionページからギャラリーへのバックリンクは作成されません。
ギャラリーは、ord wallet batchでバッチInscriptionを行う際に、バッチファイルのInscriptionエントリのgalleryキーの下に文字列Inscription IDの配列を含めることで作成できます。また、ord wallet inscribeで--galleryオプションを使用することでも作成できます。
Attributes
Attributes are structured metadata that may be attached to both inscriptions and gallery items.