Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sigstore/core

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sigstore/core

Base library for Sigstore

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.6M
increased by4.71%
Maintainers
2
Weekly downloads
 
Created

What is @sigstore/core?

@sigstore/core is an npm package that provides tools for signing, verifying, and managing software artifacts using Sigstore's transparency log and other related services. It is designed to enhance the security and integrity of software supply chains.

What are @sigstore/core's main functionalities?

Signing Artifacts

This feature allows you to sign software artifacts, ensuring their integrity and authenticity. The code sample demonstrates how to sign an artifact using the @sigstore/core package.

const sigstore = require('@sigstore/core');

async function signArtifact() {
  const artifact = 'path/to/artifact';
  const signature = await sigstore.sign(artifact);
  console.log('Signature:', signature);
}
signArtifact();

Verifying Signatures

This feature allows you to verify the signatures of software artifacts. The code sample shows how to verify an artifact's signature using the @sigstore/core package.

const sigstore = require('@sigstore/core');

async function verifySignature() {
  const artifact = 'path/to/artifact';
  const signature = 'signature-string';
  const isValid = await sigstore.verify(artifact, signature);
  console.log('Is valid:', isValid);
}
verifySignature();

Managing Transparency Logs

This feature enables interaction with Sigstore's transparency log, which records the signing events. The code sample demonstrates how to retrieve a log entry for a given artifact hash.

const sigstore = require('@sigstore/core');

async function manageTransparencyLog() {
  const logEntry = await sigstore.logEntry('artifact-hash');
  console.log('Log Entry:', logEntry);
}
manageTransparencyLog();

Other packages similar to @sigstore/core

FAQs

Package last updated on 14 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc