Initializes a new instance of the Constitution class.
A link to the off change constitution content.
Optional
scriptHash: Hash28ByteBase16The hash of constitution script.
Private
#anchorPrivate
#originalPrivate
#scriptGets the anchor to the constitution contents.
The anchor object.
Gets the hash of the script that enforces the constitution on chain.
the script hash.
Sets the anchor to the constitution contents.
The anchor object.
Sets the hash of the constitution script.
The script hash.
Creates a Core Constitution object from the current Constitution object.
The Core Constitution object.
Static
fromDeserializes the Constitution from a CBOR byte array.
The new Constitution instance.
The CBOR encoded Constitution object.
Static
fromCreates a Constitution object from the given Core Constitution object.
core Constitution object.
Generated using TypeDoc
The Cardano Constitution is a text document that defines Cardano's shared values and guiding principles. At this stage, the Constitution is an informational document that unambiguously captures the core values of Cardano and acts to ensure its long-term sustainability. At a later stage, we can imagine the Constitution perhaps evolving into a smart-contract based set of rules that drives the entire governance framework.
For now, however, the Constitution will remain an off-chain document whose hash digest value will be recorded on-chain.