Skip to content

Commit

Permalink
Align interface with enclave.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoch committed Dec 17, 2024
1 parent 050a936 commit 4b357b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class IframeEnclave implements EnclaveProvider {
signerPublicKey?: string,
expectedUserEncryptionPublicKey?: string,
): Promise<Uint8Array> {
let { userEncryptionPublicKey } = (await this.#requestToEnclave({
let { encryptionPublicKey: userEncryptionPublicKey } = (await this.#requestToEnclave({
storage: {
humanId,
signerAddress,
Expand Down
6 changes: 3 additions & 3 deletions packages/idos-sdk-js/src/lib/enclave-providers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { idOSCredential } from "@idos-network/idos-sdk-types";
import type { BackupPasswordInfo } from "../types";

export interface StoredData {
userEncryptionPublicKey?: Uint8Array;
encryptionPublicKey?: Uint8Array;
humanId?: string;
signerAddress?: string;
signerEncryptionPublicKey?: string;
signerPublicKey?: string;
}

export interface DiscoverUserEncryptionPublicKeyResponse {
Expand All @@ -27,7 +27,7 @@ export interface EnclaveProvider {
ready(
humanId?: string,
signerAddress?: string,
signerEncryptionPublicKey?: string,
signerPublicKey?: string,
currentUserEncryptionPublicKey?: string,
): Promise<Uint8Array>;
store(key: string, value: string): Promise<string>;
Expand Down

0 comments on commit 4b357b1

Please sign in to comment.