Initializes a new instance of the PoolMetadata class.
The URL where the actual metadata file is hosted.
Hash of the metadata.
Private
#hashPrivate
#originalPrivate
#urlGets the pool metadata file hash.
Hash of the metadata.
Sets the pool metadata file hash.
Hash of the metadata.
Creates a Core PoolMetadataJson object from the current PoolMetadata object.
The Core PoolMetadataJson object.
Static
fromDeserializes the PoolMetadata from a CBOR byte array.
The new PoolMetadata instance.
The CBOR encoded PoolMetadata object.
Static
fromCreates a PoolMetadataJson object from the given Core PoolMetadataJson object.
core PoolMetadataJson object.
Generated using TypeDoc
The pool registration certificate can include a way to locate pool metadata. This includes the hash of the metadata. This is not the metadata itself but a unique identifier that corresponds to the metadata. The hash function ensures that even a small change in the metadata leads to a completely different hash, securing the authenticity of the data.
Along with the hash of the metadata, the URL where the actual metadata file (in JSON format) is hosted is also included in the certificate. The combination of the URL and the hash allows wallets and other services to download the metadata file and verify it against the hash.