Git Product home page Git Product logo

Comments (1)

yoursunny avatar yoursunny commented on July 4, 2024

I tested schemaCompile v5.1.0-1-gab45368 with the following schema:

_site: "a"/"blog"
root: _site/_KEY
article: _site/"article"/category/year/month <= author
admin: _site/"admin"/adminName/_KEY <= root
author: _site/_role/authorName/_KEY & { _role: "author" } <= admin
_KEY: "KEY"/_/_/_

The debug output (with two -v flags) is:

VerSec Schema Compiler Copyright (C) 2020 Pollere Inc., v5.1.0-1-gab45368
Certificate templates:

0 strings, 0 bytes (0 overlaps, 0 bytes in stab)
binary schema  is 20 bytes

Changing article to #article, and then the debug output becomes:

VerSec Schema Compiler Copyright (C) 2020 Pollere Inc., v5.1.0-1-gab45368
Publication #article:
  parameters: category year month
  tags: /"a"/"blog"/"article"/category/year/month
  signing chains:
    chain 0: #article <= author <= admin <= root
  templates:
    /"a"/"blog"/"article"/category/year/month { author }
      [ * ]

Certificate templates:
  cert author: /"a"/"blog"/_role/authorName/"KEY"/_/_/_
  cert admin: /"a"/"blog"/"admin"/adminName/"KEY"/_/_/_
  cert root: /"a"/"blog"/"KEY"/_/_/_

12 strings, 69 bytes (3 overlaps, 56 bytes in stab)
binary schema  is 165 bytes

Changing author to #author (in two places), and the compiler crashes.

Based on the above observations:

  • foo denotes a certificate template.
  • #foo denotes a publication.

from dct.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.