New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@didtools/cacao

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@didtools/cacao - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

22

dist/cacao.d.ts

@@ -7,3 +7,3 @@ import * as multiformats from 'multiformats';

export declare const LEGACY_CHAIN_ID_REORG_DATE: number;
export declare type CacaoBlock = {
export type CacaoBlock = {
value: Cacao;

@@ -13,10 +13,10 @@ cid: multiformats.CID;

};
export declare type Header = {
export type Header = {
t: 'eip4361' | 'caip122';
};
export declare type Signature = {
export type Signature = {
t: 'eip191' | 'eip1271' | 'solana:ed25519' | 'tezos:ed25519' | 'stacks:secp256k1';
s: string;
};
export declare type Cacao = {
export type Cacao = {
h: Header;

@@ -26,3 +26,3 @@ p: Payload;

};
export declare type SignedCacao = {
export type SignedCacao = {
h: Header;

@@ -32,6 +32,6 @@ p: Payload;

};
export declare type Verifiers = Record<string, CacaoVerifier>;
export declare type CacaoVerifier = (cacao: Cacao, opts: VerifyOptions) => Promise<void>;
export declare type AuthMethod = (opts: AuthMethodOpts) => Promise<Cacao>;
export declare type Payload = {
export type Verifiers = Record<string, CacaoVerifier>;
export type CacaoVerifier = (cacao: Cacao, opts: VerifyOptions) => Promise<void>;
export type AuthMethod = (opts: AuthMethodOpts) => Promise<Cacao>;
export type Payload = {
domain: string;

@@ -49,3 +49,3 @@ iss: string;

};
export declare type VerifyOptions = {
export type VerifyOptions = {
/**

@@ -72,3 +72,3 @@ * @param verifiers - object of supported verification methods to verify given cacao

};
export declare type AuthMethodOpts = {
export type AuthMethodOpts = {
/**RFC 4501 dns authority that is requesting the signing. */

@@ -75,0 +75,0 @@ domain?: string;

{
"name": "@didtools/cacao",
"version": "1.2.0",
"version": "2.0.0",
"description": "Typescript library for Ceramic OCAP",

@@ -35,12 +35,12 @@ "author": "Haardik <hhaardik@uwaterloo.ca>",

"dependencies": {
"@ipld/dag-cbor": "^7.0.1",
"apg-js": "^4.1.1",
"@ipld/dag-cbor": "^9.0.0",
"apg-js": "^4.1.3",
"caip": "^1.1.0",
"multiformats": "^9.5.1",
"uint8arrays": "^4.0.2"
"multiformats": "^11.0.1",
"uint8arrays": "^4.0.3"
},
"devDependencies": {
"@types/luxon": "^3.0.0",
"@types/node": "^18.11.7",
"luxon": "^3.0.1"
"@types/luxon": "^3.2.0",
"@types/node": "^18.14.1",
"luxon": "^3.2.1"
},

@@ -47,0 +47,0 @@ "scripts": {

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