@ledgerhq/device-trusted-app-kit-ledger-keyring-protocol 0.0.0-intent-queue-6-20251114101759 → 0.0.0-intent-queue-6-20251204103625
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/api/app-binder/AddToTrustchainDeviceActionTypes.js.map +1 -1
- package/lib/cjs/api/crypto/CryptoService.js.map +1 -1
- package/lib/cjs/api/model/Errors.js +1 -1
- package/lib/cjs/api/model/Errors.js.map +1 -1
- package/lib/cjs/internal/app-binder/LedgerKeyringProtocolBinder.js +1 -1
- package/lib/cjs/internal/app-binder/LedgerKeyringProtocolBinder.js.map +1 -1
- package/lib/cjs/internal/app-binder/device-action/AddToTrustchainDeviceAction.js +1 -1
- package/lib/cjs/internal/app-binder/device-action/AddToTrustchainDeviceAction.js.map +1 -1
- package/lib/cjs/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.js +1 -1
- package/lib/cjs/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.js.map +1 -1
- package/lib/cjs/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js +1 -1
- package/lib/cjs/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js.map +2 -2
- package/lib/cjs/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.js.map +1 -1
- package/lib/cjs/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.js +1 -1
- package/lib/cjs/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.js.map +1 -1
- package/lib/cjs/internal/app-binder/task/ExtractEncryptionKeyTask.js.map +2 -2
- package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.js +1 -1
- package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.js.map +2 -2
- package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.test.js +1 -1
- package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.test.js.map +2 -2
- package/lib/cjs/internal/use-cases/authentication/AuthenticateUseCase.js +1 -1
- package/lib/cjs/internal/use-cases/authentication/AuthenticateUseCase.js.map +1 -1
- package/lib/cjs/internal/use-cases/authentication/DecryptDataUseCase.js.map +1 -1
- package/lib/cjs/internal/use-cases/authentication/EncryptDataUseCase.js.map +1 -1
- package/lib/cjs/internal/utils/LKRPBlockStream.js +1 -1
- package/lib/cjs/internal/utils/LKRPBlockStream.js.map +2 -2
- package/lib/cjs/package.json +36 -32
- package/lib/esm/api/app-binder/AddToTrustchainDeviceActionTypes.js.map +1 -1
- package/lib/esm/api/crypto/CryptoService.js.map +1 -1
- package/lib/esm/api/model/Errors.js +1 -1
- package/lib/esm/api/model/Errors.js.map +1 -1
- package/lib/esm/internal/app-binder/LedgerKeyringProtocolBinder.js +1 -1
- package/lib/esm/internal/app-binder/LedgerKeyringProtocolBinder.js.map +1 -1
- package/lib/esm/internal/app-binder/device-action/AddToTrustchainDeviceAction.js +1 -1
- package/lib/esm/internal/app-binder/device-action/AddToTrustchainDeviceAction.js.map +1 -1
- package/lib/esm/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.js +1 -1
- package/lib/esm/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.js.map +1 -1
- package/lib/esm/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js +1 -1
- package/lib/esm/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js.map +2 -2
- package/lib/esm/internal/app-binder/task/ExtractEncryptionKeyTask.js.map +2 -2
- package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.js +1 -1
- package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.js.map +2 -2
- package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.test.js +1 -1
- package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.test.js.map +2 -2
- package/lib/esm/internal/use-cases/authentication/AuthenticateUseCase.js.map +1 -1
- package/lib/esm/internal/use-cases/authentication/DecryptDataUseCase.js.map +1 -1
- package/lib/esm/internal/use-cases/authentication/EncryptDataUseCase.js.map +1 -1
- package/lib/esm/internal/utils/LKRPBlockStream.js +2 -2
- package/lib/esm/internal/utils/LKRPBlockStream.js.map +2 -2
- package/lib/esm/package.json +36 -32
- package/lib/types/api/app-binder/AddToTrustchainDeviceActionTypes.d.ts +1 -1
- package/lib/types/internal/app-binder/LedgerKeyringProtocolBinder.d.ts +2 -2
- package/lib/types/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.d.ts +1 -1
- package/lib/types/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.d.ts +2 -2
- package/lib/types/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.d.ts +1 -1
- package/lib/types/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.d.ts +1 -1
- package/lib/types/internal/app-binder/task/ExtractEncryptionKeyTask.d.ts +1 -1
- package/lib/types/internal/app-binder/task/SignChallengeWithKeypairTask.d.ts +2 -2
- package/lib/types/internal/use-cases/authentication/AuthenticateUseCase.d.ts +1 -1
- package/lib/types/internal/utils/LKRPBlockStream.d.ts +1 -1
- package/lib/types/tsconfig.prod.tsbuildinfo +1 -1
- package/package.json +35 -31
|
@@ -12,11 +12,11 @@ export declare class LedgerKeyringProtocolBinder {
|
|
|
12
12
|
private readonly lkrpDataSource;
|
|
13
13
|
constructor(dmk: DeviceManagementKit, applicationId: number, cryptoService: CryptoService, lkrpDataSource: LKRPDataSource);
|
|
14
14
|
authenticateWithKeypair(args: {
|
|
15
|
-
|
|
15
|
+
keyPair: KeyPair;
|
|
16
16
|
trustchainId: string;
|
|
17
17
|
}): AuthenticateDAReturnType;
|
|
18
18
|
authenticateWithDevice(args: {
|
|
19
|
-
|
|
19
|
+
keyPair: KeyPair;
|
|
20
20
|
clientName: string;
|
|
21
21
|
permissions: Permissions;
|
|
22
22
|
sessionId: DeviceSessionId;
|
|
@@ -23,7 +23,7 @@ export declare class AuthenticateWithDeviceDeviceAction extends XStateDeviceActi
|
|
|
23
23
|
extractEncryptionKey: ({ input, }: {
|
|
24
24
|
input: {
|
|
25
25
|
cryptoService: CryptoService;
|
|
26
|
-
|
|
26
|
+
keyPair: KeyPair;
|
|
27
27
|
stream: Either<AuthenticateDAError, LKRPBlockStream>;
|
|
28
28
|
};
|
|
29
29
|
}) => Promise<Either<AuthenticateDAError, Uint8Array<ArrayBufferLike>>>;
|
package/lib/types/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class AuthenticateWithKeypairDeviceAction extends XStateDeviceAct
|
|
|
11
11
|
execute(): ExecuteDeviceActionReturnType<AuthenticateDAOutput, AuthenticateDAError, AuthenticateDAIntermediateValue>;
|
|
12
12
|
makeStateMachine(): DeviceActionStateMachine<AuthenticateDAOutput, AuthenticateWithKeypairDAInput, AuthenticateDAError, AuthenticateDAIntermediateValue, AuthenticateWithKeypairDAInternalState>;
|
|
13
13
|
extractDependencies(): {
|
|
14
|
-
|
|
14
|
+
keyPairAuth: ({ input }: {
|
|
15
15
|
input: AuthenticateWithKeypairDAInput;
|
|
16
16
|
}) => Promise<Either<AuthenticateDAError, import("../../lkrp-datasource/data/LKRPDataSource").AuthenticationResponse>>;
|
|
17
17
|
getTrustchain: ({ input, }: {
|
|
@@ -24,7 +24,7 @@ export declare class AuthenticateWithKeypairDeviceAction extends XStateDeviceAct
|
|
|
24
24
|
extractEncryptionKey: ({ input, }: {
|
|
25
25
|
input: {
|
|
26
26
|
cryptoService: CryptoService;
|
|
27
|
-
|
|
27
|
+
keyPair: KeyPair;
|
|
28
28
|
stream: Either<AuthenticateDAError, LKRPBlockStream>;
|
|
29
29
|
};
|
|
30
30
|
}) => Promise<Either<AuthenticateDAError, Uint8Array<ArrayBufferLike>>>;
|
|
@@ -8,7 +8,7 @@ export type AuthenticateWithDeviceDAInput = {
|
|
|
8
8
|
readonly lkrpDataSource: LKRPDataSource;
|
|
9
9
|
readonly appId: number;
|
|
10
10
|
readonly cryptoService: CryptoService;
|
|
11
|
-
readonly
|
|
11
|
+
readonly keyPair: KeyPair;
|
|
12
12
|
readonly clientName: string;
|
|
13
13
|
readonly permissions: Permissions;
|
|
14
14
|
};
|
|
@@ -8,7 +8,7 @@ export type AuthenticateWithKeypairDAInput = {
|
|
|
8
8
|
readonly lkrpDataSource: LKRPDataSource;
|
|
9
9
|
readonly appId: number;
|
|
10
10
|
readonly cryptoService: CryptoService;
|
|
11
|
-
readonly
|
|
11
|
+
readonly keyPair: KeyPair;
|
|
12
12
|
readonly trustchainId: string;
|
|
13
13
|
};
|
|
14
14
|
export type AuthenticateWithKeypairDAInternalState = Either<AuthenticateDAError, {
|
|
@@ -3,6 +3,6 @@ import { type KeyPair } from "../../../api/crypto/KeyPair";
|
|
|
3
3
|
import { LKRPUnknownError } from "../../../api/model/Errors";
|
|
4
4
|
import { type LKRPBlockStream } from "../../utils/LKRPBlockStream";
|
|
5
5
|
export declare class ExtractEncryptionKeyTask {
|
|
6
|
-
run(cryptoService: CryptoService,
|
|
6
|
+
run(cryptoService: CryptoService, keyPair: KeyPair, stream: LKRPBlockStream): Promise<import("purify-ts").Either<LKRPUnknownError, Uint8Array<ArrayBufferLike>>>;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=ExtractEncryptionKeyTask.d.ts.map
|
|
@@ -5,9 +5,9 @@ import { LKRPMissingDataError, LKRPUnknownError } from "../../../api/model/Error
|
|
|
5
5
|
import { type AuthenticationPayload, type Challenge } from "../../lkrp-datasource/data/LKRPDataSource";
|
|
6
6
|
export declare class SignChallengeWithKeypairTask {
|
|
7
7
|
private readonly cryptoService;
|
|
8
|
-
private readonly
|
|
8
|
+
private readonly keyPair;
|
|
9
9
|
private readonly trustchainId;
|
|
10
|
-
constructor(cryptoService: CryptoService,
|
|
10
|
+
constructor(cryptoService: CryptoService, keyPair: KeyPair, trustchainId: string);
|
|
11
11
|
run(challenge: Challenge): EitherAsync<LKRPMissingDataError | LKRPUnknownError, AuthenticationPayload>;
|
|
12
12
|
private getAttestation;
|
|
13
13
|
private getCredential;
|
|
@@ -4,7 +4,7 @@ import { KeyPair } from "../../../api/crypto/KeyPair";
|
|
|
4
4
|
import { Permissions } from "../../../api/model/Permissions";
|
|
5
5
|
import { LedgerKeyringProtocolBinder } from "../../app-binder/LedgerKeyringProtocolBinder";
|
|
6
6
|
export type AuthenticateUsecaseInput = {
|
|
7
|
-
|
|
7
|
+
keyPair: KeyPair;
|
|
8
8
|
clientName: string;
|
|
9
9
|
permissions: Permissions;
|
|
10
10
|
} & ({
|
|
@@ -21,6 +21,6 @@ export declare class LKRPBlockStream {
|
|
|
21
21
|
getPath(): Maybe<string>;
|
|
22
22
|
getMemberBlock(member: string): Maybe<LKRPBlockData>;
|
|
23
23
|
hasMember(member: string): boolean;
|
|
24
|
-
getPublishedKey(cryptoService: CryptoService,
|
|
24
|
+
getPublishedKey(cryptoService: CryptoService, keyPair: KeyPair): Promise<Maybe<PublishedKey>>;
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=LKRPBlockStream.d.ts.map
|