/ student-intifada / node_modules / @sigstore / tuf /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]dist/a year ago -  
[   ]LICENSEa year ago 11K 
[TXT]README.mda year ago3.6K595aea1 more query options + view options [كارل مبارك]
[   ]package.jsona year ago1.0Kafd0ccc remove unused [كارل مبارك]
[   ]seeds.jsona year ago 19K 
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