Skip to main content
Choose a schema by its exact namespace. Contract XML, token creation XML, and embedded state-machine XML use different namespaces, even when they appear in one file. For specifications and further reference, see the Neuro Foundation documentation. For expressions inside contracts and state machines, see the original Script reference.

Download the contract authoring schema set

Validate a complete document

Use the XML validation guide to load all eight dependencies into your XML validator and check a complete document offline. Check state, action, and event references as a separate step. XML validation does not establish Script behavior, signature validity, provider approval, or live execution. The schema manifest records exact revisions, SHA-256 checksums, and dependencies. Download the original publisher files above and compare their checksums. Consult the publisher’s terms before redistributing their files.

Understand the dependencies

The contract schema imports identity, key, and XML attribute definitions. Identity imports key definitions; the key schema imports peer-address types. These imports do not all contain file locations. Associate every namespace above with its local file in your validator; opening one XSD in isolation is insufficient. The XML-attribute dependency uses the W3C XML schema. Load it alongside the other schema dependencies.

Match the namespace to your service

This set uses urn:nf:iot:leg:sc:1.0. Other published material includes urn:nfi:iot:leg:sc:1.0 and older urn:ieee:iot:leg:sc:1.0 interfaces. They are distinct identifiers. Ask your provider which set its supported build accepts before submitting a template. Local compilation of this set has been checked. Compatibility with your Neuron and approval of a particular template require separate verification.

Additional LegalLab example schemas

Twelve gallery files also use one or more of these dependencies. The optional example set combines these five XSDs with the eight base schemas; all 42 pinned gallery files pass its local XML checks. Add these five schemas to the same local schema set as the eight base files, using the exact namespace-to-file associations above. The additional dependency manifest pins the original bytes. The organization schema imports Layout2D. Its namespace remains http://waher.se/Schema/Layout2D.xsd even though the file downloads over HTTPS. Never change a namespace merely to match the download protocol.

Continue authoring