Comments (1)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dct.