Skip to content

Validation rules

cleanerm5 edited this page Feb 16, 2022 · 1 revision

Validation rules applied on file level

  • is valid json
  • filesize <= 380000 bytes
  • has subject
  • has name
  • has description

Validation rules applied on property level

Subject

  • is hex
  • is not empty
  • if policyId is given must start with policyid

Per property in general

  • has value
  • has sequenceNumber
  • if has signatures ** has vkey ** has signature ** signature is valid

ticker

  • 0<=length(ticker)<10

Name

  • length < 256

decimals

  • 0 <= 2^32-1

url

  • length < 256
  • is url (starting with http, https, ipfs whatever)