LockerLinkSlot locker.link-slot@1

Generated at from openvibe-contracts v0.419.0 and openvibe-sdk v0.161.0.

Version
1.0.0
Owner
network
Visibility
public
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/locker/link-slot.v1.json

locker.link-slot@1: a link lock stores no key. The content key travels in the part of the link after the #, which browsers never send to us, so this slot is empty on purpose and the envelope says only that the key is somewhere else.

Fields

This schema has no named fields.

Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

Valid: example
{}
Rejected: stored-key
{
  "key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('locker.link-slot@1', value);   // { valid, errors: [{ path, message }] }