/ c4f / front / node_modules / @sigstore / tuf /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]dist/8 months ago -  
[   ]seeds.json8 months ago 19K 
[   ]LICENSE8 months ago 11K 
[TXT]README.md8 months ago3.6K 
[   ]package.json8 months ago1.0K 
README.md

@sigstore/tuf · npm version CI Status Smoke Test Status

A JavaScript library for securely retrieving targets from the Sigstore TUF repository.

Features

Prerequisites

Installation

npm install @sigstore/tuf

Usage

const { initTUF } = require('@sigstore/tuf');
import { initTUF } from '@sigstore/tuf';

initTUF([options])

Returns a TUF client which can be used to retrieve any target from the Sigstore TUF repository. The local TUF cache will be initialized and the TUF metadata files downloaded from the remote repository as part of the initialization process.

The TUF client object returned from initTUF has a single getTarget function which takes the name of a target in the Sigstore TUF repository and returns the content of that target.

getTrustedRoot([options])

Retrieves the most recent version of the "trusted_root.json" target from the Sigstore TUF repository. The format of "trusted_root.json" file is described by the TrustedRoot protobuf and contains the complete set of trusted verification materials for the Sigstore public-good instance.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80