Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

security-context

w3c-dvcg18.9k4.0.0

Security Context

readme

Security Vocabulary

This repository contains the Digital Verification Community Group Security Vocabulary and a npm package that exports related contexts and constants.

Security Vocabulary

Security Vocabulary specification: https://w3c-dvcg.github.io/security-vocab/.

Context Package

The repository contains JSON-LD contexts for the Security Vocabulary. These are also packaged in a npm package for CommonJS and ES Modules. To use with NPM and Node.js, use the following:

npm install security-context

The package exposes two values:

  • contexts: A Map from context URI to JSON-LD context.
  • constants: An Object of shorthand keys mapped to context URIs.
const {contexts, constants} = require('security-context');

With ES Modules:

// use one of the following forms:
import * as securityvocab1 from 'security-context';
import {default as securityvocab2} from 'security-context';
import {contexts, constants} from 'security-context';

changelog

security-context ChangeLog

4.0.0 - 2019-07-26

Added

  • Add terms for EcdsaSecp256 signature suites.
  • Add terms for EcdsaSecp256 keys.
  • Add term DeriveSecretOperation.

3.0.1 - 2019-05-16

Fixed

  • Base release on master branch.

3.0.0 - 2019-05-16

Added

  • Build and distribute static browser version with all contexts.
  • Export a contexts Map associating context URIs to contexts.
  • Export a constants Object associating short ids to contexts URIs.

Removed

  • BREAKING: Remove exported v1 and v2 in favor of new contexts Map and constants Object.

2.0.0 - 2019-03-29

Added

  • Add KmsOperation terms.

1.0.0 - 2019-01-09

  • See git history for changes previous to this release.