Skip to content

Commit

Permalink
Fix ReSpec crash with cross-references to VCDM v2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Jun 2, 2024
1 parent e2434e4 commit ebec677
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 144 deletions.
136 changes: 0 additions & 136 deletions common.js
Original file line number Diff line number Diff line change
@@ -1,145 +1,9 @@
/* globals omitTerms, respecConfig, $, require */
/* exported linkCrossReferences, restrictReferences, fixIncludes */

var vcwg = {
// Add as the respecConfig localBiblio variable
// Extend or override global respec references
localBiblio: {
"REST": {
title: "Architectural Styles and the Design of Network-based Software Architectures",
date: "2000",
href: "http://www.ics.uci.edu/~fielding/pubs/dissertation/",
authors: [
"Fielding, Roy Thomas"
],
publisher: "University of California, Irvine."
},
"VC-EXTENSION-REGISTRY": {
title: "Verifiable Credentials Extension Registry",
href: "https://w3c-ccg.github.io/vc-extension-registry/",
authors: [
"Manu Sporny"
],
status: "CG-DRAFT",
publisher: "Credentials Community Group"
},
"STRING-META": {
title: "Strings on the Web: Language and Direction Metadata",
href: "https://www.w3.org/TR/string-meta/",
authors: [
"Addison Phillips",
"Richard Ishida"
],
status: "WD",
publisher: "Internationalization Working Group"
},
"LD-PROOFS": {
title: "Linked Data Proofs",
href: "https://w3c-ccg.github.io/ld-proofs/",
authors: [
"Manu Sporny",
"Dave Longley"
],
status: "CG-DRAFT",
publisher: "Credentials Community Group"
},
"LDP-REGISTRY": {
title: "Linked Data Cryptographic Suite Registry",
href: "https://w3c-ccg.github.io/ld-cryptosuite-registry/",
authors: [
"Manu Sporny",
"Drummond Reed",
"Orie Steele"
],
status: "CG-DRAFT",
publisher: "Credentials Community Group"
},
"CL-SIGNATURES": {
title: "A Signature Scheme with Efficient Protocols",
href: "https://www.researchgate.net/publication/220922101_A_Signature_Scheme_with_Efficient_Protocols",
authors: [
"Jan Camenisch",
"Anna Lysyanskaya"
],
status: "Peer Reviewed Paper",
publisher: "IBM Research"
},
// aliases to known references
"HTTP-SIGNATURES": {
aliasOf: "http-signatures"
},
"MACAROONS": {
title: 'Macaroons',
// TODO: create spec
href: 'http://macaroons.io/',
authors: ['Arnar Birgisson', 'Joe Gibbs Politz', 'Úlfar Erlingsson',
'Ankur Taly', 'Michael Vrable', 'Mark Lentczner'],
status: 'unofficial',
publisher: 'Credentials Community Group'
},
'OPEN-BADGES': {
title: 'Open Badges',
href: 'https://github.com/openbadges/openbadges-specification',
authors: ['Brian Brennan', 'Mike Larsson', 'Chris McAvoy',
'Nate Otto', 'Kerri Lemoie'],
status: 'BA-DRAFT',
publisher: 'Badge Alliance Standard Working Group'
},
'RDF-NORMALIZATION': {
title: 'RDF Dataset Normalization',
href: 'http://json-ld.github.io/normalization/spec/',
authors: ['Dave Longley', 'Manu Sporny'],
status: 'CG-DRAFT',
publisher: 'Credentials W3C Community Group'
},
'DEMOGRAPHICS': {
title: 'Simple Demographics Often Identify People Uniquely',
href: 'http://dataprivacylab.org/projects/identifiability/paper1.pdf',
authors: ['Latanya Sweeney'],
publisher: 'Data Privacy Lab'
},
'VC-IMP-GUIDE': {
title: 'Verifiable Credentials Implementation Guidelines 1.0',
href: 'https://w3c.github.io/vc-imp-guide/',
authors: ['Andrei Sambra', 'Manu Sporny'],
status: 'ED',
publisher: 'Credentials Community Group'
},
'HASHLINK': {
title: 'Cryptographic Hyperlinks',
href: 'https://datatracker.ietf.org/doc/draft-sporny-hashlink/',
authors: ['Manu Sporny'],
status: 'Internet-Draft',
publisher: 'Internet Engineering Task Force (IETF)'
},
'IPFS': {
title: 'InterPlanetary File System (IPFS)',
href: 'https://en.wikipedia.org/wiki/InterPlanetary_File_System',
publisher: 'Wikipedia'
},
'JSON-SCHEMA-2018': {
title: 'JSON Schema: A Media Type for Describing JSON Documents',
href: 'https://datatracker.ietf.org/doc/draft-handrews-json-schema/',
authors: ['Austin Wright', 'Henry Andrews'],
status: 'Internet-Draft',
publisher: 'Internet Engineering Task Force (IETF)'
},
'JSON-LD': {
title: 'JSON-LD 1.1: A JSON-based Serialization for Linked Data',
href: 'https://www.w3.org/TR/json-ld11/',
authors: ['Gregg Kellogg', 'Manu Sporny', 'Dave Longley', 'Markus Lanthaler', 'Pierre-Antoine Champin', 'Niklas Lindström'],
status: 'WD',
publisher: 'W3C JSON-LD 1.1 Working Group'
}
}
};
require(["core/pubsubhub"], (respecEvents) => {
"use strict";

console.log("RESPEC EVENTS", respecEvents);

respecEvents.sub('end-all', (message) => {
console.log("END EVENT", message);
// remove data-cite on where the citation is to ourselves.
const selfDfns = document.querySelectorAll("dfn[data-cite^='" + respecConfig.shortName.toUpperCase() + "#']");
for (const dfn of selfDfns) {
Expand Down
13 changes: 5 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1035,8 +1035,7 @@ <h2>Assertion</h2>
<p>
The `assertionMethod` [=verification relationship=] is used to
specify how the [=controller=] is expected to express claims, such as for
the purposes of issuing a
<a data-cite="?VC-DATA-MODEL-2.0#dfn-verifiable-credential">verifiable credential</a>.
the purposes of issuing a verifiable credential.
</p>

<dl>
Expand All @@ -1051,8 +1050,7 @@ <h2>Assertion</h2>

<p>
This property is useful, for example, during the processing of a
<a data-cite="?VC-DATA-MODEL-2.0#dfn-verifiable-credential">verifiable credential</a>
by a verifier.
verifiable credential by a verifier.
<!-- VC-DATA-INTEGRITY-SPECIFIC:
During verification, a verifier checks to see if a
[=verifiable credential=] contains a proof created by the [=controller=]
Expand Down Expand Up @@ -1570,8 +1568,7 @@ <h2>Contexts and Vocabularies</h2>
</p>
<p>
Some applications, such as digital wallets, that are capable of holding arbitrary
<a data-cite="?VC-DATA-MODEL-2.0#dfn-verifiable-credential">verifiable credentials</a>
or other data-integrity-protected documents, from
verifiable credentials or other data-integrity-protected documents, from
any issuer and using any contexts, might need to be able to load externally
linked resources, such as JSON-LD context files, in production settings. This is
expected to increase user choice, scalability, and decentralized upgrades in the
Expand Down Expand Up @@ -2295,7 +2292,7 @@ <h2>Verification Method Rotation</h2>
present in the latest version of a [=controller document=] are not impacted by
rotation. In these cases, verification software might require additional
information, such as when a particular [=verification method=] was
expected to be valid as well as access to a [=verifiable data registry=]
expected to be valid as well as access to a verifiable data registry
containing a historical record, to determine the validity of the proof or
signature. This option might not be available in all systems.
</li>
Expand Down Expand Up @@ -2548,7 +2545,7 @@ <h2>Keep Personal Data Private</h2>
If a [=controller document=] is about a specific individual and is
public-facing, it is <em>critical</em> that the [=controller documents=]
contain no personal data. Personal data can instead be transmitted through other
means such as 1) [=verifiable credentials=] [[?VC-DATA-MODEL-2.0]], or 2)
means such as 1) verifiable credentials [[?VC-DATA-MODEL-2.0]], or 2)
other private communication channels.
</p>
</section>
Expand Down

0 comments on commit ebec677

Please sign in to comment.