Skip to content

Commit

Permalink
fix: rename references (#218)
Browse files Browse the repository at this point in the history
Signed-off-by: mkbreuning <[email protected]>
Signed-off-by: Allain Magyar <[email protected]>
Co-authored-by: mkbreuning <[email protected]>
  • Loading branch information
2 people authored and elribonazo committed May 31, 2024
1 parent b0f283f commit d1b7d7f
Show file tree
Hide file tree
Showing 15 changed files with 50 additions and 48 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ on:
required: true
description: Mediator out-of-band url
default: https://sit-prism-mediator.atalaprism.io/invitationOOB
prismAgentUrl:
agentUrl:
required: true
description: Prism-agent server url
description: Agent url
default: https://sit-prism-agent-issuer.atalaprism.io/prism-agent
publishedDid:
required: false
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Run tests
env:
MEDIATOR_OOB_URL: ${{ inputs.mediatorOobUrl || vars.MEDIATOR_OOB_URL }}
PRISM_AGENT_URL: ${{ inputs.prismAgentUrl || vars.PRISM_AGENT_URL }}
AGENT_URL: ${{ inputs.agentUrl || vars.AGENT_URL }}
PUBLISHED_DID: ${{ inputs.publishedDid || vars.PUBLISHED_DID }}
JWT_SCHEMA_GUID: ${{ inputs.jwtSchemaGuid || vars.JWT_SCHEMA_GUID }}
ANONCRED_DEFINITION_GUID: ${{ inputs.anoncredDefinitionGuid || vars.ANONCRED_DEFINITION_GUID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
with:
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
submodules: 'true'

- name: Setup Node.js
Expand Down
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ The following guidelines are for contributing to Edge Agent SDK TS. These are mo

### Identus

Identus is a self-sovereign identity (SSI) platform and service suite for verifiable data and digital identity. Built on Cardano, it offers the core infrastructure for issuing DIDs (Decentralized identifiers) and verifiable credentials alongside tools and frameworks to help expand your ecosystem.
Identus is a self-sovereign identity (SSI) platform and service suite for verifiable data and digital identity. Built on Cardano, as a distributed ledger, it offers the core infrastructure for issuing DIDs (Decentralized identifiers) and verifiable credentials alongside tools and frameworks to help expand your ecosystem.
The complete platform is separated into multiple repositories:

* [Open enterprise agent](https://github.com/hyperledger-labs/open-enterprise-agent) - Repo that contains the servers Building Blocks.
* [Prism Wallet SDK SWIFT](https://github.com/input-output-hk/atala-prism-wallet-sdk-swift) - Repo for the Swift version of the SDK.
* [Prism Wallet SDK KMM](https://github.com/input-output-hk/atala-prism-wallet-sdk-kmm) - Repo for the Kotlin version of the SDK.
* [Prism Mediator](https://github.com/input-output-hk/atala-prism-mediator) - Repo for the Prism Mediator.
* [Cloud Agent](https://github.com/hyperledger/identus-cloud-agent) - Repo that contains the cloud agent that provides self-sovereign identity services to build products and solutions.
* [Mediator](https://github.com/input-output-hk/atala-prism-mediator) - Repo for the DIDComm V2 Mediator.
* [Edge Agent SDK Swift](https://github.com/input-output-hk/atala-prism-wallet-sdk-swift) - Repo for the Swift version of the SDK.
* [Edge Agent SDK KMP](https://github.com/input-output-hk/atala-prism-wallet-sdk-kmm) - Repo for the Kotlin Multi-Platform version of the SDK.

### Edge Agent SDK TS

Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@
---

Identus is a self-sovereign identity (SSI) platform and service suite for
verifiable data and digital identity. Built on Cardano, it offers core
infrastructure for issuing DIDs (Decentralized identifiers) and verifiable
credentials, alongside tools and frameworks to help expand your ecosystem.
verifiable data and digital identity. Built on Cardano, as a distributed ledger,
it offers core infrastructure for issuing DIDs (Decentralized identifiers) and
verifiable credentials, alongside tools and frameworks to help expand your ecosystem.
The complete platform is separated into multiple repositories:

- [edge-agent-sdk-swift](https://github.com/input-output-hk/atala-prism-wallet-sdk-swift) - Repo that implements Atala PRISM for Apple platforms in Swift.
- [edge-agent-sdk-kmm](https://github.com/input-output-hk/atala-prism-wallet-sdk-kmm) - Repo that implements Atala PRISM for Apple platforms in KMM, JVM.
- [edge-agent-sdk-ts](https://github.com/input-output-hk/atala-prism-wallet-sdk-ts) - Repo that implements Atala PRISM for Browser and NodeJS platforms in TypeScript.
- [edge-agent-building-blocks](https://github.com/hyperledger-labs/open-enterprise-agent) - Repo that contains the servers Building Blocks.
- [edge-agent-mediator](https://github.com/input-output-hk/atala-prism-mediator) - Repo for DIDComm V2 Mediator

* [Cloud Agent](https://github.com/hyperledger/identus-cloud-agent) - Repo that contains the cloud agent that provides self-sovereign identity services to build products and solutions.
* [Mediator](https://github.com/input-output-hk/atala-prism-mediator) - Repo for the DIDComm V2 Mediator.
* [Edge Agent SDK TS](https://github.com/input-output-hk/atala-prism-wallet-sdk-ts) - Repo for the Typescript version of the SDK.
* [Edge Agent SDK Swift](https://github.com/input-output-hk/atala-prism-wallet-sdk-swift) - Repo for the Swift version of the SDK.
* [Edge Agent SDK KMP](https://github.com/input-output-hk/atala-prism-wallet-sdk-kmm) - Repo for the Kotlin Multi-Platform version of the SDK.
*
## SDK Overview

- Apollo: Provides a suite of necessary cryptographic operations.
- Castor: Provides a suite of operations to create, manage and resolve decentralized identifiers.
- Pollux: Provides a suite of operations for handling [verifiable credentials](https://github.com/input-output-hk/atala-prism-docs/blob/master/documentation/docs/concepts/glossary.md#verifiable-credentials).
- Mercury: Provides a suite of operations for handling DIDComm V2 messages.
- Pluto: Provides an interface for storage operations in a portable, storage-agnostic manner.
- PrismAgent: PrismAgent, a component using all other building blocks, provides basic edge agent capabilities, including implementing DIDComm V2 protocols.
- Agent: A component using all other building blocks, provides basic edge agent capabilities, including implementing DIDComm V2 protocols.

## Getting started

Expand Down
Binary file removed atala-logo.png
Binary file not shown.
2 changes: 1 addition & 1 deletion integration-tests/e2e-tests/.env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MEDIATOR_OOB_URL=
PRISM_AGENT_URL=
AGENT_URL=
APIKEY=
PUBLISHED_DID=
JWT_SCHEMA_GUID=
Expand Down
16 changes: 8 additions & 8 deletions integration-tests/e2e-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ How to use
- Copy `.env.example` to `.env`
- Fill the required properties

| Property | Description |
| ------------------------ | ------------------------------------------------------------ |
| MEDIATOR_OOB_URL | URL that returns the OOB url |
| PRISM_AGENT_URL | URL for prism-agent - should end with a forward slash ()"/") |
| APIKEY | Apikey authentication |
| PUBLISHED_DID | Existing DID |
| JWT_SCHEMA_GUID | Existing jwt schema guid |
| ANONCRED_DEFINITION_GUID | Existing anoncred definition guid |
| Property | Description |
| ------------------------ | ----------------------------------------------------------- |
| MEDIATOR_OOB_URL | URL that returns the OOB url |
| AGENT_URL | URL for Cloud Agent - should end with a forward slash ("/") |
| APIKEY | Apikey authentication |
| PUBLISHED_DID | Existing DID |
| JWT_SCHEMA_GUID | Existing jwt schema guid |
| ANONCRED_DEFINITION_GUID | Existing anoncred definition guid |
2 changes: 1 addition & 1 deletion integration-tests/e2e-tests/cucumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
],
formatOptions: {
junit: {
suiteName: "E2E: Prism Wallet SDK - TS"
suiteName: "E2E: Edge Agent SDK TS"
}
},
requireModule: ["ts-node/register"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
@connection
Feature: Create connection
The Edge Agent should be able to create a connection to prism-agent
The Edge Agent should be able to create a connection to Cloud Agent

Scenario Outline: Create connection
Given Cloud Agent has a connection invitation with '<label>', '<goalCode>' and '<goal>' parameters
And Cloud Agent shares invitation to Edge Agent
And Edge Agent connects through the invite
Then Cloud Agent should have the connection status updated to 'ConnectionResponseSent'

Examples:
| label | goalCode | goal |
| alice | automation | automation description |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ import {
ManagedDIDKeyTemplate,
Purpose
} from "@hyperledger-labs/open-enterprise-agent-ts-client"
import {Utils} from "../Utils"
import {randomUUID} from "crypto"
import { Utils } from "../Utils"
import { randomUUID } from "crypto"
import * as fs from "fs"
import axios from "axios"
import {configDotenv} from "dotenv"
import { configDotenv } from "dotenv"
import assert from "assert"

configDotenv()

export class CloudAgentConfiguration {
public static mediatorOobUrl: string = process.env.MEDIATOR_OOB_URL!
public static agentUrl: string = process.env.PRISM_AGENT_URL!
public static agentUrl: string = process.env.AGENT_URL!
public static publishedDid: string = process.env.PUBLISHED_DID!
public static jwtSchemaGuid: string = process.env.JWT_SCHEMA_GUID!
public static anoncredDefinitionGuid: string = process.env.ANONCRED_DEFINITION_GUID!
public static apiKey: string | undefined = process.env.APIKEY
public static apiKey: string | undefined = process.env.APIKEY

private static isInitialized: boolean = false

Expand Down Expand Up @@ -51,7 +51,7 @@ export class CloudAgentConfiguration {
}

/**
* Checks if the environment PUBLISHED_DID variable exists in prism-agent, otherwise it creates a new one.
* Checks if the environment PUBLISHED_DID variable exists in Cloud Agent, otherwise it creates a new one.
*/
static async preparePublishedDid() {
try {
Expand Down Expand Up @@ -110,7 +110,7 @@ export class CloudAgentConfiguration {
}

/**
* Checks if the environment JWT_SCHEMA_GUID variable exists in prism-agent, otherwise it creates a new one.
* Checks if the environment JWT_SCHEMA_GUID variable exists in Cloud Agent, otherwise it creates a new one.
*/
static async prepareJwtSchema() {
try {
Expand Down Expand Up @@ -159,7 +159,7 @@ export class CloudAgentConfiguration {
}

/**
* Checks if the environment ANONCRED_DEFINITION_GUID variable exists in prism-agent, otherwise it creates a new one.
* Checks if the environment ANONCRED_DEFINITION_GUID variable exists in Cloud Agent, otherwise it creates a new one.
*/
static async prepareAnoncredDefinition() {
try {
Expand All @@ -176,7 +176,7 @@ export class CloudAgentConfiguration {
const schema = {
name: "Automation Anoncred",
version: "1.0",
issuerId : this.publishedDid,
issuerId: this.publishedDid,
attrNames: ["name", "age", "gender"]
}

Expand Down
4 changes: 2 additions & 2 deletions integration-tests/e2e-tests/src/steps/LifecycleSteps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Actors implements Cast {
static async createAndEngageActors() {
const actors = new Actors()

const prismAgent = actorCalled("Cloud Agent").whoCan(
const cloudAgent = actorCalled("Cloud Agent").whoCan(
CallAnApi.using(axiosInstance),
TakeNotes.usingAnEmptyNotepad()
)
Expand All @@ -30,7 +30,7 @@ class Actors implements Cast {
await WalletSdk.withANewInstance()
)

actors.add(prismAgent)
actors.add(cloudAgent)
actors.add(edgeAgent)

engage(actors)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/apollo/Apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Mnemonic = ApolloSDK.derivation.Mnemonic.Companion;
const HDKey = ApolloSDK.derivation.HDKey;
const BigIntegerWrapper = ApolloSDK.derivation.BigIntegerWrapper;
/**
* Apollo defines the set of cryptographic operations that are used in the Atala PRISM.
* Apollo defines the set of cryptographic operations.
*
* @Abstraction
* We by default are implementing Secp256k1, Ed25519 and X25519 Private and Public key from our generic abstractions.
Expand Down
3 changes: 2 additions & 1 deletion src/edge-agent/Agent.Credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import { AgentCredentials as AgentCredentialsClass, AgentDIDHigherFunctions } fr
import { PrismKeyPathIndexTask } from "./Agent.PrismKeyPathIndexTask";
import { ProofTypes, RequestPresentationBody } from "./protocols/types";
import { uuid } from "@stablelib/uuid";
import { ProtocolType } from "./protocols/ProtocolTypes";

export class AgentCredentials implements AgentCredentialsClass {
/**
Expand Down Expand Up @@ -280,7 +281,7 @@ export class AgentCredentials implements AgentCredentialsClass {
private async getPresentationDefinitionByThid(thid: string): Promise<PresentationDefinitionRequest> {
const allMessages = (await this.pluto.getAllMessages())
const message = allMessages.find((message) => {
return message.thid === thid && message.piuri === "https://didcomm.atalaprism.io/present-proof/3.0/request-presentation"
return message.thid === thid && message.piuri === ProtocolType.DidcommRequestPresentation
});
if (message) {
const attachment = message.attachments.at(0);
Expand Down
6 changes: 3 additions & 3 deletions src/edge-agent/Agent.Invitations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { DIDCommInvitationRunner } from "./protocols/invitation/v2/DIDCommInvita

/**
* An extension for the Edge agent that groups the functionality to parse, manage and
* respond to prism agent onboarding and didcomm v2 invitations
* respond to Cloud Agent onboarding and didcomm v2 invitations
*
* @export
* @class AgentInvitations
Expand All @@ -43,7 +43,7 @@ export class AgentInvitations implements AgentInvitationsClass {
private api: Api,
private agentDIDHigherFunctions: AgentDIDHigherFunctions,
private connection: ConnectionsManager
) {}
) { }

/**
* Asyncronously parse an invitation from a valid json string
Expand Down Expand Up @@ -107,7 +107,7 @@ export class AgentInvitations implements AgentInvitationsClass {
}

/**
* Asyncronously accept a prism onboarding invitation, used to onboard the current did in a prism agent.
* Asyncronously accept an onboarding invitation, used to onboard the current DID in the Cloud Agent.
*
* @async
* @param {PrismOnboardingInvitation} invitation
Expand Down

0 comments on commit d1b7d7f

Please sign in to comment.