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

@aries-framework/anoncreds

Package Overview
Dependencies
Maintainers
3
Versions
197
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aries-framework/anoncreds - npm Package Compare versions

Comparing version 0.5.0-alpha.69 to 0.5.0-alpha.70

8

build/AnonCredsApi.d.ts

@@ -51,3 +51,3 @@ import type { AnonCredsCreateLinkSecretOptions, AnonCredsRegisterCredentialDefinitionOptions, AnonCredsRegisterRevocationRegistryDefinitionOptions, AnonCredsRegisterRevocationStatusListOptions, AnonCredsUpdateRevocationStatusListOptions } from './AnonCredsApiOptions';

getCredentialDefinition(credentialDefinitionId: string): Promise<GetCredentialDefinitionReturn>;
registerCredentialDefinition<T extends Extensible = Extensible>(options: AnonCredsRegisterCredentialDefinition<T>): Promise<RegisterCredentialDefinitionReturn>;
registerCredentialDefinition<T extends Extensible>(options: AnonCredsRegisterCredentialDefinition<T>): Promise<RegisterCredentialDefinitionReturn>;
getCreatedCredentialDefinitions(query: SimpleQuery<AnonCredsCredentialDefinitionRecord>): Promise<AnonCredsCredentialDefinitionRecord[]>;

@@ -81,6 +81,8 @@ /**

}
export interface AnonCredsRegisterCredentialDefinitionApiOptions {
supportRevocation: boolean;
}
interface AnonCredsRegisterCredentialDefinition<T extends Extensible = Extensible> {
credentialDefinition: AnonCredsRegisterCredentialDefinitionOptions;
supportRevocation: boolean;
options: T;
options: T & AnonCredsRegisterCredentialDefinitionApiOptions;
}

@@ -87,0 +89,0 @@ interface AnonCredsRegisterSchema<T extends Extensible = Extensible> {

@@ -198,3 +198,3 @@ "use strict";

tag: options.credentialDefinition.tag,
supportRevocation: options.supportRevocation,
supportRevocation: options.options.supportRevocation,
schema: schemaResult.schema,

@@ -297,5 +297,6 @@ },

const localTailsLocation = revocationRegistryDefinition.value.tailsLocation;
revocationRegistryDefinition.value.tailsLocation = await tailsFileService.uploadTailsFile(this.agentContext, {
const { tailsFileUrl } = await tailsFileService.uploadTailsFile(this.agentContext, {
revocationRegistryDefinition,
});
revocationRegistryDefinition.value.tailsLocation = tailsFileUrl;
const result = await registry.registerRevocationRegistryDefinition(this.agentContext, {

@@ -366,3 +367,3 @@ revocationRegistryDefinition,

const tailsFileService = this.agentContext.dependencyManager.resolve(AnonCredsModuleConfig_1.AnonCredsModuleConfig).tailsFileService;
const tailsFilePath = await tailsFileService.getTailsFile(this.agentContext, {
const { tailsFilePath } = await tailsFileService.getTailsFile(this.agentContext, {
revocationRegistryDefinition,

@@ -419,3 +420,3 @@ });

const tailsFileService = this.agentContext.dependencyManager.resolve(AnonCredsModuleConfig_1.AnonCredsModuleConfig).tailsFileService;
const tailsFilePath = await tailsFileService.getTailsFile(this.agentContext, {
const { tailsFilePath } = await tailsFileService.getTailsFile(this.agentContext, {
revocationRegistryDefinition,

@@ -422,0 +423,0 @@ });

@@ -13,8 +13,12 @@ import type { TailsFileService } from './TailsFileService';

revocationRegistryDefinition: AnonCredsRevocationRegistryDefinition;
}): Promise<string>;
}): Promise<{
tailsFileUrl: string;
}>;
getTailsFile(agentContext: AgentContext, options: {
revocationRegistryDefinition: AnonCredsRevocationRegistryDefinition;
}): Promise<string>;
}): Promise<{
tailsFilePath: string;
}>;
protected getTailsFilePath(agentContext: AgentContext, tailsHash: string): Promise<string>;
protected tailsFileExists(agentContext: AgentContext, tailsHash: string): Promise<boolean>;
}

@@ -46,3 +46,3 @@ "use strict";

}
return tailsFilePath;
return { tailsFilePath };
}

@@ -49,0 +49,0 @@ catch (error) {

@@ -23,3 +23,5 @@ import type { AnonCredsRevocationRegistryDefinition } from '../../models';

revocationRegistryDefinitionId?: string;
}): Promise<string>;
}): Promise<{
tailsFileUrl: string;
}>;
/**

@@ -38,3 +40,5 @@ * Retrieve the tails file for a given revocation registry, downloading it

revocationRegistryDefinitionId?: string;
}): Promise<string>;
}): Promise<{
tailsFilePath: string;
}>;
}

@@ -66,3 +66,3 @@ "use strict";

const tailsFileService = agentContext.dependencyManager.resolve(AnonCredsModuleConfig_1.AnonCredsModuleConfig).tailsFileService;
const tailsFilePath = await tailsFileService.getTailsFile(agentContext, {
const { tailsFilePath } = await tailsFileService.getTailsFile(agentContext, {
revocationRegistryDefinition,

@@ -69,0 +69,0 @@ });

@@ -5,3 +5,3 @@ {

"types": "build/index",
"version": "0.5.0-alpha.69+c59ad59f",
"version": "0.5.0-alpha.70+505fba25",
"files": [

@@ -28,3 +28,3 @@ "build"

"dependencies": {
"@aries-framework/core": "0.5.0-alpha.69+c59ad59f",
"@aries-framework/core": "0.5.0-alpha.70+505fba25",
"bn.js": "^5.2.1",

@@ -36,3 +36,3 @@ "class-transformer": "0.5.1",

"devDependencies": {
"@aries-framework/node": "0.5.0-alpha.69+c59ad59f",
"@aries-framework/node": "0.5.0-alpha.70+505fba25",
"indy-sdk": "^1.16.0-dev-1636",

@@ -43,3 +43,3 @@ "rimraf": "^4.4.0",

},
"gitHead": "c59ad59fbe63b6d3760d19030e0f95fb2ea8488a"
"gitHead": "505fba25ad0a61e3c619562c5186ad3129b3e16f"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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