SyloDataVerification
The Sylo Data Verification pallet provides functionality for registering resolvers and verifying data through validation records. It allows users to create, update, and delete validation records that can be used to verify the authenticity and integrity of data.
Calls
setPaymentAsset
Set the asset used to pay for sylo extrinsics.
This operation requires root access.
Namespace
Type
setSyloResolverMethod
Set the string used as the reserved sylo resolver method.
This operation requires root access.
Namespace
Type
registerResolver
Register a new resolver.
The caller will be set as the controller of the resolver.
Namespace
Type
updateResolver
Update the service endpoints of an existing resolver.
Caller must be the controller of the resolver.
Namespace
Type
deregisterResolver
Deregister an existing resolver.
Caller must be the controller of the resolver.
Namespace
Type
createValidationRecord
Create a new validation record.
The caller will be set as the record’s author.
For any specified resolvers which use the reserved sylo resolver method, those resolvers must already be registered and exist in storage.
The initial record entry will use the current system block for the block value.
Namespace
Type
addValidationRecordEntry
Add a new entry to an existing validation record.
The current block will be used as the entry’s block number.
Caller must be the author of the record.
Namespace
Type
updateValidationRecord
Update a validation record’s fields. The call takes in an Option value for the fields: resolvers, data_type, and tags.
Setting those fields to Some value will update the field in storage, whilst setting to None will be a no-op.
Caller must be the author of the record.
Namespace
Type
deleteValidationRecord
Delete an existing validation record.
Caller must be the author of the record.
Namespace
Type
Storage
SyloAssetId
The asset used to pay for sylo extrinsics.
Namespace
Type
SyloResolverMethod
The string reserved for the method used by sylo resolvers.
Namespace
Type
Resolvers
Map from resolver identifier to resolver information.
Namespace
Type
ValidationRecords
Map from account and data identifier to validation record information.
Namespace
Type
Events
PaymentAssetSet
The asset used for extrinsics has been set.
Namespace
Type
SyloResolverMethodSet
The string reserved for the method used by sylo resolvers has been set.
Namespace
Type
ResolverRegistered
A new resolver has been registered and set in storage.
Namespace
Type
ResolverUpdated
An existing resolver has had its service endpoints updated.
Namespace
Type
ResolverDeregistered
An existing resolver has been deregistered and removed from storage.
Namespace
Type
ValidationRecordCreated
A new validation record has been created and set in storage.
Namespace
Type
ValidationEntryAdded
An entry of an existing validation record has been added.
Namespace
Type
ValidationRecordUpdated
An existing validation record has had its fields updated.
Namespace
Type
ValidationRecordDeleted
An existing validation record has been deleted and removed from storage.
Namespace
Type
Errors
ResolverAlreadyRegistered
The Resolver identifier is already in use.
Namespace
ResolverNotRegistered
The Resolver has not been registered.
Namespace
NotController
Account is not controller of resolver.
Namespace
RecordAlreadyCreated
A validation record with the given data id has already been created.
Namespace
NoValidationRecord
The validation record to be updated has not been created.
Namespace
Constants
MaxResolvers
The maximum number of resolvers in a validation record.
Namespace
Type
MaxTags
The maximum number of tags in a validation record.
Namespace
Type
MaxEntries
The maximum number of validation entries in a record.
Namespace
Type
MaxServiceEndpoints
The maximum number of service endpoints for a registered resolver.
Namespace
Type
StringLimit
The max length of strings used within the Sylo Pallet.
Namespace
Type