@ledgerhq/device-trusted-app-kit-ledger-keyring-protocol 0.0.0-develop-20250903001157 → 0.0.0-e2e-speculos-20250904104129
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/LedgerKeyringProtocol.js +1 -1
- package/lib/cjs/api/LedgerKeyringProtocol.js.map +1 -1
- package/lib/cjs/api/LedgerKeyringProtocolBuilder.js +1 -1
- package/lib/cjs/api/LedgerKeyringProtocolBuilder.js.map +3 -3
- package/lib/cjs/api/app-binder/AddToTrustchainDeviceActionTypes.js +1 -1
- package/lib/cjs/api/app-binder/AddToTrustchainDeviceActionTypes.js.map +3 -3
- package/lib/cjs/api/app-binder/AuthenticateDeviceActionTypes.js +1 -1
- package/lib/cjs/api/app-binder/AuthenticateDeviceActionTypes.js.map +3 -3
- package/lib/cjs/api/app-binder/Errors.js +2 -0
- package/lib/cjs/api/app-binder/Errors.js.map +7 -0
- package/lib/cjs/api/app-binder/GetAppNameCommandTypes.js +2 -0
- package/lib/cjs/api/app-binder/GetAppNameCommandTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/GetSeedIdCommandTypes.js +2 -0
- package/lib/cjs/api/app-binder/GetSeedIdCommandTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/GetVersionCommandTypes.js +1 -1
- package/lib/cjs/api/app-binder/GetVersionCommandTypes.js.map +1 -1
- package/lib/cjs/api/app-binder/InitCommandTypes.js +2 -0
- package/lib/cjs/api/app-binder/InitCommandTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/KeypairFromBytes.js +2 -0
- package/lib/cjs/api/app-binder/KeypairFromBytes.js.map +7 -0
- package/lib/cjs/api/app-binder/LKRPTypes.js +2 -0
- package/lib/cjs/api/app-binder/LKRPTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/ParseStreamBlockCommandCommandTypes.js +2 -0
- package/lib/cjs/api/app-binder/ParseStreamBlockCommandCommandTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/ParseStreamBlockHeaderCommandTypes.js +2 -0
- package/lib/cjs/api/app-binder/ParseStreamBlockHeaderCommandTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/ParseStreamBlockSignatureTypes.js +2 -0
- package/lib/cjs/api/app-binder/ParseStreamBlockSignatureTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/SetTrustedMemberTypes.js +2 -0
- package/lib/cjs/api/app-binder/SetTrustedMemberTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/SignBlockCommandTypes.js +2 -0
- package/lib/cjs/api/app-binder/SignBlockCommandTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/SignBlockHeaderCommandTypes.js +2 -0
- package/lib/cjs/api/app-binder/SignBlockHeaderCommandTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/SignBlockSignatureCommandTypes.js +2 -0
- package/lib/cjs/api/app-binder/SignBlockSignatureCommandTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/SignBlockSingleCommandTypes.js +2 -0
- package/lib/cjs/api/app-binder/SignBlockSingleCommandTypes.js.map +7 -0
- package/lib/cjs/api/index.js +1 -1
- package/lib/cjs/api/index.js.map +2 -2
- package/lib/cjs/internal/DefaultLedgerKeyringProtocol.js +1 -1
- package/lib/cjs/internal/DefaultLedgerKeyringProtocol.js.map +3 -3
- package/lib/cjs/internal/app-binder/LedgerKeyringProtocolBinder.js +1 -1
- package/lib/cjs/internal/app-binder/LedgerKeyringProtocolBinder.js.map +3 -3
- package/lib/cjs/internal/app-binder/command/GetAppNameCommand.js +1 -1
- package/lib/cjs/internal/app-binder/command/GetAppNameCommand.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/GetSeedIdCommand.js +1 -1
- package/lib/cjs/internal/app-binder/command/GetSeedIdCommand.js.map +3 -3
- package/lib/cjs/internal/app-binder/command/GetSeedIdCommand.test.js +2 -2
- package/lib/cjs/internal/app-binder/command/GetSeedIdCommand.test.js.map +3 -3
- package/lib/cjs/internal/app-binder/command/GetVersionCommand.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/InitCommand.js +1 -1
- package/lib/cjs/internal/app-binder/command/InitCommand.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/InitCommand.test.js +1 -1
- package/lib/cjs/internal/app-binder/command/InitCommand.test.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/ParseBlockSignatureCommand.js +1 -1
- package/lib/cjs/internal/app-binder/command/ParseBlockSignatureCommand.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/ParseBlockSignatureCommand.test.js +1 -1
- package/lib/cjs/internal/app-binder/command/ParseBlockSignatureCommand.test.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/ParseStreamBlockCommand.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/ParseStreamBlockCommand.test.js +1 -1
- package/lib/cjs/internal/app-binder/command/ParseStreamBlockCommand.test.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/ParseStreamBlockHeader.js +1 -1
- package/lib/cjs/internal/app-binder/command/ParseStreamBlockHeader.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/ParseStreamBlockHeader.test.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/SetTrustedMemberCommand.js +1 -1
- package/lib/cjs/internal/app-binder/command/SetTrustedMemberCommand.js.map +3 -3
- package/lib/cjs/internal/app-binder/command/SetTrustedMemberCommand.test.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/SignBlockHeader.js +1 -1
- package/lib/cjs/internal/app-binder/command/SignBlockHeader.js.map +3 -3
- package/lib/cjs/internal/app-binder/command/SignBlockHeader.test.js +1 -1
- package/lib/cjs/internal/app-binder/command/SignBlockHeader.test.js.map +3 -3
- package/lib/cjs/internal/app-binder/command/SignBlockSignatureCommand.js +1 -1
- package/lib/cjs/internal/app-binder/command/SignBlockSignatureCommand.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/SignBlockSignatureCommand.test.js +1 -1
- package/lib/cjs/internal/app-binder/command/SignBlockSignatureCommand.test.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/SignBlockSingleCommand.js +1 -1
- package/lib/cjs/internal/app-binder/command/SignBlockSingleCommand.js.map +2 -2
- package/lib/cjs/internal/app-binder/command/SignBlockSingleCommand.test.js +1 -1
- package/lib/cjs/internal/app-binder/command/SignBlockSingleCommand.test.js.map +2 -2
- package/lib/cjs/internal/app-binder/device-action/AddToTrustchainDeviceAction.js +1 -1
- package/lib/cjs/internal/app-binder/device-action/AddToTrustchainDeviceAction.js.map +3 -3
- package/lib/cjs/internal/app-binder/device-action/AuthenticateDeviceAction.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/AuthenticateDeviceAction.js.map +7 -0
- package/lib/cjs/internal/app-binder/task/InitTask.js +1 -1
- package/lib/cjs/internal/app-binder/task/InitTask.js.map +3 -3
- package/lib/cjs/internal/app-binder/task/ParseStreamToDeviceTask.js +1 -1
- package/lib/cjs/internal/app-binder/task/ParseStreamToDeviceTask.js.map +3 -3
- package/lib/cjs/internal/app-binder/task/SignBlockTask.js +1 -1
- package/lib/cjs/internal/app-binder/task/SignBlockTask.js.map +3 -3
- package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.js +1 -1
- package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.js.map +3 -3
- package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.test.js +1 -1
- package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.test.js.map +3 -3
- package/lib/cjs/internal/app-binder/task/utils/TrustedProperties.js +1 -1
- package/lib/cjs/internal/app-binder/task/utils/TrustedProperties.js.map +3 -3
- package/lib/cjs/internal/di.js +1 -1
- package/lib/cjs/internal/di.js.map +3 -3
- package/lib/cjs/internal/externalTypes.js +1 -1
- package/lib/cjs/internal/externalTypes.js.map +2 -2
- package/lib/cjs/internal/lkrp-datasource/data/HttpLKRPDataSource.js +1 -1
- package/lib/cjs/internal/lkrp-datasource/data/HttpLKRPDataSource.js.map +3 -3
- package/lib/cjs/internal/lkrp-datasource/data/HttpLKRPDataSource.test.js +1 -1
- package/lib/cjs/internal/lkrp-datasource/data/HttpLKRPDataSource.test.js.map +3 -3
- package/lib/cjs/internal/lkrp-datasource/data/LKRPDataSource.js +1 -1
- package/lib/cjs/internal/lkrp-datasource/data/LKRPDataSource.js.map +1 -1
- package/lib/cjs/internal/use-cases/authentication/AuthenticateUseCase.js +1 -1
- package/lib/cjs/internal/use-cases/authentication/AuthenticateUseCase.js.map +3 -3
- package/lib/cjs/internal/use-cases/di/useCasesModule.js +1 -1
- package/lib/cjs/internal/use-cases/di/useCasesModule.js.map +3 -3
- package/lib/cjs/internal/use-cases/di/useCasesTypes.js +1 -1
- package/lib/cjs/internal/use-cases/di/useCasesTypes.js.map +2 -2
- package/lib/cjs/internal/utils/LKRPBlock.js +4 -4
- package/lib/cjs/internal/utils/LKRPBlock.js.map +3 -3
- package/lib/cjs/internal/utils/LKRPBlock.test.js +3 -3
- package/lib/cjs/internal/utils/LKRPBlock.test.js.map +3 -3
- package/lib/cjs/internal/utils/LKRPBlockStream.js +2 -2
- package/lib/cjs/internal/utils/LKRPBlockStream.js.map +3 -3
- package/lib/cjs/internal/utils/LKRPBlockStream.test.js +3 -3
- package/lib/cjs/internal/utils/LKRPBlockStream.test.js.map +3 -3
- package/lib/cjs/internal/utils/LKRPCommand.js +2 -2
- package/lib/cjs/internal/utils/LKRPCommand.js.map +3 -3
- package/lib/cjs/internal/utils/LKRPCommand.test.js +1 -1
- package/lib/cjs/internal/utils/LKRPCommand.test.js.map +3 -3
- package/lib/cjs/internal/utils/TLVBuilder.js +2 -0
- package/lib/cjs/internal/utils/TLVBuilder.js.map +7 -0
- package/lib/cjs/internal/utils/TLVParser.js +1 -1
- package/lib/cjs/internal/utils/TLVParser.js.map +3 -3
- package/lib/cjs/internal/utils/TLVParser.test.js +1 -1
- package/lib/cjs/internal/utils/TLVParser.test.js.map +3 -3
- package/lib/cjs/internal/{models/Tags.js → utils/TLVTags.js} +1 -1
- package/lib/cjs/internal/{models/Tags.js.map → utils/TLVTags.js.map} +2 -2
- package/lib/cjs/internal/utils/crypto.js +2 -0
- package/lib/cjs/internal/utils/crypto.js.map +7 -0
- package/lib/cjs/internal/utils/hex.js +2 -0
- package/lib/cjs/internal/utils/hex.js.map +7 -0
- package/lib/cjs/internal/utils/required.js +1 -1
- package/lib/cjs/internal/utils/required.js.map +2 -2
- package/lib/cjs/internal/utils/types.js +2 -0
- package/lib/cjs/internal/utils/types.js.map +7 -0
- package/lib/cjs/package.json +2 -3
- package/lib/esm/api/LedgerKeyringProtocolBuilder.js +1 -1
- package/lib/esm/api/LedgerKeyringProtocolBuilder.js.map +3 -3
- package/lib/esm/api/app-binder/AddToTrustchainDeviceActionTypes.js +0 -1
- package/lib/esm/api/app-binder/AddToTrustchainDeviceActionTypes.js.map +4 -4
- package/lib/esm/api/app-binder/AuthenticateDeviceActionTypes.js +0 -1
- package/lib/esm/api/app-binder/AuthenticateDeviceActionTypes.js.map +4 -4
- package/lib/esm/api/app-binder/Errors.js +2 -0
- package/lib/esm/api/app-binder/Errors.js.map +7 -0
- package/lib/esm/api/app-binder/GetAppNameCommandTypes.js +1 -0
- package/lib/esm/api/app-binder/GetSeedIdCommandTypes.js +1 -0
- package/lib/esm/api/app-binder/InitCommandTypes.js +1 -0
- package/lib/esm/api/app-binder/KeypairFromBytes.js +2 -0
- package/lib/esm/api/app-binder/KeypairFromBytes.js.map +7 -0
- package/lib/esm/api/app-binder/LKRPTypes.js +2 -0
- package/lib/esm/api/app-binder/LKRPTypes.js.map +7 -0
- package/lib/esm/api/app-binder/ParseStreamBlockCommandCommandTypes.js +1 -0
- package/lib/esm/api/app-binder/ParseStreamBlockHeaderCommandTypes.js +1 -0
- package/lib/esm/api/app-binder/ParseStreamBlockSignatureTypes.js +1 -0
- package/lib/esm/api/app-binder/SetTrustedMemberTypes.js +1 -0
- package/lib/esm/api/app-binder/SetTrustedMemberTypes.js.map +7 -0
- package/lib/esm/api/app-binder/SignBlockCommandTypes.js +1 -0
- package/lib/esm/api/app-binder/SignBlockCommandTypes.js.map +7 -0
- package/lib/esm/api/app-binder/SignBlockHeaderCommandTypes.js +1 -0
- package/lib/esm/api/app-binder/SignBlockHeaderCommandTypes.js.map +7 -0
- package/lib/esm/api/app-binder/SignBlockSignatureCommandTypes.js +1 -0
- package/lib/esm/api/app-binder/SignBlockSignatureCommandTypes.js.map +7 -0
- package/lib/esm/api/app-binder/SignBlockSingleCommandTypes.js +1 -0
- package/lib/esm/api/app-binder/SignBlockSingleCommandTypes.js.map +7 -0
- package/lib/esm/api/index.js +1 -1
- package/lib/esm/api/index.js.map +2 -2
- package/lib/esm/internal/DefaultLedgerKeyringProtocol.js +1 -1
- package/lib/esm/internal/DefaultLedgerKeyringProtocol.js.map +3 -3
- package/lib/esm/internal/app-binder/LedgerKeyringProtocolBinder.js +1 -1
- package/lib/esm/internal/app-binder/LedgerKeyringProtocolBinder.js.map +3 -3
- package/lib/esm/internal/app-binder/command/GetAppNameCommand.js +1 -1
- package/lib/esm/internal/app-binder/command/GetAppNameCommand.js.map +2 -2
- package/lib/esm/internal/app-binder/command/GetSeedIdCommand.js +1 -1
- package/lib/esm/internal/app-binder/command/GetSeedIdCommand.js.map +3 -3
- package/lib/esm/internal/app-binder/command/GetSeedIdCommand.test.js +1 -1
- package/lib/esm/internal/app-binder/command/GetSeedIdCommand.test.js.map +3 -3
- package/lib/esm/internal/app-binder/command/GetVersionCommand.js.map +2 -2
- package/lib/esm/internal/app-binder/command/InitCommand.js +1 -1
- package/lib/esm/internal/app-binder/command/InitCommand.js.map +2 -2
- package/lib/esm/internal/app-binder/command/InitCommand.test.js +1 -1
- package/lib/esm/internal/app-binder/command/InitCommand.test.js.map +2 -2
- package/lib/esm/internal/app-binder/command/ParseBlockSignatureCommand.js +1 -1
- package/lib/esm/internal/app-binder/command/ParseBlockSignatureCommand.js.map +2 -2
- package/lib/esm/internal/app-binder/command/ParseBlockSignatureCommand.test.js +1 -1
- package/lib/esm/internal/app-binder/command/ParseBlockSignatureCommand.test.js.map +2 -2
- package/lib/esm/internal/app-binder/command/ParseStreamBlockCommand.js.map +2 -2
- package/lib/esm/internal/app-binder/command/ParseStreamBlockCommand.test.js +1 -1
- package/lib/esm/internal/app-binder/command/ParseStreamBlockCommand.test.js.map +2 -2
- package/lib/esm/internal/app-binder/command/ParseStreamBlockHeader.js +1 -1
- package/lib/esm/internal/app-binder/command/ParseStreamBlockHeader.js.map +2 -2
- package/lib/esm/internal/app-binder/command/ParseStreamBlockHeader.test.js.map +2 -2
- package/lib/esm/internal/app-binder/command/SetTrustedMemberCommand.js +1 -1
- package/lib/esm/internal/app-binder/command/SetTrustedMemberCommand.js.map +2 -2
- package/lib/esm/internal/app-binder/command/SetTrustedMemberCommand.test.js +1 -1
- package/lib/esm/internal/app-binder/command/SetTrustedMemberCommand.test.js.map +2 -2
- package/lib/esm/internal/app-binder/command/SignBlockHeader.js +1 -1
- package/lib/esm/internal/app-binder/command/SignBlockHeader.js.map +3 -3
- package/lib/esm/internal/app-binder/command/SignBlockHeader.test.js +1 -1
- package/lib/esm/internal/app-binder/command/SignBlockHeader.test.js.map +3 -3
- package/lib/esm/internal/app-binder/command/SignBlockSignatureCommand.js +1 -1
- package/lib/esm/internal/app-binder/command/SignBlockSignatureCommand.js.map +2 -2
- package/lib/esm/internal/app-binder/command/SignBlockSignatureCommand.test.js +1 -1
- package/lib/esm/internal/app-binder/command/SignBlockSignatureCommand.test.js.map +2 -2
- package/lib/esm/internal/app-binder/command/SignBlockSingleCommand.js +1 -1
- package/lib/esm/internal/app-binder/command/SignBlockSingleCommand.js.map +2 -2
- package/lib/esm/internal/app-binder/command/SignBlockSingleCommand.test.js +1 -1
- package/lib/esm/internal/app-binder/command/SignBlockSingleCommand.test.js.map +2 -2
- package/lib/esm/internal/app-binder/device-action/AddToTrustchainDeviceAction.js +1 -1
- package/lib/esm/internal/app-binder/device-action/AddToTrustchainDeviceAction.js.map +3 -3
- package/lib/esm/internal/app-binder/device-action/AuthenticateDeviceAction.js +2 -0
- package/lib/esm/internal/app-binder/device-action/AuthenticateDeviceAction.js.map +7 -0
- package/lib/esm/internal/app-binder/task/InitTask.js +1 -1
- package/lib/esm/internal/app-binder/task/InitTask.js.map +3 -3
- package/lib/esm/internal/app-binder/task/ParseStreamToDeviceTask.js +1 -1
- package/lib/esm/internal/app-binder/task/ParseStreamToDeviceTask.js.map +3 -3
- package/lib/esm/internal/app-binder/task/SignBlockTask.js +1 -1
- package/lib/esm/internal/app-binder/task/SignBlockTask.js.map +3 -3
- package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.js +1 -1
- package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.js.map +3 -3
- package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.test.js +1 -1
- package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.test.js.map +3 -3
- package/lib/esm/internal/app-binder/task/utils/TrustedProperties.js +1 -1
- package/lib/esm/internal/app-binder/task/utils/TrustedProperties.js.map +3 -3
- package/lib/esm/internal/di.js +1 -1
- package/lib/esm/internal/di.js.map +3 -3
- package/lib/esm/internal/externalTypes.js +1 -1
- package/lib/esm/internal/externalTypes.js.map +2 -2
- package/lib/esm/internal/lkrp-datasource/data/HttpLKRPDataSource.js +1 -1
- package/lib/esm/internal/lkrp-datasource/data/HttpLKRPDataSource.js.map +3 -3
- package/lib/esm/internal/lkrp-datasource/data/HttpLKRPDataSource.test.js +1 -1
- package/lib/esm/internal/lkrp-datasource/data/HttpLKRPDataSource.test.js.map +3 -3
- package/lib/esm/internal/use-cases/authentication/AuthenticateUseCase.js +1 -1
- package/lib/esm/internal/use-cases/authentication/AuthenticateUseCase.js.map +3 -3
- package/lib/esm/internal/use-cases/di/useCasesModule.js +1 -1
- package/lib/esm/internal/use-cases/di/useCasesModule.js.map +3 -3
- package/lib/esm/internal/use-cases/di/useCasesTypes.js +1 -1
- package/lib/esm/internal/use-cases/di/useCasesTypes.js.map +2 -2
- package/lib/esm/internal/utils/LKRPBlock.js +3 -3
- package/lib/esm/internal/utils/LKRPBlock.js.map +3 -3
- package/lib/esm/internal/utils/LKRPBlock.test.js +2 -2
- package/lib/esm/internal/utils/LKRPBlock.test.js.map +3 -3
- package/lib/esm/internal/utils/LKRPBlockStream.js +2 -2
- package/lib/esm/internal/utils/LKRPBlockStream.js.map +3 -3
- package/lib/esm/internal/utils/LKRPBlockStream.test.js +3 -3
- package/lib/esm/internal/utils/LKRPBlockStream.test.js.map +3 -3
- package/lib/esm/internal/utils/LKRPCommand.js +2 -2
- package/lib/esm/internal/utils/LKRPCommand.js.map +3 -3
- package/lib/esm/internal/utils/LKRPCommand.test.js +1 -1
- package/lib/esm/internal/utils/LKRPCommand.test.js.map +3 -3
- package/lib/esm/internal/utils/TLVBuilder.js +2 -0
- package/lib/esm/internal/utils/TLVBuilder.js.map +7 -0
- package/lib/esm/internal/utils/TLVParser.js +1 -1
- package/lib/esm/internal/utils/TLVParser.js.map +3 -3
- package/lib/esm/internal/utils/TLVParser.test.js +1 -1
- package/lib/esm/internal/utils/TLVParser.test.js.map +3 -3
- package/lib/esm/internal/{models/Tags.js → utils/TLVTags.js} +1 -1
- package/lib/esm/internal/{models/Tags.js.map → utils/TLVTags.js.map} +1 -1
- package/lib/esm/internal/utils/crypto.js +2 -0
- package/lib/esm/internal/utils/crypto.js.map +7 -0
- package/lib/esm/internal/utils/hex.js +2 -0
- package/lib/esm/internal/utils/hex.js.map +7 -0
- package/lib/esm/internal/utils/required.js +1 -1
- package/lib/esm/internal/utils/required.js.map +2 -2
- package/lib/esm/internal/utils/types.js +1 -0
- package/lib/esm/internal/utils/types.js.map +7 -0
- package/lib/esm/package.json +2 -3
- package/lib/types/api/LedgerKeyringProtocol.d.ts +5 -4
- package/lib/types/api/LedgerKeyringProtocol.d.ts.map +1 -1
- package/lib/types/api/LedgerKeyringProtocolBuilder.d.ts +6 -12
- package/lib/types/api/LedgerKeyringProtocolBuilder.d.ts.map +1 -1
- package/lib/types/api/app-binder/AddToTrustchainDeviceActionTypes.d.ts +11 -25
- package/lib/types/api/app-binder/AddToTrustchainDeviceActionTypes.d.ts.map +1 -1
- package/lib/types/api/app-binder/AuthenticateDeviceActionTypes.d.ts +31 -27
- package/lib/types/api/app-binder/AuthenticateDeviceActionTypes.d.ts.map +1 -1
- package/lib/types/api/app-binder/Errors.d.ts +27 -0
- package/lib/types/api/app-binder/Errors.d.ts.map +1 -0
- package/lib/types/api/app-binder/GetAppNameCommandTypes.d.ts +5 -0
- package/lib/types/api/app-binder/GetAppNameCommandTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/GetSeedIdCommandTypes.d.ts +14 -0
- package/lib/types/api/app-binder/GetSeedIdCommandTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/GetVersionCommandTypes.d.ts +1 -0
- package/lib/types/api/app-binder/GetVersionCommandTypes.d.ts.map +1 -1
- package/lib/types/api/app-binder/InitCommandTypes.d.ts +5 -0
- package/lib/types/api/app-binder/InitCommandTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/KeypairFromBytes.d.ts +11 -0
- package/lib/types/api/app-binder/KeypairFromBytes.d.ts.map +1 -0
- package/lib/types/api/{model/Permissions.d.ts → app-binder/LKRPTypes.d.ts} +15 -1
- package/lib/types/api/app-binder/LKRPTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/ParseStreamBlockCommandCommandTypes.d.ts +6 -0
- package/lib/types/api/app-binder/ParseStreamBlockCommandCommandTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/ParseStreamBlockHeaderCommandTypes.d.ts +5 -0
- package/lib/types/api/app-binder/ParseStreamBlockHeaderCommandTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/ParseStreamBlockSignatureTypes.d.ts +5 -0
- package/lib/types/api/app-binder/ParseStreamBlockSignatureTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/SetTrustedMemberTypes.d.ts +6 -0
- package/lib/types/api/app-binder/SetTrustedMemberTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/SignBlockCommandTypes.d.ts +9 -0
- package/lib/types/api/app-binder/SignBlockCommandTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/SignBlockHeaderCommandTypes.d.ts +5 -0
- package/lib/types/api/app-binder/SignBlockHeaderCommandTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/SignBlockSignatureCommandTypes.d.ts +6 -0
- package/lib/types/api/app-binder/SignBlockSignatureCommandTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/SignBlockSingleCommandTypes.d.ts +5 -0
- package/lib/types/api/app-binder/SignBlockSingleCommandTypes.d.ts.map +1 -0
- package/lib/types/api/index.d.ts +2 -10
- package/lib/types/api/index.d.ts.map +1 -1
- package/lib/types/internal/DefaultLedgerKeyringProtocol.d.ts +9 -12
- package/lib/types/internal/DefaultLedgerKeyringProtocol.d.ts.map +1 -1
- package/lib/types/internal/app-binder/LedgerKeyringProtocolBinder.d.ts +8 -14
- package/lib/types/internal/app-binder/LedgerKeyringProtocolBinder.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/GetAppNameCommand.d.ts +1 -4
- package/lib/types/internal/app-binder/command/GetAppNameCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/GetSeedIdCommand.d.ts +1 -13
- package/lib/types/internal/app-binder/command/GetSeedIdCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/GetVersionCommand.d.ts +1 -2
- package/lib/types/internal/app-binder/command/GetVersionCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/InitCommand.d.ts +1 -4
- package/lib/types/internal/app-binder/command/InitCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/ParseBlockSignatureCommand.d.ts +1 -4
- package/lib/types/internal/app-binder/command/ParseBlockSignatureCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/ParseStreamBlockCommand.d.ts +1 -5
- package/lib/types/internal/app-binder/command/ParseStreamBlockCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/ParseStreamBlockHeader.d.ts +1 -4
- package/lib/types/internal/app-binder/command/ParseStreamBlockHeader.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/SetTrustedMemberCommand.d.ts +1 -5
- package/lib/types/internal/app-binder/command/SetTrustedMemberCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/SignBlockHeader.d.ts +1 -6
- package/lib/types/internal/app-binder/command/SignBlockHeader.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/SignBlockSignatureCommand.d.ts +1 -5
- package/lib/types/internal/app-binder/command/SignBlockSignatureCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/SignBlockSingleCommand.d.ts +1 -4
- package/lib/types/internal/app-binder/command/SignBlockSingleCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/device-action/AddToTrustchainDeviceAction.d.ts +6 -10
- package/lib/types/internal/app-binder/device-action/AddToTrustchainDeviceAction.d.ts.map +1 -1
- package/lib/types/internal/app-binder/device-action/AuthenticateDeviceAction.d.ts +42 -0
- package/lib/types/internal/app-binder/device-action/AuthenticateDeviceAction.d.ts.map +1 -0
- package/lib/types/internal/app-binder/task/InitTask.d.ts +3 -5
- package/lib/types/internal/app-binder/task/InitTask.d.ts.map +1 -1
- package/lib/types/internal/app-binder/task/ParseStreamToDeviceTask.d.ts +3 -3
- package/lib/types/internal/app-binder/task/ParseStreamToDeviceTask.d.ts.map +1 -1
- package/lib/types/internal/app-binder/task/SignBlockTask.d.ts +13 -15
- package/lib/types/internal/app-binder/task/SignBlockTask.d.ts.map +1 -1
- package/lib/types/internal/app-binder/task/SignChallengeWithKeypairTask.d.ts +5 -6
- package/lib/types/internal/app-binder/task/SignChallengeWithKeypairTask.d.ts.map +1 -1
- package/lib/types/internal/app-binder/task/utils/TrustedProperties.d.ts +2 -2
- package/lib/types/internal/app-binder/task/utils/TrustedProperties.d.ts.map +1 -1
- package/lib/types/internal/di.d.ts +3 -7
- package/lib/types/internal/di.d.ts.map +1 -1
- package/lib/types/internal/externalTypes.d.ts +1 -2
- package/lib/types/internal/externalTypes.d.ts.map +1 -1
- package/lib/types/internal/lkrp-datasource/data/HttpLKRPDataSource.d.ts +10 -8
- package/lib/types/internal/lkrp-datasource/data/HttpLKRPDataSource.d.ts.map +1 -1
- package/lib/types/internal/lkrp-datasource/data/LKRPDataSource.d.ts +8 -8
- package/lib/types/internal/lkrp-datasource/data/LKRPDataSource.d.ts.map +1 -1
- package/lib/types/internal/use-cases/authentication/AuthenticateUseCase.d.ts +2 -15
- package/lib/types/internal/use-cases/authentication/AuthenticateUseCase.d.ts.map +1 -1
- package/lib/types/internal/use-cases/di/useCasesModule.d.ts.map +1 -1
- package/lib/types/internal/use-cases/di/useCasesTypes.d.ts +0 -2
- package/lib/types/internal/use-cases/di/useCasesTypes.d.ts.map +1 -1
- package/lib/types/internal/utils/LKRPBlock.d.ts +2 -2
- package/lib/types/internal/utils/LKRPBlock.d.ts.map +1 -1
- package/lib/types/internal/utils/LKRPBlockStream.d.ts +8 -8
- package/lib/types/internal/utils/LKRPBlockStream.d.ts.map +1 -1
- package/lib/types/internal/utils/LKRPCommand.d.ts +3 -4
- package/lib/types/internal/utils/LKRPCommand.d.ts.map +1 -1
- package/lib/types/internal/utils/TLVBuilder.d.ts +15 -0
- package/lib/types/internal/utils/TLVBuilder.d.ts.map +1 -0
- package/lib/types/internal/utils/TLVParser.d.ts +3 -4
- package/lib/types/internal/utils/TLVParser.d.ts.map +1 -1
- package/lib/types/internal/{models/Tags.d.ts → utils/TLVTags.d.ts} +1 -1
- package/lib/types/internal/utils/TLVTags.d.ts.map +1 -0
- package/lib/types/internal/utils/crypto.d.ts +19 -0
- package/lib/types/internal/utils/crypto.d.ts.map +1 -0
- package/lib/types/internal/utils/hex.d.ts +3 -0
- package/lib/types/internal/utils/hex.d.ts.map +1 -0
- package/lib/types/internal/utils/required.d.ts +1 -1
- package/lib/types/internal/utils/required.d.ts.map +1 -1
- package/lib/types/internal/{models/LKRPCommandTypes.d.ts → utils/types.d.ts} +29 -6
- package/lib/types/internal/utils/types.d.ts.map +1 -0
- package/lib/types/tsconfig.prod.tsbuildinfo +1 -1
- package/package.json +6 -7
- package/lib/cjs/api/crypto/CryptoService.js +0 -2
- package/lib/cjs/api/crypto/CryptoService.js.map +0 -7
- package/lib/cjs/api/crypto/Key.js +0 -2
- package/lib/cjs/api/crypto/Key.js.map +0 -7
- package/lib/cjs/api/crypto/KeyPair.js +0 -2
- package/lib/cjs/api/crypto/KeyPair.js.map +0 -7
- package/lib/cjs/api/crypto/noble/NobleCryptoService.js +0 -2
- package/lib/cjs/api/crypto/noble/NobleCryptoService.js.map +0 -7
- package/lib/cjs/api/crypto/noble/NobleCryptoService.test.js +0 -2
- package/lib/cjs/api/crypto/noble/NobleCryptoService.test.js.map +0 -7
- package/lib/cjs/api/crypto/noble/NobleKey.js +0 -2
- package/lib/cjs/api/crypto/noble/NobleKey.js.map +0 -7
- package/lib/cjs/api/crypto/noble/NobleKey.test.js +0 -2
- package/lib/cjs/api/crypto/noble/NobleKey.test.js.map +0 -7
- package/lib/cjs/api/crypto/noble/NobleKeyPair.js +0 -2
- package/lib/cjs/api/crypto/noble/NobleKeyPair.js.map +0 -7
- package/lib/cjs/api/crypto/noble/NobleKeyPair.test.js +0 -2
- package/lib/cjs/api/crypto/noble/NobleKeyPair.test.js.map +0 -7
- package/lib/cjs/api/model/Env.js +0 -2
- package/lib/cjs/api/model/Env.js.map +0 -7
- package/lib/cjs/api/model/Errors.js +0 -2
- package/lib/cjs/api/model/Errors.js.map +0 -7
- package/lib/cjs/api/model/JWT.js +0 -2
- package/lib/cjs/api/model/JWT.js.map +0 -7
- package/lib/cjs/api/model/Permissions.js +0 -2
- package/lib/cjs/api/model/Permissions.js.map +0 -7
- package/lib/cjs/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.js +0 -2
- package/lib/cjs/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.js.map +0 -7
- package/lib/cjs/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js +0 -2
- package/lib/cjs/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js.map +0 -7
- package/lib/cjs/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.js +0 -2
- package/lib/cjs/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.js.map +0 -7
- package/lib/cjs/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.js +0 -2
- package/lib/cjs/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.js.map +0 -7
- package/lib/cjs/internal/app-binder/task/AuthenticateTask.js +0 -2
- package/lib/cjs/internal/app-binder/task/AuthenticateTask.js.map +0 -7
- package/lib/cjs/internal/app-binder/task/ExtractEncryptionKeyTask.js +0 -2
- package/lib/cjs/internal/app-binder/task/ExtractEncryptionKeyTask.js.map +0 -7
- package/lib/cjs/internal/models/LKRPBlockTypes.js +0 -2
- package/lib/cjs/internal/models/LKRPBlockTypes.js.map +0 -7
- package/lib/cjs/internal/models/LKRPCommandTypes.js +0 -2
- package/lib/cjs/internal/models/LKRPCommandTypes.js.map +0 -7
- package/lib/cjs/internal/models/Types.js +0 -2
- package/lib/cjs/internal/models/Types.js.map +0 -7
- package/lib/cjs/internal/use-cases/authentication/DecryptDataUseCase.js +0 -2
- package/lib/cjs/internal/use-cases/authentication/DecryptDataUseCase.js.map +0 -7
- package/lib/cjs/internal/use-cases/authentication/EncryptDataUseCase.js +0 -2
- package/lib/cjs/internal/use-cases/authentication/EncryptDataUseCase.js.map +0 -7
- package/lib/cjs/internal/utils/Trustchain.js +0 -2
- package/lib/cjs/internal/utils/Trustchain.js.map +0 -7
- package/lib/esm/api/crypto/CryptoService.js +0 -2
- package/lib/esm/api/crypto/CryptoService.js.map +0 -7
- package/lib/esm/api/crypto/Key.js +0 -2
- package/lib/esm/api/crypto/Key.js.map +0 -7
- package/lib/esm/api/crypto/KeyPair.js +0 -2
- package/lib/esm/api/crypto/KeyPair.js.map +0 -7
- package/lib/esm/api/crypto/noble/NobleCryptoService.js +0 -2
- package/lib/esm/api/crypto/noble/NobleCryptoService.js.map +0 -7
- package/lib/esm/api/crypto/noble/NobleCryptoService.test.js +0 -2
- package/lib/esm/api/crypto/noble/NobleCryptoService.test.js.map +0 -7
- package/lib/esm/api/crypto/noble/NobleKey.js +0 -2
- package/lib/esm/api/crypto/noble/NobleKey.js.map +0 -7
- package/lib/esm/api/crypto/noble/NobleKey.test.js +0 -2
- package/lib/esm/api/crypto/noble/NobleKey.test.js.map +0 -7
- package/lib/esm/api/crypto/noble/NobleKeyPair.js +0 -2
- package/lib/esm/api/crypto/noble/NobleKeyPair.js.map +0 -7
- package/lib/esm/api/crypto/noble/NobleKeyPair.test.js +0 -2
- package/lib/esm/api/crypto/noble/NobleKeyPair.test.js.map +0 -7
- package/lib/esm/api/model/Env.js +0 -2
- package/lib/esm/api/model/Env.js.map +0 -7
- package/lib/esm/api/model/Errors.js +0 -2
- package/lib/esm/api/model/Errors.js.map +0 -7
- package/lib/esm/api/model/JWT.js +0 -1
- package/lib/esm/api/model/Permissions.js +0 -2
- package/lib/esm/api/model/Permissions.js.map +0 -7
- package/lib/esm/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.js +0 -2
- package/lib/esm/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.js.map +0 -7
- package/lib/esm/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js +0 -2
- package/lib/esm/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js.map +0 -7
- package/lib/esm/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.js +0 -1
- package/lib/esm/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.js +0 -1
- package/lib/esm/internal/app-binder/task/AuthenticateTask.js +0 -2
- package/lib/esm/internal/app-binder/task/AuthenticateTask.js.map +0 -7
- package/lib/esm/internal/app-binder/task/ExtractEncryptionKeyTask.js +0 -2
- package/lib/esm/internal/app-binder/task/ExtractEncryptionKeyTask.js.map +0 -7
- package/lib/esm/internal/models/LKRPBlockTypes.js +0 -1
- package/lib/esm/internal/models/LKRPCommandTypes.js +0 -1
- package/lib/esm/internal/models/Types.js +0 -1
- package/lib/esm/internal/use-cases/authentication/DecryptDataUseCase.js +0 -2
- package/lib/esm/internal/use-cases/authentication/DecryptDataUseCase.js.map +0 -7
- package/lib/esm/internal/use-cases/authentication/EncryptDataUseCase.js +0 -2
- package/lib/esm/internal/use-cases/authentication/EncryptDataUseCase.js.map +0 -7
- package/lib/esm/internal/utils/Trustchain.js +0 -2
- package/lib/esm/internal/utils/Trustchain.js.map +0 -7
- package/lib/types/api/crypto/CryptoService.d.ts +0 -22
- package/lib/types/api/crypto/CryptoService.d.ts.map +0 -1
- package/lib/types/api/crypto/Key.d.ts +0 -7
- package/lib/types/api/crypto/Key.d.ts.map +0 -1
- package/lib/types/api/crypto/KeyPair.d.ts +0 -13
- package/lib/types/api/crypto/KeyPair.d.ts.map +0 -1
- package/lib/types/api/crypto/noble/NobleCryptoService.d.ts +0 -13
- package/lib/types/api/crypto/noble/NobleCryptoService.d.ts.map +0 -1
- package/lib/types/api/crypto/noble/NobleCryptoService.test.d.ts +0 -2
- package/lib/types/api/crypto/noble/NobleCryptoService.test.d.ts.map +0 -1
- package/lib/types/api/crypto/noble/NobleKey.d.ts +0 -11
- package/lib/types/api/crypto/noble/NobleKey.d.ts.map +0 -1
- package/lib/types/api/crypto/noble/NobleKey.test.d.ts +0 -2
- package/lib/types/api/crypto/noble/NobleKey.test.d.ts.map +0 -1
- package/lib/types/api/crypto/noble/NobleKeyPair.d.ts +0 -18
- package/lib/types/api/crypto/noble/NobleKeyPair.d.ts.map +0 -1
- package/lib/types/api/crypto/noble/NobleKeyPair.test.d.ts +0 -2
- package/lib/types/api/crypto/noble/NobleKeyPair.test.d.ts.map +0 -1
- package/lib/types/api/model/Env.d.ts +0 -5
- package/lib/types/api/model/Env.d.ts.map +0 -1
- package/lib/types/api/model/Errors.d.ts +0 -53
- package/lib/types/api/model/Errors.d.ts.map +0 -1
- package/lib/types/api/model/JWT.d.ts +0 -9
- package/lib/types/api/model/JWT.d.ts.map +0 -1
- package/lib/types/api/model/Permissions.d.ts.map +0 -1
- package/lib/types/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.d.ts +0 -32
- package/lib/types/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.d.ts.map +0 -1
- package/lib/types/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.d.ts +0 -33
- package/lib/types/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.d.ts.map +0 -1
- package/lib/types/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.d.ts +0 -22
- package/lib/types/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.d.ts.map +0 -1
- package/lib/types/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.d.ts +0 -19
- package/lib/types/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.d.ts.map +0 -1
- package/lib/types/internal/app-binder/task/AuthenticateTask.d.ts +0 -9
- package/lib/types/internal/app-binder/task/AuthenticateTask.d.ts.map +0 -1
- package/lib/types/internal/app-binder/task/ExtractEncryptionKeyTask.d.ts +0 -8
- package/lib/types/internal/app-binder/task/ExtractEncryptionKeyTask.d.ts.map +0 -1
- package/lib/types/internal/models/LKRPBlockTypes.d.ts +0 -11
- package/lib/types/internal/models/LKRPBlockTypes.d.ts.map +0 -1
- package/lib/types/internal/models/LKRPCommandTypes.d.ts.map +0 -1
- package/lib/types/internal/models/Tags.d.ts.map +0 -1
- package/lib/types/internal/models/Types.d.ts +0 -10
- package/lib/types/internal/models/Types.d.ts.map +0 -1
- package/lib/types/internal/use-cases/authentication/DecryptDataUseCase.d.ts +0 -7
- package/lib/types/internal/use-cases/authentication/DecryptDataUseCase.d.ts.map +0 -1
- package/lib/types/internal/use-cases/authentication/EncryptDataUseCase.d.ts +0 -7
- package/lib/types/internal/use-cases/authentication/EncryptDataUseCase.d.ts.map +0 -1
- package/lib/types/internal/utils/Trustchain.d.ts +0 -14
- package/lib/types/internal/utils/Trustchain.d.ts.map +0 -1
- /package/lib/esm/api/{model/JWT.js.map → app-binder/GetAppNameCommandTypes.js.map} +0 -0
- /package/lib/esm/{internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.js.map → api/app-binder/GetSeedIdCommandTypes.js.map} +0 -0
- /package/lib/esm/{internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.js.map → api/app-binder/InitCommandTypes.js.map} +0 -0
- /package/lib/esm/{internal/models/LKRPBlockTypes.js.map → api/app-binder/ParseStreamBlockCommandCommandTypes.js.map} +0 -0
- /package/lib/esm/{internal/models/LKRPCommandTypes.js.map → api/app-binder/ParseStreamBlockHeaderCommandTypes.js.map} +0 -0
- /package/lib/esm/{internal/models/Types.js.map → api/app-binder/ParseStreamBlockSignatureTypes.js.map} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type DeviceActionStateMachine, type InternalApi, XStateDeviceAction } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type Either } from "purify-ts";
|
|
3
|
+
import { type AuthenticateDAError, type AuthenticateDAInput, type AuthenticateDAIntermediateValue, type AuthenticateDAInternalState, type AuthenticateDAOutput } from "../../../api/app-binder/AuthenticateDeviceActionTypes";
|
|
4
|
+
import { LKRPMissingDataError } from "../../../api/app-binder/Errors";
|
|
5
|
+
import { type Keypair } from "../../../api/app-binder/LKRPTypes";
|
|
6
|
+
import { type JWT } from "../../../api/index";
|
|
7
|
+
import { type LKRPDataSource } from "../../lkrp-datasource/data/LKRPDataSource";
|
|
8
|
+
import { LKRPBlockStream } from "../../utils/LKRPBlockStream";
|
|
9
|
+
export declare class AuthenticateDeviceAction extends XStateDeviceAction<AuthenticateDAOutput, AuthenticateDAInput, AuthenticateDAError, AuthenticateDAIntermediateValue, AuthenticateDAInternalState> {
|
|
10
|
+
makeStateMachine(internalApi: InternalApi): DeviceActionStateMachine<AuthenticateDAOutput, AuthenticateDAInput, AuthenticateDAError, AuthenticateDAIntermediateValue, AuthenticateDAInternalState>;
|
|
11
|
+
extractDependencies(internalApi: InternalApi): {
|
|
12
|
+
deviceAuth: (args: {
|
|
13
|
+
input: {
|
|
14
|
+
lkrpDataSource: LKRPDataSource;
|
|
15
|
+
};
|
|
16
|
+
}) => Promise<Either<AuthenticateDAError, import("../../lkrp-datasource/data/LKRPDataSource").AuthenticationResponse>>;
|
|
17
|
+
keypairAuth: (args: {
|
|
18
|
+
input: Pick<AuthenticateDAInput, "lkrpDataSource" | "keypair"> & {
|
|
19
|
+
trustchainId: Either<LKRPMissingDataError, string>;
|
|
20
|
+
};
|
|
21
|
+
}) => Promise<Either<AuthenticateDAError, import("../../lkrp-datasource/data/LKRPDataSource").AuthenticationResponse>>;
|
|
22
|
+
getTrustchain: (args: {
|
|
23
|
+
input: Either<AuthenticateDAError, {
|
|
24
|
+
applicationId: number;
|
|
25
|
+
lkrpDataSource: LKRPDataSource;
|
|
26
|
+
trustchainId: string;
|
|
27
|
+
jwt: JWT;
|
|
28
|
+
}>;
|
|
29
|
+
}) => Promise<Either<AuthenticateDAError, {
|
|
30
|
+
trustchain: import("../../utils/types").Trustchain;
|
|
31
|
+
applicationStream: LKRPBlockStream;
|
|
32
|
+
}>>;
|
|
33
|
+
extractEncryptionKey: (args: {
|
|
34
|
+
input: Either<AuthenticateDAError, {
|
|
35
|
+
applicationStream: LKRPBlockStream;
|
|
36
|
+
keypair: Keypair;
|
|
37
|
+
}>;
|
|
38
|
+
}) => Promise<Either<AuthenticateDAError, Uint8Array<ArrayBufferLike>>>;
|
|
39
|
+
};
|
|
40
|
+
private auth;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=AuthenticateDeviceAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthenticateDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../src/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,cAAc,EAAE,cAAc,CAAC;gBAC/B,YAAY,EAAE,MAAM,CAAC;gBACrB,GAAG,EAAE,GAAG,CAAC;aACV,CACF,CAAC;SACH;;;;qCAckC;YACjC,KAAK,EAAE,MAAM,CACX,mBAAmB,EACnB;gBACE,iBAAiB,EAAE,eAAe,CAAC;gBACnC,OAAO,EAAE,OAAO,CAAC;aAClB,CACF,CAAC;SACH;;IAqBL,OAAO,CAAC,IAAI;CAab"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { type InternalApi } from "@ledgerhq/device-management-kit";
|
|
2
2
|
import { type Either } from "purify-ts";
|
|
3
|
-
import { type
|
|
4
|
-
import { type KeyPair } from "../../../api/crypto/KeyPair";
|
|
3
|
+
import { type Keypair } from "../../../api/index";
|
|
5
4
|
import { type LKRPDeviceCommandError } from "../../app-binder/command/utils/ledgerKeyringProtocolErrors";
|
|
6
5
|
export declare class InitTask {
|
|
7
6
|
private readonly api;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
run(): Promise<Either<LKRPDeviceCommandError, KeyPair>>;
|
|
7
|
+
constructor(api: InternalApi);
|
|
8
|
+
run(): Promise<Either<LKRPDeviceCommandError, Keypair>>;
|
|
11
9
|
}
|
|
12
10
|
//# sourceMappingURL=InitTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/InitTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,WAAW,CAAC;AAErD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"InitTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/InitTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,WAAW,CAAC;AAErD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gEAAgE,CAAC;AAG7G,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,WAAW;IAEvC,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;CAU9D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type InternalApi } from "@ledgerhq/device-management-kit";
|
|
1
|
+
import { type InternalApi, UnknownDAError } from "@ledgerhq/device-management-kit";
|
|
2
2
|
import { type Either, EitherAsync } from "purify-ts";
|
|
3
|
-
import { type LKRPMissingDataError, type LKRPParsingError
|
|
3
|
+
import { type LKRPMissingDataError, type LKRPParsingError } from "../../../api/app-binder/Errors";
|
|
4
4
|
import { type LKRPDeviceCommandError } from "../../app-binder/command/utils/ledgerKeyringProtocolErrors";
|
|
5
5
|
import { type LKRPBlock } from "../../utils/LKRPBlock";
|
|
6
6
|
import { type LKRPBlockStream } from "../../utils/LKRPBlockStream";
|
|
@@ -9,7 +9,7 @@ export type ParseStreamToDeviceTaskInput = {
|
|
|
9
9
|
seedBlock: LKRPBlock;
|
|
10
10
|
applicationStream: LKRPBlockStream | null;
|
|
11
11
|
};
|
|
12
|
-
type ParseStreamTaskError = LKRPDeviceCommandError | LKRPParsingError | LKRPMissingDataError |
|
|
12
|
+
type ParseStreamTaskError = LKRPDeviceCommandError | LKRPParsingError | LKRPMissingDataError | UnknownDAError;
|
|
13
13
|
export declare class ParseStreamToDeviceTask {
|
|
14
14
|
private readonly api;
|
|
15
15
|
private lastTrustedMember;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParseStreamToDeviceTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/ParseStreamToDeviceTask.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ParseStreamToDeviceTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/ParseStreamToDeviceTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EAChB,cAAc,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAAE,WAAW,EAAe,MAAM,WAAW,CAAC;AAElE,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gEAAgE,CAAC;AAG7G,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAK/D,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,eAAe,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,KAAK,oBAAoB,GACrB,sBAAsB,GACtB,gBAAgB,GAChB,oBAAoB,GACpB,cAAc,CAAC;AAEnB,qBAAa,uBAAuB;IAItB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAHhC,OAAO,CAAC,iBAAiB,CAAuB;IAChD,OAAO,CAAC,cAAc,CAAkD;gBAE3C,GAAG,EAAE,WAAW;IAE7C,GAAG,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,4BAA4B;IASlE,WAAW,CAAC,MAAM,EAAE,eAAe;IASnC,UAAU,CAAC,KAAK,EAAE,SAAS;IAiD3B,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM;IAsBtD,gBAAgB,CAAC,SAAS,EAAE,MAAM;IAyBlC,oBAAoB,CAClB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,UAAU,GAC5B,MAAM,CAAC,gBAAgB,GAAG,oBAAoB,EAAE,OAAO,CAAC;CAmB5D"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { type InternalApi } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { EitherAsync } from "purify-ts";
|
|
3
|
-
import { type
|
|
4
|
-
import { type
|
|
5
|
-
import { LKRPDataSourceError, type LKRPMissingDataError, LKRPOutdatedTrustchainError, type LKRPParsingError, LKRPUnknownError } from "../../../api/model/Errors";
|
|
6
|
-
import { type JWT } from "../../../api/model/JWT";
|
|
1
|
+
import { type InternalApi, UnknownDAError } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { Either, EitherAsync } from "purify-ts";
|
|
3
|
+
import { type LKRPHttpRequestError, type LKRPMissingDataError, type LKRPParsingError } from "../../../api/app-binder/Errors";
|
|
4
|
+
import { type JWT, type Keypair } from "../../../api/index";
|
|
7
5
|
import { type LKRPDeviceCommandError } from "../../app-binder/command/utils/ledgerKeyringProtocolErrors";
|
|
8
6
|
import { type LKRPDataSource } from "../../lkrp-datasource/data/LKRPDataSource";
|
|
9
|
-
import { type EncryptedCommand, type EncryptedDeriveCommand, type EncryptedPublishKeyCommand } from "../../models/LKRPCommandTypes";
|
|
10
|
-
import { CommandTags } from "../../models/Tags";
|
|
11
7
|
import { LKRPBlock } from "../../utils/LKRPBlock";
|
|
12
8
|
import { LKRPCommand } from "../../utils/LKRPCommand";
|
|
9
|
+
import { CommandTags } from "../../utils/TLVTags";
|
|
10
|
+
import { type EncryptedCommand, type EncryptedDeriveCommand, type EncryptedPublishKeyCommand } from "../../utils/types";
|
|
13
11
|
import { TrustedProperties } from "./utils/TrustedProperties";
|
|
14
12
|
type BlockFlow = {
|
|
15
13
|
type: "derive";
|
|
@@ -36,7 +34,7 @@ type EncryptedBlock = {
|
|
|
36
34
|
commands: EncryptedCommand[];
|
|
37
35
|
signature: SignaturePayload;
|
|
38
36
|
};
|
|
39
|
-
type SignBlockError = LKRPDeviceCommandError | LKRPParsingError | LKRPMissingDataError |
|
|
37
|
+
export type SignBlockError = LKRPDeviceCommandError | LKRPParsingError | LKRPMissingDataError | LKRPHttpRequestError | UnknownDAError;
|
|
40
38
|
export type SignBlockTaskInput = {
|
|
41
39
|
lkrpDataSource: LKRPDataSource;
|
|
42
40
|
trustchainId: string;
|
|
@@ -44,15 +42,15 @@ export type SignBlockTaskInput = {
|
|
|
44
42
|
jwt: JWT;
|
|
45
43
|
parent: Uint8Array;
|
|
46
44
|
blockFlow: BlockFlow;
|
|
47
|
-
sessionKeypair:
|
|
45
|
+
sessionKeypair: Keypair;
|
|
48
46
|
};
|
|
47
|
+
export declare const ISSUER_PLACEHOLDER: Uint8Array<ArrayBuffer>;
|
|
49
48
|
export declare class SignBlockTask {
|
|
50
49
|
private readonly api;
|
|
51
|
-
|
|
52
|
-
constructor(api: InternalApi, cryptoService: CryptoService);
|
|
50
|
+
constructor(api: InternalApi);
|
|
53
51
|
run({ lkrpDataSource, trustchainId, path, jwt, parent, blockFlow, sessionKeypair, }: SignBlockTaskInput): EitherAsync<SignBlockError, void>;
|
|
54
52
|
signBlockHeader(parent: Uint8Array, commandCount: number): EitherAsync<SignBlockError, HeaderPayload>;
|
|
55
|
-
signBlockSignature(sessionKeypair:
|
|
53
|
+
signBlockSignature(sessionKeypair: Keypair): EitherAsync<SignBlockError, SignaturePayload>;
|
|
56
54
|
signCommands(applicationPath: string, block: BlockFlow): EitherAsync<SignBlockError, EncryptedCommand>[];
|
|
57
55
|
signSingleCommand(command: Uint8Array): EitherAsync<SignBlockError, TrustedProperties>;
|
|
58
56
|
signDeriveCommand(applicationPath: string): EitherAsync<SignBlockError, EncryptedDeriveCommand>;
|
|
@@ -63,8 +61,8 @@ export declare class SignBlockTask {
|
|
|
63
61
|
permissions: number;
|
|
64
62
|
}>;
|
|
65
63
|
signPublishKeyCommand({ publicKey }: Pick<AddMemberBlockData, "publicKey">): EitherAsync<SignBlockError, EncryptedPublishKeyCommand>;
|
|
66
|
-
decryptBlock(parent: Uint8Array, { header, commands, signature }: EncryptedBlock):
|
|
67
|
-
decryptCommand(secret: Uint8Array, command: EncryptedCommand):
|
|
64
|
+
decryptBlock(parent: Uint8Array, { header, commands, signature }: EncryptedBlock): Either<SignBlockError, LKRPBlock>;
|
|
65
|
+
decryptCommand(secret: Uint8Array, command: EncryptedCommand): Either<UnknownDAError, LKRPCommand>;
|
|
68
66
|
}
|
|
69
67
|
export {};
|
|
70
68
|
//# sourceMappingURL=SignBlockTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignBlockTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/SignBlockTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"SignBlockTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/SignBlockTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EAChB,cAAc,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAe,MAAM,WAAW,CAAC;AAE7D,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAIpD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gEAAgE,CAAC;AAC7G,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAMpF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAe,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0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d,YAAY,EACZ,IAAI,EACJ,GAAG,EACH,MAAM,EACN,SAAS,EACT,cAAc,GACf,EAAE,kBAAkB,GAAG,WAAW,CAAC,cAAc,EAAE,IAAI,CAAC;IAoBzD,eAAe,CACb,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,MAAM,GACnB,WAAW,CAAC,cAAc,EAAE,aAAa,CAAC;IAgC7C,kBAAkB,CAChB,cAAc,EAAE,OAAO,GACtB,WAAW,CAAC,cAAc,EAAE,gBAAgB,CAAC;IAmBhD,YAAY,CACV,eAAe,EAAE,MAAM,EACvB,KAAK,EAAE,SAAS,GACf,WAAW,CAAC,cAAc,EAAE,gBAAgB,CAAC,EAAE;IAgBlD,iBAAiB,CAAC,OAAO,EAAE,UAAU;IAkBrC,iBAAiB,CAAC,eAAe,EAAE,MAAM;IAsBzC,oBAAoB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,kBAAkB;;;;;;IAsBzE,qBAAqB,CAAC,EAAE,SAAS,EAAE,EAAE,IAAI,CAAC,kBAAkB,EAAE,WAAW,CAAC;IAqB1E,YAAY,CACV,MAAM,EAAE,UAAU,EAClB,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,cAAc,GAC9C,MAAM,CAAC,cAAc,EAAE,SAAS,CAAC;IAkBpC,cAAc,CACZ,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,gBAAgB,GACxB,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC;CAuBvC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
+
import { UnknownDAError } from "@ledgerhq/device-management-kit";
|
|
1
2
|
import { EitherAsync } from "purify-ts";
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
4
|
-
import { LKRPMissingDataError, LKRPUnknownError } from "../../../api/model/Errors";
|
|
3
|
+
import { LKRPMissingDataError } from "../../../api/app-binder/Errors";
|
|
4
|
+
import { type Keypair } from "../../../api/app-binder/LKRPTypes";
|
|
5
5
|
import { type AuthenticationPayload, type Challenge } from "../../lkrp-datasource/data/LKRPDataSource";
|
|
6
6
|
export declare class SignChallengeWithKeypairTask {
|
|
7
|
-
private readonly cryptoService;
|
|
8
7
|
private readonly keypair;
|
|
9
8
|
private readonly trustchainId;
|
|
10
|
-
constructor(
|
|
11
|
-
run(challenge: Challenge): EitherAsync<LKRPMissingDataError |
|
|
9
|
+
constructor(keypair: Keypair, trustchainId: string);
|
|
10
|
+
run(challenge: Challenge): EitherAsync<LKRPMissingDataError | UnknownDAError, AuthenticationPayload>;
|
|
12
11
|
private getAttestation;
|
|
13
12
|
private getCredential;
|
|
14
13
|
private getUnsignedChallengeTLV;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignChallengeWithKeypairTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/SignChallengeWithKeypairTask.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignChallengeWithKeypairTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/SignChallengeWithKeypairTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAe,WAAW,EAAe,MAAM,WAAW,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,+CAA+C,CAAC;AAKvD,qBAAa,4BAA4B;IAErC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,MAAM;IAGvC,GAAG,CACD,SAAS,EAAE,SAAS,GACnB,WAAW,CAAC,oBAAoB,GAAG,cAAc,EAAE,qBAAqB,CAAC;IAoB5E,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,uBAAuB;CAqDhC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Either } from "purify-ts";
|
|
2
|
-
import { type LKRPMissingDataError, LKRPParsingError } from "../../../../api/
|
|
3
|
-
import { TPTags } from "../../../
|
|
2
|
+
import { type LKRPMissingDataError, LKRPParsingError } from "../../../../api/app-binder/Errors";
|
|
3
|
+
import { TPTags } from "../../../utils/TLVTags";
|
|
4
4
|
type EncryptedTPTag = Exclude<TPTags, TPTags.IV>;
|
|
5
5
|
type EncryptedTP = {
|
|
6
6
|
tag: EncryptedTPTag;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrustedProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/task/utils/TrustedProperties.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAEhD,OAAO,
|
|
1
|
+
{"version":3,"file":"TrustedProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/task/utils/TrustedProperties.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAEhD,OAAO,EACL,KAAK,oBAAoB,EACzB,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,KAAK,cAAc,GAAG,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;AACjD,KAAK,WAAW,GAAG;IAAE,GAAG,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,UAAU,CAAC;IAAC,GAAG,EAAE,UAAU,CAAA;CAAE,CAAC;AAE/E,qBAAa,iBAAiB;aAKA,KAAK,EAAE,UAAU;IAJ7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,EAAE,CAA2B;IACrC,OAAO,CAAC,cAAc,CAAiD;gBAE3C,KAAK,EAAE,UAAU;IAI7C,KAAK,IAAI,MAAM,CAAC,gBAAgB,EAAE,UAAU,CAAC;IAc7C,SAAS,IAAI,MAAM,CAAC,gBAAgB,GAAG,oBAAoB,EAAE,UAAU,CAAC;IASxE,QAAQ,IAAI,MAAM,CAAC,gBAAgB,GAAG,oBAAoB,EAAE,UAAU,CAAC;IASvE,qBAAqB,IAAI,MAAM,CAC7B,gBAAgB,GAAG,oBAAoB,EACvC,UAAU,CACX;IASD,YAAY,IAAI,MAAM,CAAC,gBAAgB,GAAG,oBAAoB,EAAE,UAAU,CAAC;IAS3E,WAAW,IAAI,MAAM,CAAC,gBAAgB,GAAG,oBAAoB,EAAE,UAAU,CAAC;IAS1E,YAAY,IAAI,MAAM,CAAC,gBAAgB,GAAG,oBAAoB,EAAE,UAAU,CAAC;IAS3E,mBAAmB,IAAI,MAAM,CAC3B,gBAAgB,EAChB,GAAG,CAAC,cAAc,EAAE,WAAW,CAAC,CACjC;CAUF"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { type DeviceManagementKit } from "@ledgerhq/device-management-kit";
|
|
1
|
+
import { type DeviceManagementKit, type DeviceSessionId } from "@ledgerhq/device-management-kit";
|
|
2
2
|
import { Container } from "inversify";
|
|
3
|
-
import { type CryptoService } from "../api/crypto/CryptoService";
|
|
4
|
-
import { LKRPEnv } from "../api/index";
|
|
5
3
|
export type MakeContainerProps = {
|
|
6
4
|
dmk: DeviceManagementKit;
|
|
7
|
-
|
|
8
|
-
cryptoService: CryptoService;
|
|
9
|
-
env?: LKRPEnv;
|
|
5
|
+
sessionId: DeviceSessionId;
|
|
10
6
|
baseUrl?: string;
|
|
11
7
|
stub?: boolean;
|
|
12
8
|
};
|
|
13
|
-
export declare const makeContainer: ({ dmk,
|
|
9
|
+
export declare const makeContainer: ({ dmk, sessionId, baseUrl, stub, }: MakeContainerProps) => Container;
|
|
14
10
|
//# sourceMappingURL=di.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.d.ts","sourceRoot":"","sources":["../../../src/internal/di.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"di.d.ts","sourceRoot":"","sources":["../../../src/internal/di.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAQtC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,mBAAmB,CAAC;IACzB,SAAS,EAAE,eAAe,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,oCAK3B,kBAAkB,cAepB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"externalTypes.d.ts","sourceRoot":"","sources":["../../../src/internal/externalTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"externalTypes.d.ts","sourceRoot":"","sources":["../../../src/internal/externalTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;CAGzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,UAAU,CAAC;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,UAAU,CAAC;IAC5B,SAAS,EAAE,UAAU,CAAC;IACtB,QAAQ,EAAE,UAAU,CAAC;IACrB,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { EitherAsync, Maybe } from "purify-ts";
|
|
2
|
-
import {
|
|
3
|
-
import { JWT } from "../../../api/
|
|
2
|
+
import { LKRPHttpRequestError } from "../../../api/app-binder/Errors";
|
|
3
|
+
import { JWT } from "../../../api/app-binder/LKRPTypes";
|
|
4
4
|
import { LKRPBlock } from "../../utils/LKRPBlock";
|
|
5
|
-
import {
|
|
5
|
+
import { LKRPBlockStream } from "../../utils/LKRPBlockStream";
|
|
6
6
|
import { AuthenticationPayload, Challenge, LKRPDataSource } from "./LKRPDataSource";
|
|
7
7
|
export declare class HttpLKRPDataSource implements LKRPDataSource {
|
|
8
8
|
private readonly baseUrl;
|
|
9
9
|
constructor(baseUrl: string);
|
|
10
|
-
getChallenge(): EitherAsync<
|
|
11
|
-
authenticate(payload: AuthenticationPayload): EitherAsync<
|
|
10
|
+
getChallenge(): EitherAsync<LKRPHttpRequestError, Challenge>;
|
|
11
|
+
authenticate(payload: AuthenticationPayload): EitherAsync<LKRPHttpRequestError, {
|
|
12
12
|
jwt: JWT;
|
|
13
13
|
trustchainId: Maybe<string>;
|
|
14
14
|
}>;
|
|
15
|
-
getTrustchainById(id: string, jwt: JWT): EitherAsync<
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
getTrustchainById(id: string, jwt: JWT): EitherAsync<LKRPHttpRequestError, {
|
|
16
|
+
[k: string]: LKRPBlockStream;
|
|
17
|
+
}>;
|
|
18
|
+
postDerivation(id: string, block: LKRPBlock, jwt: JWT): EitherAsync<LKRPHttpRequestError, void>;
|
|
19
|
+
putCommands(id: string, path: string, block: LKRPBlock, jwt: JWT): EitherAsync<LKRPHttpRequestError, void>;
|
|
18
20
|
private request;
|
|
19
21
|
}
|
|
20
22
|
//# sourceMappingURL=HttpLKRPDataSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpLKRPDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/internal/lkrp-datasource/data/HttpLKRPDataSource.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"HttpLKRPDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/internal/lkrp-datasource/data/HttpLKRPDataSource.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAQ,KAAK,EAAkB,MAAM,WAAW,CAAC;AAErE,OAAO,EACL,oBAAoB,EAErB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EACL,qBAAqB,EACrB,SAAS,EACT,cAAc,EACf,MAAM,kBAAkB,CAAC;AAE1B,qBACa,kBAAmB,YAAW,cAAc;IAEhB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,MAAM;IAGvE,YAAY;IAIZ,YAAY,CAAC,OAAO,EAAE,qBAAqB;;;;IAc3C,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG;;;IActC,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG;IAOrD,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG;IAOhE,OAAO,CAAC,OAAO;CA0ChB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type EitherAsync, type Maybe } from "purify-ts";
|
|
2
|
-
import { type
|
|
3
|
-
import { type JWT } from "../../../api/
|
|
2
|
+
import { type LKRPHttpRequestError } from "../../../api/app-binder/Errors";
|
|
3
|
+
import { type JWT } from "../../../api/app-binder/LKRPTypes";
|
|
4
4
|
import { type LKRPBlock } from "../../utils/LKRPBlock";
|
|
5
|
-
import { type Trustchain } from "../../utils/
|
|
5
|
+
import { type Trustchain } from "../../utils/types";
|
|
6
6
|
export interface LKRPDataSource {
|
|
7
|
-
getChallenge(): EitherAsync<
|
|
8
|
-
authenticate(payload: AuthenticationPayload): EitherAsync<
|
|
9
|
-
getTrustchainById(id: string, jwt: JWT): EitherAsync<
|
|
10
|
-
postDerivation(id: string, blocks: LKRPBlock, jwt: JWT): EitherAsync<
|
|
11
|
-
putCommands(id: string, path: string, block: LKRPBlock, jwt: JWT): EitherAsync<
|
|
7
|
+
getChallenge(): EitherAsync<LKRPHttpRequestError, Challenge>;
|
|
8
|
+
authenticate(payload: AuthenticationPayload): EitherAsync<LKRPHttpRequestError, AuthenticationResponse>;
|
|
9
|
+
getTrustchainById(id: string, jwt: JWT): EitherAsync<LKRPHttpRequestError, Trustchain>;
|
|
10
|
+
postDerivation(id: string, blocks: LKRPBlock, jwt: JWT): EitherAsync<LKRPHttpRequestError, void>;
|
|
11
|
+
putCommands(id: string, path: string, block: LKRPBlock, jwt: JWT): EitherAsync<LKRPHttpRequestError, void>;
|
|
12
12
|
}
|
|
13
13
|
export type Challenge = {
|
|
14
14
|
json: ChallengeJSON;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LKRPDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/internal/lkrp-datasource/data/LKRPDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,KAAK,EAAE,MAAM,WAAW,CAAC;AAEzD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"LKRPDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/internal/lkrp-datasource/data/LKRPDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,KAAK,EAAE,MAAM,WAAW,CAAC;AAEzD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,WAAW,cAAc;I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CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
import { DeviceSessionId } from "@ledgerhq/device-management-kit";
|
|
2
1
|
import { AuthenticateDAReturnType } from "../../../api/app-binder/AuthenticateDeviceActionTypes";
|
|
3
|
-
import {
|
|
4
|
-
import { Permissions } from "../../../api/model/Permissions";
|
|
2
|
+
import { JWT, Keypair, Permissions } from "../../../api/app-binder/LKRPTypes";
|
|
5
3
|
import { LedgerKeyringProtocolBinder } from "../../app-binder/LedgerKeyringProtocolBinder";
|
|
6
|
-
export type AuthenticateUsecaseInput = {
|
|
7
|
-
keypair: KeyPair;
|
|
8
|
-
clientName: string;
|
|
9
|
-
permissions: Permissions;
|
|
10
|
-
} & ({
|
|
11
|
-
trustchainId: string;
|
|
12
|
-
sessionId?: DeviceSessionId;
|
|
13
|
-
} | {
|
|
14
|
-
trustchainId?: undefined;
|
|
15
|
-
sessionId: DeviceSessionId;
|
|
16
|
-
});
|
|
17
4
|
export declare class AuthenticateUseCase {
|
|
18
5
|
private appBinder;
|
|
19
6
|
constructor(appBinder: LedgerKeyringProtocolBinder);
|
|
20
|
-
execute(
|
|
7
|
+
execute(keypair: Keypair, applicationId: number, clientName: string, permissions: Permissions, trustchainId?: string, jwt?: JWT): AuthenticateDAReturnType;
|
|
21
8
|
}
|
|
22
9
|
//# sourceMappingURL=AuthenticateUseCase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticateUseCase.d.ts","sourceRoot":"","sources":["../../../../../src/internal/use-cases/authentication/AuthenticateUseCase.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthenticateUseCase.d.ts","sourceRoot":"","sources":["../../../../../src/internal/use-cases/authentication/AuthenticateUseCase.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACzF,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAE/F,qBACa,mBAAmB;IAG5B,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,2BAA2B;IAGhD,OAAO,CACL,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,WAAW,EACxB,YAAY,CAAC,EAAE,MAAM,EACrB,GAAG,CAAC,EAAE,GAAG,GACR,wBAAwB;CAU5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCasesModule.d.ts","sourceRoot":"","sources":["../../../../../src/internal/use-cases/di/useCasesModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"useCasesModule.d.ts","sourceRoot":"","sources":["../../../../../src/internal/use-cases/di/useCasesModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,eAAO,MAAM,qBAAqB,uBAG9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCasesTypes.d.ts","sourceRoot":"","sources":["../../../../../src/internal/use-cases/di/useCasesTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"useCasesTypes.d.ts","sourceRoot":"","sources":["../../../../../src/internal/use-cases/di/useCasesTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;CAEzB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Either } from "purify-ts";
|
|
2
|
-
import { type LKRPParsingError } from "../../api/
|
|
3
|
-
import { type LKRPBlockData, type LKRPBlockParsedData } from "
|
|
2
|
+
import { type LKRPParsingError } from "../../api/app-binder/Errors";
|
|
3
|
+
import { type LKRPBlockData, type LKRPBlockParsedData } from "./types";
|
|
4
4
|
export declare class LKRPBlock {
|
|
5
5
|
private readonly bytes;
|
|
6
6
|
private hashValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LKRPBlock.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/LKRPBlock.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LKRPBlock.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/LKRPBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAoC,MAAM,WAAW,CAAC;AAErE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK/D,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEvE,qBAAa,SAAS;IAKlB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,OAAO,CAAC,SAAS,CAA0B;IAC3C,OAAO,CAAC,IAAI,CAAuD;gBAGhD,KAAK,EAAE,UAAU,EAClC,IAAI,CAAC,EAAE,mBAAmB;IAK5B,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS;IAItC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,aAAa,GAAG,SAAS;IAkB/C,QAAQ,IAAI,MAAM;IAIlB,KAAK,IAAI,UAAU;IAInB,KAAK,IAAI,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;IAQtD,OAAO,IAAI,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAmB3C,IAAI,IAAI,MAAM;CAMf"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Either, Maybe } from "purify-ts";
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
4
|
-
import { type LKRPParsingError } from "../../api/model/Errors";
|
|
5
|
-
import { type LKRPBlockData } from "../models/LKRPBlockTypes";
|
|
6
|
-
import { type PublishedKey } from "../models/Types";
|
|
2
|
+
import { type LKRPParsingError } from "../../api/app-binder/Errors";
|
|
3
|
+
import { type Keypair } from "../../api/app-binder/LKRPTypes";
|
|
7
4
|
import { LKRPBlock } from "./LKRPBlock";
|
|
5
|
+
import { type LKRPBlockData } from "./types";
|
|
6
|
+
import { type PublishedKey } from "./types";
|
|
8
7
|
export declare class LKRPBlockStream {
|
|
9
8
|
private readonly bytes;
|
|
10
9
|
private validation;
|
|
11
10
|
private blocks;
|
|
12
11
|
private path;
|
|
13
|
-
constructor(bytes: Uint8Array, blocks?: LKRPBlock[]);
|
|
12
|
+
constructor(bytes: Uint8Array, blocks?: LKRPBlock[], path?: string);
|
|
14
13
|
static fromHex(hex: string): LKRPBlockStream;
|
|
15
|
-
static
|
|
14
|
+
static fromPath(path: string): LKRPBlockStream;
|
|
15
|
+
static fromData(blocksData: Omit<LKRPBlockData, "parent">[], parentHash?: string): Promise<LKRPBlockStream>;
|
|
16
16
|
toU8A(): Uint8Array;
|
|
17
17
|
toString(): string;
|
|
18
18
|
parse(): Either<LKRPParsingError, LKRPBlock[]>;
|
|
@@ -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(
|
|
24
|
+
getPublishedKey(keypair: Keypair): Maybe<PublishedKey>;
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=LKRPBlockStream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LKRPBlockStream.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/LKRPBlockStream.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LKRPBlockStream.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/LKRPBlockStream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAQ,KAAK,EAAkB,MAAM,WAAW,CAAC;AAEhE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAA8B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAExE,qBAAa,eAAe;IAMxB,OAAO,CAAC,QAAQ,CAAC,KAAK;IALxB,OAAO,CAAC,UAAU,CAAoC;IACtD,OAAO,CAAC,MAAM,CAAyD;IACvE,OAAO,CAAC,IAAI,CAA0B;gBAGnB,KAAK,EAAE,UAAU,EAClC,MAAM,CAAC,EAAE,SAAS,EAAE,EACpB,IAAI,CAAC,EAAE,MAAM;IAMf,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe;IAI5C,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe;WAIjC,QAAQ,CACnB,UAAU,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,EAAE,EAC3C,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,eAAe,CAAC;IAoB3B,KAAK,IAAI,UAAU;IAInB,QAAQ,IAAI,MAAM;IAIlB,KAAK,IAAI,MAAM,CAAC,gBAAgB,EAAE,SAAS,EAAE,CAAC;IAmB9C,OAAO,IAAI,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAOrC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAmC3D,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC;IAsBxB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC;IAoBpD,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAIlC,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK,CAAC,YAAY,CAAC;CAqBvD"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type Either, Maybe } from "purify-ts";
|
|
2
|
-
import { type LKRPParsingError } from "../../api/
|
|
3
|
-
import { type LKRPCommandData, type UnsignedCommandData } from "
|
|
4
|
-
import { type EncryptedPublishedKey } from "../models/Types";
|
|
2
|
+
import { type LKRPParsingError } from "../../api/app-binder/Errors";
|
|
3
|
+
import { type EncryptedPublishedKey, type LKRPCommandData, type UnsignedCommandData } from "./types";
|
|
5
4
|
export declare class LKRPCommand {
|
|
6
5
|
private bytes;
|
|
7
6
|
private data;
|
|
@@ -14,6 +13,6 @@ export declare class LKRPCommand {
|
|
|
14
13
|
parse(): Either<LKRPParsingError, LKRPCommandData>;
|
|
15
14
|
toHuman(): Either<LKRPParsingError, string>;
|
|
16
15
|
getPublicKey(): Maybe<string>;
|
|
17
|
-
|
|
16
|
+
getEncryptedPublichedKey(): Maybe<EncryptedPublishedKey>;
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=LKRPCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LKRPCommand.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/LKRPCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LKRPCommand.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/LKRPCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,KAAK,EAAkB,MAAM,WAAW,CAAC;AAErE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAO/D,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACzB,MAAM,SAAS,CAAC;AAEjB,qBAAa,WAAW;IAIpB,OAAO,CAAC,KAAK;IAHf,OAAO,CAAC,IAAI,CAAmD;gBAGrD,KAAK,EAAE,UAAU,EACzB,IAAI,CAAC,EAAE,eAAe;IAKxB,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW;IAIxC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,WAAW;IA6CnD,MAAM,CAAC,qBAAqB,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU;IA0BnE,QAAQ,IAAI,MAAM;IAIlB,KAAK,IAAI,UAAU;IAInB,KAAK,IAAI,MAAM,CAAC,gBAAgB,EAAE,eAAe,CAAC;IAQlD,OAAO,IAAI,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAa3C,YAAY,IAAI,KAAK,CAAC,MAAM,CAAC;IAuB7B,wBAAwB,IAAI,KAAK,CAAC,qBAAqB,CAAC;CAqBzD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class TLVBuilder {
|
|
2
|
+
private items;
|
|
3
|
+
addNull(): this;
|
|
4
|
+
addInt(value: number, length: 1 | 2 | 4): this;
|
|
5
|
+
addHash(value: Uint8Array): this;
|
|
6
|
+
addSignature(value: Uint8Array): this;
|
|
7
|
+
addString(value: string): this;
|
|
8
|
+
addBytes(value: Uint8Array | number[]): this;
|
|
9
|
+
addPublicKey(value: Uint8Array): this;
|
|
10
|
+
build(): Uint8Array;
|
|
11
|
+
with(fn: (builder: TLVBuilder) => void): TLVBuilder;
|
|
12
|
+
push(item: Uint8Array): this;
|
|
13
|
+
private add;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=TLVBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TLVBuilder.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/TLVBuilder.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IACrB,OAAO,CAAC,KAAK,CAAoB;IAEjC,OAAO;IAIP,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAgBvC,OAAO,CAAC,KAAK,EAAE,UAAU;IAIzB,YAAY,CAAC,KAAK,EAAE,UAAU;IAI9B,SAAS,CAAC,KAAK,EAAE,MAAM;IAIvB,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE;IAIrC,YAAY,CAAC,KAAK,EAAE,UAAU;IAI9B,KAAK,IAAI,UAAU;IAInB,IAAI,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,GAAG,UAAU;IAKnD,IAAI,CAAC,IAAI,EAAE,UAAU;IAKrB,OAAO,CAAC,GAAG;CAIZ"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { type Either } from "purify-ts";
|
|
2
|
-
import { LKRPParsingError } from "../../api/
|
|
3
|
-
import { type LKRPBlockParsedData } from "../models/LKRPBlockTypes";
|
|
4
|
-
import { type LKRPCommandData } from "../models/LKRPCommandTypes";
|
|
5
|
-
import { CommandTags, GeneralTags } from "../models/Tags";
|
|
2
|
+
import { LKRPParsingError } from "../../api/app-binder/Errors";
|
|
6
3
|
import { LKRPCommand } from "./LKRPCommand";
|
|
4
|
+
import { CommandTags, GeneralTags } from "./TLVTags";
|
|
5
|
+
import { type LKRPBlockParsedData, type LKRPCommandData } from "./types";
|
|
7
6
|
type ParserValue = Either<LKRPParsingError, {
|
|
8
7
|
tag: GeneralTags.Null;
|
|
9
8
|
value: null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TLVParser.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils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O;IACV,IAAI,IAAO;IACX,SAAS,IAAO;IAChB,MAAM,IAAO;IACb,KAAK,IAAO;IACZ,SAAS,IAAO;CACjB;AAED,oBAAY,WAAW;IACrB,IAAI,KAAO;IACX,SAAS,KAAO;IAChB,UAAU,KAAO;IACjB,WAAW,KAAO;IAClB,UAAU,KAAO;IACjB,MAAM,KAAO;CACd;AAID,oBAAY,MAAM;IAChB,EAAE,IAAO;IACT,MAAM,MAAoB;IAC1B,KAAK,MAAoB;IACzB,oBAAoB,IAAO;IAC3B,UAAU,IAAO;IACjB,QAAQ,IAAO;IACf,UAAU,MAAoB;CAC/B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Keypair } from "../../api/index";
|
|
2
|
+
export declare const AES_BLOCK_SIZE = 16;
|
|
3
|
+
export declare class CryptoUtils {
|
|
4
|
+
static randomBytes(len: number): Uint8Array;
|
|
5
|
+
static randomKeypair(): Keypair;
|
|
6
|
+
static encrypt(key: Uint8Array, iv: Uint8Array, cleartext: Uint8Array): Uint8Array;
|
|
7
|
+
static decrypt(key: Uint8Array, iv: Uint8Array, ciphertext: Uint8Array): Uint8Array;
|
|
8
|
+
static hash(bytes: Uint8Array): Uint8Array;
|
|
9
|
+
static hmac(key: Uint8Array, message: Uint8Array): Uint8Array;
|
|
10
|
+
/**
|
|
11
|
+
* DER specification: https://ledgerhq.atlassian.net/wiki/spaces/TrustServices/pages/3843719348/LNS+Arch+Common+Fields+for+Nano+certificates+and+descriptors#DER-Encoding-spec
|
|
12
|
+
* See: https://ledgerhq.atlassian.net/wiki/spaces/TrustServices/pages/3736863735/LNS+Arch+Nano+Trusted+Names+Descriptor+Format+APIs
|
|
13
|
+
* signature(r,s) = 0x30 & var(L,u8(~)) & sized(8*L, sig_components(r,s)); # DER encoding of the two 32 bytes signature components r & s
|
|
14
|
+
* sig_components(r,s) = 0x02 & var(Lr,u8(~)) & sized(8*Lr, r) & 0x02 & var(Ls,u8(~)) & sized(8*Ls, s);
|
|
15
|
+
*/
|
|
16
|
+
static derEncode(r: bigint, s: bigint): Uint8Array;
|
|
17
|
+
private static encodeSigComponent;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=crypto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/crypto.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,qBAAa,WAAW;IACtB,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU;IAI3C,MAAM,CAAC,aAAa,IAAI,OAAO;IAI/B,MAAM,CAAC,OAAO,CACZ,GAAG,EAAE,UAAU,EACf,EAAE,EAAE,UAAU,EACd,SAAS,EAAE,UAAU,GACpB,UAAU;IAKb,MAAM,CAAC,OAAO,CACZ,GAAG,EAAE,UAAU,EACf,EAAE,EAAE,UAAU,EACd,UAAU,EAAE,UAAU,GACrB,UAAU;IAKb,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU;IAI1C,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,GAAG,UAAU;IAI7D;;;;;OAKG;WACW,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU;IAOzD,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAMlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/hex.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAElD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEpD"}
|