Skip to main content

Messages

RegisterNotaryInfo

The caller of this message is considered the Admin of the NotaryInfo and will be returned the NotaryInfoId for future reference. This message now accepts:

  • NotaryInfo: Basic information about the notary configuration
  • CallerRouteAndAdditionalReq: Optional route for verifying caller credentials
  • AssetRouteAndAdditionalReq: Optional route for verifying asset data
  • AssetTypeId: Identifier for the type of assets this notary info handles

Both routes are validated against the VCV module during registration to ensure they exist and are accessible.

UpdateVerifierRoutes

The caller of this message must be the Admin of the NotaryInfo and can update the verification routes for the NotaryInfoId. This replaces the previous separate update mechanisms and allows updating:

  • CallerRouteAndAdditionalReq: Route for caller verification (nil-safe - only updates if provided)
  • AssetRouteAndAdditionalReq: Route for asset verification (nil-safe - only updates if provided)

Routes are only updated when explicitly provided (not nil), allowing selective updates of either caller or asset routes.

UpdateAdmin

The caller of this message must be the Admin of the NotaryInfo and will update the Admin for the NotaryInfoId.

RemoveNotaryInfo

The caller of this message must be the Admin of the NotaryInfo and will remove the NotaryInfo for the NotaryInfoId. This removes the entire NotaryInfo configuration including any associated routes. Future calls to notarise data for this NotaryInfoId will fail.

Notarise

This allows users to provide verifiable data, which will be processed through the configured verification routes:

  1. Caller Verification: If a caller route is configured, the caller's credentials are verified via the VCV module
  2. Asset Verification: If an asset route is configured, the asset data is verified via the VCV module
  3. Asset ID Calculation: The asset identifier is calculated as the SHA hash of the input asset data
  4. Additional Requirements: The calculated asset ID is expected to be included in the route's additional requirements

The user must provide the NotaryInfoId and the asset data to be notarised.