@ledgerhq/device-trusted-app-kit-ledger-keyring-protocol 0.0.0-legacy-speculos-datasource-20250820121907 → 0.0.0-lifi-with-logger-20251208144248
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/GetVersionCommandTypes.js +1 -1
- package/lib/cjs/api/app-binder/GetVersionCommandTypes.js.map +1 -1
- package/lib/cjs/api/crypto/CryptoService.js +2 -0
- package/lib/cjs/api/crypto/CryptoService.js.map +7 -0
- package/lib/cjs/api/crypto/Key.js +2 -0
- package/lib/cjs/api/crypto/Key.js.map +7 -0
- package/lib/cjs/api/crypto/KeyPair.js +2 -0
- package/lib/cjs/api/crypto/KeyPair.js.map +7 -0
- package/lib/cjs/api/crypto/noble/NobleCryptoService.js +2 -0
- package/lib/cjs/api/crypto/noble/NobleCryptoService.js.map +7 -0
- package/lib/cjs/api/crypto/noble/NobleCryptoService.test.js +2 -0
- package/lib/cjs/api/crypto/noble/NobleCryptoService.test.js.map +7 -0
- package/lib/cjs/api/crypto/noble/NobleKey.js +2 -0
- package/lib/cjs/api/crypto/noble/NobleKey.js.map +7 -0
- package/lib/cjs/api/crypto/noble/NobleKey.test.js +2 -0
- package/lib/cjs/api/crypto/noble/NobleKey.test.js.map +7 -0
- package/lib/cjs/api/crypto/noble/NobleKeyPair.js +2 -0
- package/lib/cjs/api/crypto/noble/NobleKeyPair.js.map +7 -0
- package/lib/cjs/api/crypto/noble/NobleKeyPair.test.js +2 -0
- package/lib/cjs/api/crypto/noble/NobleKeyPair.test.js.map +7 -0
- package/lib/cjs/api/index.js +1 -1
- package/lib/cjs/api/index.js.map +2 -2
- package/lib/cjs/api/model/Env.js +2 -0
- package/lib/cjs/api/model/Env.js.map +7 -0
- package/lib/cjs/api/model/Errors.js +2 -0
- package/lib/cjs/api/model/Errors.js.map +7 -0
- package/lib/cjs/api/model/JWT.js +2 -0
- package/lib/cjs/api/model/JWT.js.map +7 -0
- package/lib/cjs/api/model/Permissions.js +2 -0
- package/lib/cjs/api/model/Permissions.js.map +7 -0
- 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 +3 -3
- package/lib/cjs/internal/app-binder/command/GetSeedIdCommand.test.js.map +3 -3
- package/lib/cjs/internal/app-binder/command/GetVersionCommand.js +1 -1
- 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 +3 -3
- 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 +3 -3
- package/lib/cjs/internal/app-binder/command/ParseStreamBlockCommand.js +1 -1
- 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 +3 -3
- 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 +1 -1
- package/lib/cjs/internal/app-binder/command/ParseStreamBlockHeader.test.js.map +3 -3
- 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 +1 -1
- package/lib/cjs/internal/app-binder/command/SetTrustedMemberCommand.test.js.map +3 -3
- 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 +3 -3
- 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 +3 -3
- 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/AuthenticateWithDeviceDeviceAction.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.js.map +7 -0
- package/lib/cjs/internal/app-binder/task/AuthenticateTask.js +2 -0
- package/lib/cjs/internal/app-binder/task/AuthenticateTask.js.map +7 -0
- package/lib/cjs/internal/app-binder/task/ExtractEncryptionKeyTask.js +2 -0
- package/lib/cjs/internal/app-binder/task/ExtractEncryptionKeyTask.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/models/LKRPBlockTypes.js +2 -0
- package/lib/cjs/internal/models/LKRPBlockTypes.js.map +7 -0
- package/lib/cjs/internal/models/LKRPCommandTypes.js +2 -0
- package/lib/cjs/internal/models/LKRPCommandTypes.js.map +7 -0
- package/lib/cjs/internal/{utils/TLVTags.js → models/Tags.js} +1 -1
- package/lib/cjs/internal/{utils/TLVTags.js.map → models/Tags.js.map} +2 -2
- package/lib/cjs/internal/models/Types.js +2 -0
- package/lib/cjs/internal/models/Types.js.map +7 -0
- 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/authentication/DecryptDataUseCase.js +2 -0
- package/lib/cjs/internal/use-cases/authentication/DecryptDataUseCase.js.map +7 -0
- package/lib/cjs/internal/use-cases/authentication/EncryptDataUseCase.js +2 -0
- package/lib/cjs/internal/use-cases/authentication/EncryptDataUseCase.js.map +7 -0
- 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 +2 -2
- package/lib/cjs/internal/utils/LKRPCommand.test.js.map +3 -3
- 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/utils/Trustchain.js +2 -0
- package/lib/cjs/internal/utils/Trustchain.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/package.json +36 -31
- 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 +1 -0
- package/lib/esm/api/app-binder/AddToTrustchainDeviceActionTypes.js.map +4 -4
- package/lib/esm/api/app-binder/AuthenticateDeviceActionTypes.js +1 -0
- package/lib/esm/api/app-binder/AuthenticateDeviceActionTypes.js.map +4 -4
- package/lib/esm/api/crypto/CryptoService.js +2 -0
- package/lib/esm/api/crypto/CryptoService.js.map +7 -0
- package/lib/esm/api/crypto/Key.js +2 -0
- package/lib/esm/api/crypto/Key.js.map +7 -0
- package/lib/esm/api/crypto/KeyPair.js +2 -0
- package/lib/esm/api/crypto/KeyPair.js.map +7 -0
- package/lib/esm/api/crypto/noble/NobleCryptoService.js +2 -0
- package/lib/esm/api/crypto/noble/NobleCryptoService.js.map +7 -0
- package/lib/esm/api/crypto/noble/NobleCryptoService.test.js +2 -0
- package/lib/esm/api/crypto/noble/NobleCryptoService.test.js.map +7 -0
- package/lib/esm/api/crypto/noble/NobleKey.js +2 -0
- package/lib/esm/api/crypto/noble/NobleKey.js.map +7 -0
- package/lib/esm/api/crypto/noble/NobleKey.test.js +2 -0
- package/lib/esm/api/crypto/noble/NobleKey.test.js.map +7 -0
- package/lib/esm/api/crypto/noble/NobleKeyPair.js +2 -0
- package/lib/esm/api/crypto/noble/NobleKeyPair.js.map +7 -0
- package/lib/esm/api/crypto/noble/NobleKeyPair.test.js +2 -0
- package/lib/esm/api/crypto/noble/NobleKeyPair.test.js.map +7 -0
- package/lib/esm/api/index.js +1 -1
- package/lib/esm/api/index.js.map +2 -2
- package/lib/esm/api/model/Env.js +2 -0
- package/lib/esm/api/model/Env.js.map +7 -0
- package/lib/esm/api/model/Errors.js +2 -0
- package/lib/esm/api/model/Errors.js.map +7 -0
- package/lib/esm/api/model/JWT.js +1 -0
- package/lib/esm/api/model/Permissions.js +2 -0
- package/lib/esm/api/model/Permissions.js.map +7 -0
- 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 +3 -3
- package/lib/esm/internal/app-binder/command/GetSeedIdCommand.test.js.map +3 -3
- package/lib/esm/internal/app-binder/command/GetVersionCommand.js +1 -1
- 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 +3 -3
- 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 +3 -3
- package/lib/esm/internal/app-binder/command/ParseStreamBlockCommand.js +1 -1
- 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 +3 -3
- 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 +1 -1
- package/lib/esm/internal/app-binder/command/ParseStreamBlockHeader.test.js.map +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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/AuthenticateWithDeviceDeviceAction.js +2 -0
- package/lib/esm/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js +2 -0
- package/lib/esm/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.js +1 -0
- package/lib/esm/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.js +1 -0
- package/lib/esm/internal/app-binder/task/AuthenticateTask.js +2 -0
- package/lib/esm/internal/app-binder/task/AuthenticateTask.js.map +7 -0
- package/lib/esm/internal/app-binder/task/ExtractEncryptionKeyTask.js +2 -0
- package/lib/esm/internal/app-binder/task/ExtractEncryptionKeyTask.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/models/LKRPBlockTypes.js +1 -0
- package/lib/esm/internal/models/LKRPCommandTypes.js +1 -0
- package/lib/esm/internal/{utils/TLVTags.js → models/Tags.js} +1 -1
- package/lib/esm/internal/{utils/TLVTags.js.map → models/Tags.js.map} +1 -1
- package/lib/esm/internal/models/Types.js +1 -0
- 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/authentication/DecryptDataUseCase.js +2 -0
- package/lib/esm/internal/use-cases/authentication/DecryptDataUseCase.js.map +7 -0
- package/lib/esm/internal/use-cases/authentication/EncryptDataUseCase.js +2 -0
- package/lib/esm/internal/use-cases/authentication/EncryptDataUseCase.js.map +7 -0
- 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 +2 -2
- package/lib/esm/internal/utils/LKRPCommand.test.js.map +3 -3
- 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/utils/Trustchain.js +2 -0
- package/lib/esm/internal/utils/Trustchain.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/package.json +36 -31
- package/lib/types/api/LedgerKeyringProtocol.d.ts +4 -5
- package/lib/types/api/LedgerKeyringProtocol.d.ts.map +1 -1
- package/lib/types/api/LedgerKeyringProtocolBuilder.d.ts +12 -6
- package/lib/types/api/LedgerKeyringProtocolBuilder.d.ts.map +1 -1
- package/lib/types/api/app-binder/AddToTrustchainDeviceActionTypes.d.ts +25 -11
- package/lib/types/api/app-binder/AddToTrustchainDeviceActionTypes.d.ts.map +1 -1
- package/lib/types/api/app-binder/AuthenticateDeviceActionTypes.d.ts +27 -31
- package/lib/types/api/app-binder/AuthenticateDeviceActionTypes.d.ts.map +1 -1
- package/lib/types/api/app-binder/GetVersionCommandTypes.d.ts +0 -1
- package/lib/types/api/app-binder/GetVersionCommandTypes.d.ts.map +1 -1
- package/lib/types/api/crypto/CryptoService.d.ts +22 -0
- package/lib/types/api/crypto/CryptoService.d.ts.map +1 -0
- package/lib/types/api/crypto/Key.d.ts +7 -0
- package/lib/types/api/crypto/Key.d.ts.map +1 -0
- package/lib/types/api/crypto/KeyPair.d.ts +13 -0
- package/lib/types/api/crypto/KeyPair.d.ts.map +1 -0
- package/lib/types/api/crypto/noble/NobleCryptoService.d.ts +13 -0
- package/lib/types/api/crypto/noble/NobleCryptoService.d.ts.map +1 -0
- package/lib/types/api/crypto/noble/NobleCryptoService.test.d.ts +2 -0
- package/lib/types/api/crypto/noble/NobleCryptoService.test.d.ts.map +1 -0
- package/lib/types/api/crypto/noble/NobleKey.d.ts +11 -0
- package/lib/types/api/crypto/noble/NobleKey.d.ts.map +1 -0
- package/lib/types/api/crypto/noble/NobleKey.test.d.ts +2 -0
- package/lib/types/api/crypto/noble/NobleKey.test.d.ts.map +1 -0
- package/lib/types/api/crypto/noble/NobleKeyPair.d.ts +18 -0
- package/lib/types/api/crypto/noble/NobleKeyPair.d.ts.map +1 -0
- package/lib/types/api/crypto/noble/NobleKeyPair.test.d.ts +2 -0
- package/lib/types/api/crypto/noble/NobleKeyPair.test.d.ts.map +1 -0
- package/lib/types/api/index.d.ts +10 -2
- package/lib/types/api/index.d.ts.map +1 -1
- package/lib/types/api/model/Env.d.ts +5 -0
- package/lib/types/api/model/Env.d.ts.map +1 -0
- package/lib/types/api/model/Errors.d.ts +53 -0
- package/lib/types/api/model/Errors.d.ts.map +1 -0
- package/lib/types/api/model/JWT.d.ts +9 -0
- package/lib/types/api/model/JWT.d.ts.map +1 -0
- package/lib/types/api/{app-binder/LKRPTypes.d.ts → model/Permissions.d.ts} +1 -15
- package/lib/types/api/model/Permissions.d.ts.map +1 -0
- package/lib/types/internal/DefaultLedgerKeyringProtocol.d.ts +12 -9
- package/lib/types/internal/DefaultLedgerKeyringProtocol.d.ts.map +1 -1
- package/lib/types/internal/app-binder/LedgerKeyringProtocolBinder.d.ts +14 -8
- package/lib/types/internal/app-binder/LedgerKeyringProtocolBinder.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/GetAppNameCommand.d.ts +5 -1
- package/lib/types/internal/app-binder/command/GetAppNameCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/GetSeedIdCommand.d.ts +14 -1
- package/lib/types/internal/app-binder/command/GetSeedIdCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/GetVersionCommand.d.ts +3 -1
- package/lib/types/internal/app-binder/command/GetVersionCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/InitCommand.d.ts +5 -1
- package/lib/types/internal/app-binder/command/InitCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/ParseBlockSignatureCommand.d.ts +5 -1
- package/lib/types/internal/app-binder/command/ParseBlockSignatureCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/ParseStreamBlockCommand.d.ts +6 -1
- package/lib/types/internal/app-binder/command/ParseStreamBlockCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/ParseStreamBlockHeader.d.ts +5 -1
- package/lib/types/internal/app-binder/command/ParseStreamBlockHeader.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/SetTrustedMemberCommand.d.ts +6 -1
- package/lib/types/internal/app-binder/command/SetTrustedMemberCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/SignBlockHeader.d.ts +7 -1
- package/lib/types/internal/app-binder/command/SignBlockHeader.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/SignBlockSignatureCommand.d.ts +6 -1
- package/lib/types/internal/app-binder/command/SignBlockSignatureCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/SignBlockSingleCommand.d.ts +5 -1
- package/lib/types/internal/app-binder/command/SignBlockSingleCommand.d.ts.map +1 -1
- package/lib/types/internal/app-binder/device-action/AddToTrustchainDeviceAction.d.ts +10 -6
- package/lib/types/internal/app-binder/device-action/AddToTrustchainDeviceAction.d.ts.map +1 -1
- package/lib/types/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.d.ts +32 -0
- package/lib/types/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.d.ts +33 -0
- package/lib/types/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.d.ts +22 -0
- package/lib/types/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.d.ts +19 -0
- package/lib/types/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.d.ts.map +1 -0
- package/lib/types/internal/app-binder/task/AuthenticateTask.d.ts +9 -0
- package/lib/types/internal/app-binder/task/AuthenticateTask.d.ts.map +1 -0
- package/lib/types/internal/app-binder/task/ExtractEncryptionKeyTask.d.ts +8 -0
- package/lib/types/internal/app-binder/task/ExtractEncryptionKeyTask.d.ts.map +1 -0
- package/lib/types/internal/app-binder/task/InitTask.d.ts +5 -3
- 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 +15 -13
- package/lib/types/internal/app-binder/task/SignBlockTask.d.ts.map +1 -1
- package/lib/types/internal/app-binder/task/SignChallengeWithKeypairTask.d.ts +7 -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 +7 -3
- package/lib/types/internal/di.d.ts.map +1 -1
- package/lib/types/internal/externalTypes.d.ts +2 -1
- package/lib/types/internal/externalTypes.d.ts.map +1 -1
- package/lib/types/internal/lkrp-datasource/data/HttpLKRPDataSource.d.ts +8 -10
- 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/models/LKRPBlockTypes.d.ts +11 -0
- package/lib/types/internal/models/LKRPBlockTypes.d.ts.map +1 -0
- package/lib/types/internal/{utils/types.d.ts → models/LKRPCommandTypes.d.ts} +6 -29
- package/lib/types/internal/models/LKRPCommandTypes.d.ts.map +1 -0
- package/lib/types/internal/{utils/TLVTags.d.ts → models/Tags.d.ts} +1 -1
- package/lib/types/internal/models/Tags.d.ts.map +1 -0
- package/lib/types/internal/models/Types.d.ts +10 -0
- package/lib/types/internal/models/Types.d.ts.map +1 -0
- package/lib/types/internal/use-cases/authentication/AuthenticateUseCase.d.ts +15 -2
- package/lib/types/internal/use-cases/authentication/AuthenticateUseCase.d.ts.map +1 -1
- package/lib/types/internal/use-cases/authentication/DecryptDataUseCase.d.ts +7 -0
- package/lib/types/internal/use-cases/authentication/DecryptDataUseCase.d.ts.map +1 -0
- package/lib/types/internal/use-cases/authentication/EncryptDataUseCase.d.ts +7 -0
- package/lib/types/internal/use-cases/authentication/EncryptDataUseCase.d.ts.map +1 -0
- package/lib/types/internal/use-cases/di/useCasesModule.d.ts.map +1 -1
- package/lib/types/internal/use-cases/di/useCasesTypes.d.ts +2 -0
- 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 +4 -3
- package/lib/types/internal/utils/LKRPCommand.d.ts.map +1 -1
- package/lib/types/internal/utils/TLVParser.d.ts +4 -3
- package/lib/types/internal/utils/TLVParser.d.ts.map +1 -1
- package/lib/types/internal/utils/Trustchain.d.ts +14 -0
- package/lib/types/internal/utils/Trustchain.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/tsconfig.prod.tsbuildinfo +1 -1
- package/package.json +35 -30
- package/lib/cjs/api/app-binder/Errors.js +0 -2
- package/lib/cjs/api/app-binder/Errors.js.map +0 -7
- package/lib/cjs/api/app-binder/GetAppNameCommandTypes.js +0 -2
- package/lib/cjs/api/app-binder/GetAppNameCommandTypes.js.map +0 -7
- package/lib/cjs/api/app-binder/GetSeedIdCommandTypes.js +0 -2
- package/lib/cjs/api/app-binder/GetSeedIdCommandTypes.js.map +0 -7
- package/lib/cjs/api/app-binder/InitCommandTypes.js +0 -2
- package/lib/cjs/api/app-binder/InitCommandTypes.js.map +0 -7
- package/lib/cjs/api/app-binder/KeypairFromBytes.js +0 -2
- package/lib/cjs/api/app-binder/KeypairFromBytes.js.map +0 -7
- package/lib/cjs/api/app-binder/LKRPTypes.js +0 -2
- package/lib/cjs/api/app-binder/LKRPTypes.js.map +0 -7
- package/lib/cjs/api/app-binder/ParseStreamBlockCommandCommandTypes.js +0 -2
- package/lib/cjs/api/app-binder/ParseStreamBlockCommandCommandTypes.js.map +0 -7
- package/lib/cjs/api/app-binder/ParseStreamBlockHeaderCommandTypes.js +0 -2
- package/lib/cjs/api/app-binder/ParseStreamBlockHeaderCommandTypes.js.map +0 -7
- package/lib/cjs/api/app-binder/ParseStreamBlockSignatureTypes.js +0 -2
- package/lib/cjs/api/app-binder/ParseStreamBlockSignatureTypes.js.map +0 -7
- package/lib/cjs/api/app-binder/SetTrustedMemberTypes.js +0 -2
- package/lib/cjs/api/app-binder/SetTrustedMemberTypes.js.map +0 -7
- package/lib/cjs/api/app-binder/SignBlockCommandTypes.js +0 -2
- package/lib/cjs/api/app-binder/SignBlockCommandTypes.js.map +0 -7
- package/lib/cjs/api/app-binder/SignBlockHeaderCommandTypes.js +0 -2
- package/lib/cjs/api/app-binder/SignBlockHeaderCommandTypes.js.map +0 -7
- package/lib/cjs/api/app-binder/SignBlockSignatureCommandTypes.js +0 -2
- package/lib/cjs/api/app-binder/SignBlockSignatureCommandTypes.js.map +0 -7
- package/lib/cjs/api/app-binder/SignBlockSingleCommandTypes.js +0 -2
- package/lib/cjs/api/app-binder/SignBlockSingleCommandTypes.js.map +0 -7
- package/lib/cjs/internal/app-binder/device-action/AuthenticateDeviceAction.js +0 -2
- package/lib/cjs/internal/app-binder/device-action/AuthenticateDeviceAction.js.map +0 -7
- package/lib/cjs/internal/utils/TLVBuilder.js +0 -2
- package/lib/cjs/internal/utils/TLVBuilder.js.map +0 -7
- package/lib/cjs/internal/utils/crypto.js +0 -2
- package/lib/cjs/internal/utils/crypto.js.map +0 -7
- package/lib/cjs/internal/utils/hex.js +0 -2
- package/lib/cjs/internal/utils/hex.js.map +0 -7
- package/lib/cjs/internal/utils/types.js +0 -2
- package/lib/cjs/internal/utils/types.js.map +0 -7
- package/lib/esm/api/app-binder/Errors.js +0 -2
- package/lib/esm/api/app-binder/Errors.js.map +0 -7
- package/lib/esm/api/app-binder/GetAppNameCommandTypes.js +0 -1
- package/lib/esm/api/app-binder/GetSeedIdCommandTypes.js +0 -1
- package/lib/esm/api/app-binder/InitCommandTypes.js +0 -1
- package/lib/esm/api/app-binder/KeypairFromBytes.js +0 -2
- package/lib/esm/api/app-binder/KeypairFromBytes.js.map +0 -7
- package/lib/esm/api/app-binder/LKRPTypes.js +0 -2
- package/lib/esm/api/app-binder/LKRPTypes.js.map +0 -7
- package/lib/esm/api/app-binder/ParseStreamBlockCommandCommandTypes.js +0 -1
- package/lib/esm/api/app-binder/ParseStreamBlockHeaderCommandTypes.js +0 -1
- package/lib/esm/api/app-binder/ParseStreamBlockSignatureTypes.js +0 -1
- package/lib/esm/api/app-binder/SetTrustedMemberTypes.js +0 -1
- package/lib/esm/api/app-binder/SetTrustedMemberTypes.js.map +0 -7
- package/lib/esm/api/app-binder/SignBlockCommandTypes.js +0 -1
- package/lib/esm/api/app-binder/SignBlockCommandTypes.js.map +0 -7
- package/lib/esm/api/app-binder/SignBlockHeaderCommandTypes.js +0 -1
- package/lib/esm/api/app-binder/SignBlockHeaderCommandTypes.js.map +0 -7
- package/lib/esm/api/app-binder/SignBlockSignatureCommandTypes.js +0 -1
- package/lib/esm/api/app-binder/SignBlockSignatureCommandTypes.js.map +0 -7
- package/lib/esm/api/app-binder/SignBlockSingleCommandTypes.js +0 -1
- package/lib/esm/api/app-binder/SignBlockSingleCommandTypes.js.map +0 -7
- package/lib/esm/internal/app-binder/device-action/AuthenticateDeviceAction.js +0 -2
- package/lib/esm/internal/app-binder/device-action/AuthenticateDeviceAction.js.map +0 -7
- package/lib/esm/internal/utils/TLVBuilder.js +0 -2
- package/lib/esm/internal/utils/TLVBuilder.js.map +0 -7
- package/lib/esm/internal/utils/crypto.js +0 -2
- package/lib/esm/internal/utils/crypto.js.map +0 -7
- package/lib/esm/internal/utils/hex.js +0 -2
- package/lib/esm/internal/utils/hex.js.map +0 -7
- package/lib/esm/internal/utils/types.js +0 -1
- package/lib/esm/internal/utils/types.js.map +0 -7
- package/lib/types/api/app-binder/Errors.d.ts +0 -27
- package/lib/types/api/app-binder/Errors.d.ts.map +0 -1
- package/lib/types/api/app-binder/GetAppNameCommandTypes.d.ts +0 -5
- package/lib/types/api/app-binder/GetAppNameCommandTypes.d.ts.map +0 -1
- package/lib/types/api/app-binder/GetSeedIdCommandTypes.d.ts +0 -14
- package/lib/types/api/app-binder/GetSeedIdCommandTypes.d.ts.map +0 -1
- package/lib/types/api/app-binder/InitCommandTypes.d.ts +0 -5
- package/lib/types/api/app-binder/InitCommandTypes.d.ts.map +0 -1
- package/lib/types/api/app-binder/KeypairFromBytes.d.ts +0 -11
- package/lib/types/api/app-binder/KeypairFromBytes.d.ts.map +0 -1
- package/lib/types/api/app-binder/LKRPTypes.d.ts.map +0 -1
- package/lib/types/api/app-binder/ParseStreamBlockCommandCommandTypes.d.ts +0 -6
- package/lib/types/api/app-binder/ParseStreamBlockCommandCommandTypes.d.ts.map +0 -1
- package/lib/types/api/app-binder/ParseStreamBlockHeaderCommandTypes.d.ts +0 -5
- package/lib/types/api/app-binder/ParseStreamBlockHeaderCommandTypes.d.ts.map +0 -1
- package/lib/types/api/app-binder/ParseStreamBlockSignatureTypes.d.ts +0 -5
- package/lib/types/api/app-binder/ParseStreamBlockSignatureTypes.d.ts.map +0 -1
- package/lib/types/api/app-binder/SetTrustedMemberTypes.d.ts +0 -6
- package/lib/types/api/app-binder/SetTrustedMemberTypes.d.ts.map +0 -1
- package/lib/types/api/app-binder/SignBlockCommandTypes.d.ts +0 -9
- package/lib/types/api/app-binder/SignBlockCommandTypes.d.ts.map +0 -1
- package/lib/types/api/app-binder/SignBlockHeaderCommandTypes.d.ts +0 -5
- package/lib/types/api/app-binder/SignBlockHeaderCommandTypes.d.ts.map +0 -1
- package/lib/types/api/app-binder/SignBlockSignatureCommandTypes.d.ts +0 -6
- package/lib/types/api/app-binder/SignBlockSignatureCommandTypes.d.ts.map +0 -1
- package/lib/types/api/app-binder/SignBlockSingleCommandTypes.d.ts +0 -5
- package/lib/types/api/app-binder/SignBlockSingleCommandTypes.d.ts.map +0 -1
- package/lib/types/internal/app-binder/device-action/AuthenticateDeviceAction.d.ts +0 -42
- package/lib/types/internal/app-binder/device-action/AuthenticateDeviceAction.d.ts.map +0 -1
- package/lib/types/internal/utils/TLVBuilder.d.ts +0 -15
- package/lib/types/internal/utils/TLVBuilder.d.ts.map +0 -1
- package/lib/types/internal/utils/TLVTags.d.ts.map +0 -1
- package/lib/types/internal/utils/crypto.d.ts +0 -19
- package/lib/types/internal/utils/crypto.d.ts.map +0 -1
- package/lib/types/internal/utils/hex.d.ts +0 -3
- package/lib/types/internal/utils/hex.d.ts.map +0 -1
- package/lib/types/internal/utils/types.d.ts.map +0 -1
- /package/lib/esm/api/{app-binder/GetAppNameCommandTypes.js.map → model/JWT.js.map} +0 -0
- /package/lib/esm/{api/app-binder/GetSeedIdCommandTypes.js.map → internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.js.map} +0 -0
- /package/lib/esm/{api/app-binder/InitCommandTypes.js.map → internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.js.map} +0 -0
- /package/lib/esm/{api/app-binder/ParseStreamBlockCommandCommandTypes.js.map → internal/models/LKRPBlockTypes.js.map} +0 -0
- /package/lib/esm/{api/app-binder/ParseStreamBlockHeaderCommandTypes.js.map → internal/models/LKRPCommandTypes.js.map} +0 -0
- /package/lib/esm/{api/app-binder/ParseStreamBlockSignatureTypes.js.map → internal/models/Types.js.map} +0 -0
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { type GetSeedIdCommandArgs, type GetSeedIdCommandResponse } from "../../../api/app-binder/GetSeedIdCommandTypes";
|
|
3
2
|
import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
|
|
3
|
+
export type GetSeedIdCommandResponse = {
|
|
4
|
+
readonly credential: {
|
|
5
|
+
readonly version: number;
|
|
6
|
+
readonly curveId: number;
|
|
7
|
+
readonly signAlgorithm: number;
|
|
8
|
+
readonly publicKey: string;
|
|
9
|
+
};
|
|
10
|
+
readonly signature: string;
|
|
11
|
+
readonly attestation: string;
|
|
12
|
+
};
|
|
13
|
+
export type GetSeedIdCommandArgs = {
|
|
14
|
+
readonly challengeTLV: string;
|
|
15
|
+
};
|
|
4
16
|
export declare class GetSeedIdCommand implements Command<GetSeedIdCommandResponse, GetSeedIdCommandArgs, LedgerKeyringProtocolErrorCodes> {
|
|
5
17
|
private readonly args;
|
|
18
|
+
readonly name = "getSeedId";
|
|
6
19
|
private readonly errorHelper;
|
|
7
20
|
constructor(args: GetSeedIdCommandArgs);
|
|
8
21
|
getApdu(): Apdu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetSeedIdCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/GetSeedIdCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAIT,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"GetSeedIdCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/GetSeedIdCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAIT,KAAK,YAAY,EAEjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,CAAC,UAAU,EAAE;QACnB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;QAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;KAC5B,CAAC;IACF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,qBAAa,gBACX,YACE,OAAO,CACL,wBAAwB,EACxB,oBAAoB,EACpB,+BAA+B,CAChC;IAQS,OAAO,CAAC,QAAQ,CAAC,IAAI;IANjC,QAAQ,CAAC,IAAI,eAAe;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,oBAAoB;IACvD,OAAO,IAAI,IAAI;IAcf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CAAC,wBAAwB,EAAE,+BAA+B,CAAC;CAwG5E"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { type
|
|
2
|
+
import { type GetVersionCommandResponse } from "../../../api/app-binder/GetVersionCommandTypes";
|
|
3
3
|
import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
|
|
4
|
+
export type GetVersionCommandArgs = undefined;
|
|
4
5
|
export declare class GetVersionCommand implements Command<GetVersionCommandResponse, GetVersionCommandArgs, LedgerKeyringProtocolErrorCodes> {
|
|
6
|
+
readonly name = "getVersion";
|
|
5
7
|
private readonly errorHelper;
|
|
6
8
|
getApdu(): Apdu;
|
|
7
9
|
parseResponse(apduResponse: ApduResponse): CommandResult<GetVersionCommandResponse, LedgerKeyringProtocolErrorCodes>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetVersionCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/GetVersionCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAIT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,
|
|
1
|
+
{"version":3,"file":"GetVersionCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/GetVersionCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAIT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAExF,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAE9C,qBAAa,iBACX,YACE,OAAO,CACL,yBAAyB,EACzB,qBAAqB,EACrB,+BAA+B,CAChC;IAEH,QAAQ,CAAC,IAAI,gBAAgB;IAC7B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;IAEzD,OAAO,IAAI,IAAI;IAYf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CAAC,yBAAyB,EAAE,+BAA+B,CAAC;CAmB7E"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { type InitCommandArgs, type InitCommandResponse } from "../../../api/app-binder/InitCommandTypes";
|
|
3
2
|
import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
|
|
3
|
+
export type InitCommandResponse = void;
|
|
4
|
+
export type InitCommandArgs = {
|
|
5
|
+
publicKey: Uint8Array;
|
|
6
|
+
};
|
|
4
7
|
export declare class InitCommand implements Command<InitCommandResponse, InitCommandArgs, LedgerKeyringProtocolErrorCodes> {
|
|
5
8
|
private readonly args;
|
|
9
|
+
readonly name = "init";
|
|
6
10
|
constructor(args: InitCommandArgs);
|
|
7
11
|
private readonly errorHelper;
|
|
8
12
|
getApdu(): Apdu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/InitCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,
|
|
1
|
+
{"version":3,"file":"InitCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/InitCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,qBAAa,WACX,YACE,OAAO,CACL,mBAAmB,EACnB,eAAe,EACf,+BAA+B,CAChC;IAGS,OAAO,CAAC,QAAQ,CAAC,IAAI;IADjC,QAAQ,CAAC,IAAI,UAAU;gBACM,IAAI,EAAE,eAAe;IAElD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;IAEzD,OAAO,IAAI,IAAI;IAQf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CAAC,mBAAmB,EAAE,+BAA+B,CAAC;CAevE"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { type ParseBlockSignatureCommandArgs, type ParseBlockSignatureCommandResponse } from "../../../api/app-binder/ParseStreamBlockSignatureTypes";
|
|
3
2
|
import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
|
|
3
|
+
export type ParseBlockSignatureCommandResponse = Uint8Array;
|
|
4
|
+
export type ParseBlockSignatureCommandArgs = {
|
|
5
|
+
signature: Uint8Array;
|
|
6
|
+
};
|
|
4
7
|
export declare class ParseBlockSignatureCommand implements Command<ParseBlockSignatureCommandResponse, ParseBlockSignatureCommandArgs, LedgerKeyringProtocolErrorCodes> {
|
|
5
8
|
private readonly args;
|
|
9
|
+
readonly name = "parseBlockSignature";
|
|
6
10
|
private readonly errorHelper;
|
|
7
11
|
constructor(args: ParseBlockSignatureCommandArgs);
|
|
8
12
|
getApdu(): Apdu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParseBlockSignatureCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseBlockSignatureCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,
|
|
1
|
+
{"version":3,"file":"ParseBlockSignatureCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseBlockSignatureCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,kCAAkC,GAAG,UAAU,CAAC;AAE5D,MAAM,MAAM,8BAA8B,GAAG;IAAE,SAAS,EAAE,UAAU,CAAA;CAAE,CAAC;AAEvE,qBAAa,0BACX,YACE,OAAO,CACL,kCAAkC,EAClC,8BAA8B,EAC9B,+BAA+B,CAChC;IAQS,OAAO,CAAC,QAAQ,CAAC,IAAI;IANjC,QAAQ,CAAC,IAAI,yBAAyB;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,8BAA8B;IAEjE,OAAO,IAAI,IAAI;IAef,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,kCAAkC,EAClC,+BAA+B,CAChC;CAiBF"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { type ParseSingleCommandArgs, type ParseSingleCommandResponse } from "../../../api/app-binder/ParseStreamBlockCommandCommandTypes";
|
|
3
2
|
import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
|
|
3
|
+
export type ParseSingleCommandArgs = {
|
|
4
|
+
command: Uint8Array;
|
|
5
|
+
outputTrustedParam?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type ParseSingleCommandResponse = Uint8Array;
|
|
4
8
|
export declare class ParseSingleCommand implements Command<ParseSingleCommandResponse, ParseSingleCommandArgs, LedgerKeyringProtocolErrorCodes> {
|
|
5
9
|
private readonly args;
|
|
10
|
+
readonly name = "parseSingle";
|
|
6
11
|
private readonly errorHelper;
|
|
7
12
|
constructor(args: ParseSingleCommandArgs);
|
|
8
13
|
getApdu(): Apdu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParseStreamBlockCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseStreamBlockCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,
|
|
1
|
+
{"version":3,"file":"ParseStreamBlockCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseStreamBlockCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,UAAU,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC;AAEpD,qBAAa,kBACX,YACE,OAAO,CACL,0BAA0B,EAC1B,sBAAsB,EACtB,+BAA+B,CAChC;IAQS,OAAO,CAAC,QAAQ,CAAC,IAAI;IANjC,QAAQ,CAAC,IAAI,iBAAiB;IAC9B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,sBAAsB;IAEzD,OAAO,IAAI,IAAI;IAef,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,0BAA0B,EAC1B,+BAA+B,CAChC;CAiBF"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { type ParseBlockHeaderCommandArgs, type ParseBlockHeaderCommandResponse } from "../../../api/app-binder/ParseStreamBlockHeaderCommandTypes";
|
|
3
2
|
import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
|
|
3
|
+
export type ParseBlockHeaderCommandResponse = Uint8Array;
|
|
4
|
+
export type ParseBlockHeaderCommandArgs = {
|
|
5
|
+
header: Uint8Array;
|
|
6
|
+
};
|
|
4
7
|
export declare class ParseBlockHeaderCommand implements Command<ParseBlockHeaderCommandResponse, ParseBlockHeaderCommandArgs, LedgerKeyringProtocolErrorCodes> {
|
|
5
8
|
private readonly args;
|
|
9
|
+
readonly name = "parseBlockHeader";
|
|
6
10
|
private readonly errorHelper;
|
|
7
11
|
constructor(args: ParseBlockHeaderCommandArgs);
|
|
8
12
|
getApdu(): Apdu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParseStreamBlockHeader.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseStreamBlockHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,
|
|
1
|
+
{"version":3,"file":"ParseStreamBlockHeader.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseStreamBlockHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,+BAA+B,GAAG,UAAU,CAAC;AAEzD,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF,qBAAa,uBACX,YACE,OAAO,CACL,+BAA+B,EAC/B,2BAA2B,EAC3B,+BAA+B,CAChC;IAQS,OAAO,CAAC,QAAQ,CAAC,IAAI;IANjC,QAAQ,CAAC,IAAI,sBAAsB;IACnC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,2BAA2B;IAE9D,OAAO,IAAI,IAAI;IAUf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,+BAA+B,EAC/B,+BAA+B,CAChC;CAiBF"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { type SetTrustedMemberCommandArgs, type SetTrustedMemberCommandResponse } from "../../../api/app-binder/SetTrustedMemberTypes";
|
|
3
2
|
import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
|
|
3
|
+
export type SetTrustedMemberCommandResponse = void;
|
|
4
|
+
export type SetTrustedMemberCommandArgs = {
|
|
5
|
+
readonly iv: Uint8Array;
|
|
6
|
+
readonly memberTlv: Uint8Array;
|
|
7
|
+
};
|
|
4
8
|
export declare class SetTrustedMemberCommand implements Command<SetTrustedMemberCommandResponse, SetTrustedMemberCommandArgs, LedgerKeyringProtocolErrorCodes> {
|
|
5
9
|
private readonly args;
|
|
10
|
+
readonly name = "setTrustedMember";
|
|
6
11
|
private readonly errorHelper;
|
|
7
12
|
constructor(args: SetTrustedMemberCommandArgs);
|
|
8
13
|
getApdu(): Apdu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetTrustedMemberCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SetTrustedMemberCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"SetTrustedMemberCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SetTrustedMemberCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAAC;AAEnD,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;CAChC,CAAC;AAEF,qBAAa,uBACX,YACE,OAAO,CACL,+BAA+B,EAC/B,2BAA2B,EAC3B,+BAA+B,CAChC;IAQS,OAAO,CAAC,QAAQ,CAAC,IAAI;IANjC,QAAQ,CAAC,IAAI,sBAAsB;IACnC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,2BAA2B;IAE9D,OAAO,IAAI,IAAI;IAgBf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,+BAA+B,EAC/B,+BAA+B,CAChC;CAeF"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { type SignBlockHeaderCommandArgs, type SignBlockHeaderCommandResponse } from "../../../api/app-binder/SignBlockHeaderCommandTypes";
|
|
3
2
|
import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
|
|
3
|
+
export interface SignBlockHeaderCommandArgs {
|
|
4
|
+
parent: Uint8Array;
|
|
5
|
+
commandCount: number;
|
|
6
|
+
}
|
|
7
|
+
export type SignBlockHeaderCommandResponse = Uint8Array;
|
|
8
|
+
export declare const ISSUER_PLACEHOLDER_TLV: Uint8Array<ArrayBuffer>;
|
|
4
9
|
export declare class SignBlockHeaderCommand implements Command<SignBlockHeaderCommandResponse, SignBlockHeaderCommandArgs, LedgerKeyringProtocolErrorCodes> {
|
|
5
10
|
private readonly args;
|
|
11
|
+
readonly name = "signBlockHeader";
|
|
6
12
|
private readonly errorHelper;
|
|
7
13
|
constructor(args: SignBlockHeaderCommandArgs);
|
|
8
14
|
getApdu(): Apdu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignBlockHeader.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"SignBlockHeader.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,UAAU,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,8BAA8B,GAAG,UAAU,CAAC;AAMxD,eAAO,MAAM,sBAAsB,yBAIjC,CAAC;AAEH,qBAAa,sBACX,YACE,OAAO,CACL,8BAA8B,EAC9B,0BAA0B,EAC1B,+BAA+B,CAChC;IAQS,OAAO,CAAC,QAAQ,CAAC,IAAI;IANjC,QAAQ,CAAC,IAAI,qBAAqB;IAClC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,0BAA0B;IAE7D,OAAO,IAAI,IAAI;IAqBf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,8BAA8B,EAC9B,+BAA+B,CAChC;CAiBF"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { type SignBlockSignatureCommandArgs, type SignBlockSignatureCommandResponse } from "../../../api/app-binder/SignBlockSignatureCommandTypes";
|
|
3
2
|
import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
|
|
3
|
+
export type SignBlockSignatureCommandArgs = Record<string, never>;
|
|
4
|
+
export interface SignBlockSignatureCommandResponse {
|
|
5
|
+
signature: Uint8Array;
|
|
6
|
+
deviceSessionKey: Uint8Array;
|
|
7
|
+
}
|
|
4
8
|
export declare class SignBlockSignatureCommand implements Command<SignBlockSignatureCommandResponse, SignBlockSignatureCommandArgs, LedgerKeyringProtocolErrorCodes> {
|
|
9
|
+
readonly name = "signBlockSignature";
|
|
5
10
|
private readonly errorHelper;
|
|
6
11
|
constructor();
|
|
7
12
|
getApdu(): Apdu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignBlockSignatureCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockSignatureCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,
|
|
1
|
+
{"version":3,"file":"SignBlockSignatureCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockSignatureCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAElE,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,UAAU,CAAC;IACtB,gBAAgB,EAAE,UAAU,CAAC;CAC9B;AAED,qBAAa,yBACX,YACE,OAAO,CACL,iCAAiC,EACjC,6BAA6B,EAC7B,+BAA+B,CAChC;IAEH,QAAQ,CAAC,IAAI,wBAAwB;IACrC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;;IAIzD,OAAO,IAAI,IAAI;IASf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,iCAAiC,EACjC,+BAA+B,CAChC;CA6CF"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { type SignBlockSingleCommandArgs, type SignBlockSingleCommandResponse } from "../../../api/app-binder/SignBlockSingleCommandTypes";
|
|
3
2
|
import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
|
|
3
|
+
export interface SignBlockSingleCommandArgs {
|
|
4
|
+
command: Uint8Array;
|
|
5
|
+
}
|
|
6
|
+
export type SignBlockSingleCommandResponse = Uint8Array;
|
|
4
7
|
export declare class SignBlockSingleCommand implements Command<SignBlockSingleCommandResponse, SignBlockSingleCommandArgs, LedgerKeyringProtocolErrorCodes> {
|
|
5
8
|
private readonly args;
|
|
9
|
+
readonly name = "signBlockSingle";
|
|
6
10
|
private readonly errorHelper;
|
|
7
11
|
constructor(args: SignBlockSingleCommandArgs);
|
|
8
12
|
getApdu(): Apdu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignBlockSingleCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockSingleCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,
|
|
1
|
+
{"version":3,"file":"SignBlockSingleCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockSingleCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,MAAM,MAAM,8BAA8B,GAAG,UAAU,CAAC;AAExD,qBAAa,sBACX,YACE,OAAO,CACL,8BAA8B,EAC9B,0BAA0B,EAC1B,+BAA+B,CAChC;IAQS,OAAO,CAAC,QAAQ,CAAC,IAAI;IANjC,QAAQ,CAAC,IAAI,qBAAqB;IAClC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,0BAA0B;IAE7D,OAAO,IAAI,IAAI;IAWf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,8BAA8B,EAC9B,+BAA+B,CAChC;CAiBF"}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { type DeviceActionStateMachine, type InternalApi, XStateDeviceAction } from "@ledgerhq/device-management-kit";
|
|
2
2
|
import { type Either } from "purify-ts";
|
|
3
3
|
import { type AddToTrustchainDAError, type AddToTrustchainDAInput, type AddToTrustchainDAIntermediateValue, type AddToTrustchainDAInternalState, type AddToTrustchainDAOutput } from "../../../api/app-binder/AddToTrustchainDeviceActionTypes";
|
|
4
|
-
import { type
|
|
5
|
-
import { type
|
|
4
|
+
import { type CryptoService } from "../../../api/crypto/CryptoService";
|
|
5
|
+
import { type KeyPair } from "../../../api/crypto/KeyPair";
|
|
6
6
|
import { type ParseStreamToDeviceTaskInput } from "../../app-binder/task/ParseStreamToDeviceTask";
|
|
7
|
-
import { type
|
|
7
|
+
import { type SignBlockTaskInput } from "../../app-binder/task/SignBlockTask";
|
|
8
8
|
export declare class AddToTrustchainDeviceAction extends XStateDeviceAction<AddToTrustchainDAOutput, AddToTrustchainDAInput, AddToTrustchainDAError, AddToTrustchainDAIntermediateValue, AddToTrustchainDAInternalState> {
|
|
9
9
|
makeStateMachine(internalApi: InternalApi): DeviceActionStateMachine<AddToTrustchainDAOutput, AddToTrustchainDAInput, AddToTrustchainDAError, AddToTrustchainDAIntermediateValue, AddToTrustchainDAInternalState>;
|
|
10
10
|
extractDependencies(internalApi: InternalApi): {
|
|
11
|
-
initCommand: (
|
|
11
|
+
initCommand: (args: {
|
|
12
|
+
input: Either<AddToTrustchainDAError, CryptoService>;
|
|
13
|
+
}) => Promise<Either<AddToTrustchainDAError, KeyPair>>;
|
|
12
14
|
parseStream: (args: {
|
|
13
15
|
input: Either<AddToTrustchainDAError, ParseStreamToDeviceTaskInput>;
|
|
14
16
|
}) => Promise<Either<AddToTrustchainDAError, unknown>>;
|
|
15
17
|
signBlock: (args: {
|
|
16
|
-
input: Either<AddToTrustchainDAError, SignBlockTaskInput
|
|
17
|
-
|
|
18
|
+
input: Either<AddToTrustchainDAError, SignBlockTaskInput & {
|
|
19
|
+
cryptoService: CryptoService;
|
|
20
|
+
}>;
|
|
21
|
+
}) => Promise<Either<AddToTrustchainDAError, void>>;
|
|
18
22
|
};
|
|
19
23
|
}
|
|
20
24
|
//# sourceMappingURL=AddToTrustchainDeviceAction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddToTrustchainDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/device-action/AddToTrustchainDeviceAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAE7B,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"AddToTrustchainDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/device-action/AddToTrustchainDeviceAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAE7B,KAAK,WAAW,EAGhB,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAA4B,MAAM,WAAW,CAAC;AAGlE,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,kCAAkC,EACvC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAG7B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,yCAAyC,CAAC;AAMjD,qBAAa,2BAA4B,SAAQ,kBAAkB,CACjE,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,kCAAkC,EAClC,8BAA8B,CAC/B;IACC,gBAAgB,CACd,WAAW,EAAE,WAAW,GACvB,wBAAwB,CACzB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,kCAAkC,EAClC,8BAA8B,CAC/B;IAyPD,mBAAmB,CAAC,WAAW,EAAE,WAAW;4BAEd;YACxB,KAAK,EAAE,MAAM,CAAC,sBAAsB,EAAE,aAAa,CAAC,CAAC;SACtD,KAAG,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;4BAO1B;YACxB,KAAK,EAAE,MAAM,CAAC,sBAAsB,EAAE,4BAA4B,CAAC,CAAC;SACrE;0BAOiB;YAChB,KAAK,EAAE,MAAM,CACX,sBAAsB,EACtB,kBAAkB,GAAG;gBAAE,aAAa,EAAE,aAAa,CAAA;aAAE,CACtD,CAAC;SACH,KAAG,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;;CAQtD"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type DeviceActionStateMachine, type InternalApi, XStateDeviceAction } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type Either } from "purify-ts";
|
|
3
|
+
import { type AuthenticateDAError, type AuthenticateDAIntermediateValue, type AuthenticateDAOutput } from "../../../api/app-binder/AuthenticateDeviceActionTypes";
|
|
4
|
+
import { type CryptoService } from "../../../api/crypto/CryptoService";
|
|
5
|
+
import { type KeyPair } from "../../../api/crypto/KeyPair";
|
|
6
|
+
import { type JWT } from "../../../api/model/JWT";
|
|
7
|
+
import { type LKRPDataSource } from "../../lkrp-datasource/data/LKRPDataSource";
|
|
8
|
+
import { type LKRPBlockStream } from "../../utils/LKRPBlockStream";
|
|
9
|
+
import { type AuthenticateWithDeviceDAInput, type AuthenticateWithDeviceDAInternalState } from "./models/AuthenticateWithDeviceDeviceActionTypes";
|
|
10
|
+
export declare class AuthenticateWithDeviceDeviceAction extends XStateDeviceAction<AuthenticateDAOutput, AuthenticateWithDeviceDAInput, AuthenticateDAError, AuthenticateDAIntermediateValue, AuthenticateWithDeviceDAInternalState> {
|
|
11
|
+
makeStateMachine(internalApi: InternalApi): DeviceActionStateMachine<AuthenticateDAOutput, AuthenticateWithDeviceDAInput, AuthenticateDAError, AuthenticateDAIntermediateValue, AuthenticateWithDeviceDAInternalState>;
|
|
12
|
+
extractDependencies(internalApi: InternalApi): {
|
|
13
|
+
deviceAuth: ({ input }: {
|
|
14
|
+
input: AuthenticateWithDeviceDAInput;
|
|
15
|
+
}) => Promise<Either<AuthenticateDAError, import("../../lkrp-datasource/data/LKRPDataSource").AuthenticationResponse>>;
|
|
16
|
+
getTrustchain: (args: {
|
|
17
|
+
input: Either<AuthenticateDAError, {
|
|
18
|
+
lkrpDataSource: LKRPDataSource;
|
|
19
|
+
trustchainId: string;
|
|
20
|
+
jwt: JWT;
|
|
21
|
+
}>;
|
|
22
|
+
}) => Promise<Either<AuthenticateDAError, import("../../utils/Trustchain").Trustchain>>;
|
|
23
|
+
extractEncryptionKey: ({ input, }: {
|
|
24
|
+
input: {
|
|
25
|
+
cryptoService: CryptoService;
|
|
26
|
+
keyPair: KeyPair;
|
|
27
|
+
stream: Either<AuthenticateDAError, LKRPBlockStream>;
|
|
28
|
+
};
|
|
29
|
+
}) => Promise<Either<AuthenticateDAError, Uint8Array<ArrayBufferLike>>>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=AuthenticateWithDeviceDeviceAction.d.ts.map
|
package/lib/types/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthenticateWithDeviceDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/device-action/AuthenticateWithDeviceDeviceAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAIhB,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAA4B,MAAM,WAAW,CAAC;AAGlE,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EAG1B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMnD,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAI1C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGvE,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,qCAAqC,EAC3C,MAAM,kDAAkD,CAAC;AAM1D,qBAAa,kCAAmC,SAAQ,kBAAkB,CACxE,oBAAoB,EACpB,6BAA6B,EAC7B,mBAAmB,EACnB,+BAA+B,EAC/B,qCAAqC,CACtC;IACC,gBAAgB,CACd,WAAW,EAAE,WAAW,GACvB,wBAAwB,CACzB,oBAAoB,EACpB,6BAA6B,EAC7B,mBAAmB,EACnB,+BAA+B,EAC/B,qCAAqC,CACtC;IA2SD,mBAAmB,CAAC,WAAW,EAAE,WAAW;gCAKhB;YAAE,KAAK,EAAE,6BAA6B,CAAA;SAAE;8BAM1C;YACpB,KAAK,EAAE,MAAM,CACX,mBAAmB,EACnB;gBACE,cAAc,EAAE,cAAc,CAAC;gBAC/B,YAAY,EAAE,MAAM,CAAC;gBACrB,GAAG,EAAE,GAAG,CAAC;aACV,CACF,CAAC;SACH;2CASE;YACD,KAAK,EAAE;gBACL,aAAa,EAAE,aAAa,CAAC;gBAC7B,OAAO,EAAE,OAAO,CAAC;gBACjB,MAAM,EAAE,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;aACtD,CAAC;SACH;;CAUN"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type DeviceActionStateMachine, type ExecuteDeviceActionReturnType, XStateDeviceAction } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type Either } from "purify-ts";
|
|
3
|
+
import { type AuthenticateDAError, type AuthenticateDAIntermediateValue, type AuthenticateDAOutput } from "../../../api/app-binder/AuthenticateDeviceActionTypes";
|
|
4
|
+
import { type CryptoService } from "../../../api/crypto/CryptoService";
|
|
5
|
+
import { type KeyPair } from "../../../api/crypto/KeyPair";
|
|
6
|
+
import { type JWT } from "../../../api/model/JWT";
|
|
7
|
+
import { type LKRPDataSource } from "../../lkrp-datasource/data/LKRPDataSource";
|
|
8
|
+
import { type LKRPBlockStream } from "../../utils/LKRPBlockStream";
|
|
9
|
+
import { type AuthenticateWithKeypairDAInput, type AuthenticateWithKeypairDAInternalState } from "./models/AuthenticateWithKeypairDeviceActionTypes";
|
|
10
|
+
export declare class AuthenticateWithKeypairDeviceAction extends XStateDeviceAction<AuthenticateDAOutput, AuthenticateWithKeypairDAInput, AuthenticateDAError, AuthenticateDAIntermediateValue, AuthenticateWithKeypairDAInternalState> {
|
|
11
|
+
execute(): ExecuteDeviceActionReturnType<AuthenticateDAOutput, AuthenticateDAError, AuthenticateDAIntermediateValue>;
|
|
12
|
+
makeStateMachine(): DeviceActionStateMachine<AuthenticateDAOutput, AuthenticateWithKeypairDAInput, AuthenticateDAError, AuthenticateDAIntermediateValue, AuthenticateWithKeypairDAInternalState>;
|
|
13
|
+
extractDependencies(): {
|
|
14
|
+
keyPairAuth: ({ input }: {
|
|
15
|
+
input: AuthenticateWithKeypairDAInput;
|
|
16
|
+
}) => Promise<Either<AuthenticateDAError, import("../../lkrp-datasource/data/LKRPDataSource").AuthenticationResponse>>;
|
|
17
|
+
getTrustchain: ({ input, }: {
|
|
18
|
+
input: {
|
|
19
|
+
lkrpDataSource: LKRPDataSource;
|
|
20
|
+
trustchainId: string;
|
|
21
|
+
jwt: Either<AuthenticateDAError, JWT>;
|
|
22
|
+
};
|
|
23
|
+
}) => Promise<Either<AuthenticateDAError, import("../../utils/Trustchain").Trustchain>>;
|
|
24
|
+
extractEncryptionKey: ({ input, }: {
|
|
25
|
+
input: {
|
|
26
|
+
cryptoService: CryptoService;
|
|
27
|
+
keyPair: KeyPair;
|
|
28
|
+
stream: Either<AuthenticateDAError, LKRPBlockStream>;
|
|
29
|
+
};
|
|
30
|
+
}) => Promise<Either<AuthenticateDAError, Uint8Array<ArrayBufferLike>>>;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=AuthenticateWithKeypairDeviceAction.d.ts.map
|
package/lib/types/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthenticateWithKeypairDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/device-action/AuthenticateWithKeypairDeviceAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAGlC,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAA4B,MAAM,WAAW,CAAC;AAGlE,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EAE1B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMnD,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAI1C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGvE,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,sCAAsC,EAC5C,MAAM,mDAAmD,CAAC;AAG3D,qBAAa,mCAAoC,SAAQ,kBAAkB,CACzE,oBAAoB,EACpB,8BAA8B,EAC9B,mBAAmB,EACnB,+BAA+B,EAC/B,sCAAsC,CACvC;IACC,OAAO,IAAI,6BAA6B,CACtC,oBAAoB,EACpB,mBAAmB,EACnB,+BAA+B,CAChC;IAKD,gBAAgB,IAAI,wBAAwB,CAC1C,oBAAoB,EACpB,8BAA8B,EAC9B,mBAAmB,EACnB,+BAA+B,EAC/B,sCAAsC,CACvC;IA4KD,mBAAmB;iCAKU;YAAE,KAAK,EAAE,8BAA8B,CAAA;SAAE;oCAY/D;YACD,KAAK,EAAE;gBACL,cAAc,EAAE,cAAc,CAAC;gBAC/B,YAAY,EAAE,MAAM,CAAC;gBACrB,GAAG,EAAE,MAAM,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC;aACvC,CAAC;SACH;2CASE;YACD,KAAK,EAAE;gBACL,aAAa,EAAE,aAAa,CAAC;gBAC7B,OAAO,EAAE,OAAO,CAAC;gBACjB,MAAM,EAAE,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;aACtD,CAAC;SACH;;CAUN"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Either } from "purify-ts";
|
|
2
|
+
import { type CryptoService } from "../../../../api/crypto/CryptoService";
|
|
3
|
+
import { type KeyPair } from "../../../../api/crypto/KeyPair";
|
|
4
|
+
import { type AuthenticateDAError, type JWT, type Permissions } from "../../../../api/index";
|
|
5
|
+
import { type LKRPDataSource } from "../../../lkrp-datasource/data/LKRPDataSource";
|
|
6
|
+
import { type Trustchain } from "../../../utils/Trustchain";
|
|
7
|
+
export type AuthenticateWithDeviceDAInput = {
|
|
8
|
+
readonly lkrpDataSource: LKRPDataSource;
|
|
9
|
+
readonly appId: number;
|
|
10
|
+
readonly cryptoService: CryptoService;
|
|
11
|
+
readonly keyPair: KeyPair;
|
|
12
|
+
readonly clientName: string;
|
|
13
|
+
readonly permissions: Permissions;
|
|
14
|
+
};
|
|
15
|
+
export type AuthenticateWithDeviceDAInternalState = Either<AuthenticateDAError, {
|
|
16
|
+
readonly trustchainId: string | null;
|
|
17
|
+
readonly jwt: JWT | null;
|
|
18
|
+
readonly trustchain: Trustchain | null;
|
|
19
|
+
readonly encryptionKey: Uint8Array | null;
|
|
20
|
+
readonly wasAddedToTrustchain: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=AuthenticateWithDeviceDeviceActionTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthenticateWithDeviceDeviceActionTypes.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/models/AuthenticateWithDeviceDeviceActionTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,GAAG,EACR,KAAK,WAAW,EACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG,MAAM,CACxD,mBAAmB,EACnB;IACE,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,aAAa,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1C,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC;CACxC,CACF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Either } from "purify-ts";
|
|
2
|
+
import { type CryptoService } from "../../../../api/crypto/CryptoService";
|
|
3
|
+
import { type KeyPair } from "../../../../api/crypto/KeyPair";
|
|
4
|
+
import { type AuthenticateDAError, type JWT } from "../../../../api/index";
|
|
5
|
+
import { type LKRPDataSource } from "../../../lkrp-datasource/data/LKRPDataSource";
|
|
6
|
+
import { type Trustchain } from "../../../utils/Trustchain";
|
|
7
|
+
export type AuthenticateWithKeypairDAInput = {
|
|
8
|
+
readonly lkrpDataSource: LKRPDataSource;
|
|
9
|
+
readonly appId: number;
|
|
10
|
+
readonly cryptoService: CryptoService;
|
|
11
|
+
readonly keyPair: KeyPair;
|
|
12
|
+
readonly trustchainId: string;
|
|
13
|
+
};
|
|
14
|
+
export type AuthenticateWithKeypairDAInternalState = Either<AuthenticateDAError, {
|
|
15
|
+
readonly jwt: JWT | null;
|
|
16
|
+
readonly trustchain: Trustchain | null;
|
|
17
|
+
readonly encryptionKey: Uint8Array | null;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=AuthenticateWithKeypairDeviceActionTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthenticateWithKeypairDeviceActionTypes.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/models/AuthenticateWithKeypairDeviceActionTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG,MAAM,CACzD,mBAAmB,EACnB;IACE,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,aAAa,EAAE,UAAU,GAAG,IAAI,CAAC;CAC3C,CACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Either } from "purify-ts";
|
|
2
|
+
import { type AuthenticateDAError } from "../../../api/index";
|
|
3
|
+
import { type AuthenticationPayload, type AuthenticationResponse, type Challenge, type LKRPDataSource } from "../../lkrp-datasource/data/LKRPDataSource";
|
|
4
|
+
export declare class AuthenticateTask {
|
|
5
|
+
run(lkrpDataSource: LKRPDataSource, signerTask: {
|
|
6
|
+
run: (challenge: Challenge) => PromiseLike<Either<AuthenticateDAError, AuthenticationPayload>>;
|
|
7
|
+
}): Promise<Either<AuthenticateDAError, AuthenticationResponse>>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=AuthenticateTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthenticateTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/AuthenticateTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,+CAA+C,CAAC;AAEvD,qBAAa,gBAAgB;IAC3B,GAAG,CACD,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE;QACV,GAAG,EAAE,CACH,SAAS,EAAE,SAAS,KACjB,WAAW,CAAC,MAAM,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC,CAAC;KACtE,GACA,OAAO,CAAC,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,CAAC;CAOhE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type CryptoService } from "../../../api/crypto/CryptoService";
|
|
2
|
+
import { type KeyPair } from "../../../api/crypto/KeyPair";
|
|
3
|
+
import { LKRPUnknownError } from "../../../api/model/Errors";
|
|
4
|
+
import { type LKRPBlockStream } from "../../utils/LKRPBlockStream";
|
|
5
|
+
export declare class ExtractEncryptionKeyTask {
|
|
6
|
+
run(cryptoService: CryptoService, keyPair: KeyPair, stream: LKRPBlockStream): Promise<import("purify-ts").Either<LKRPUnknownError, Uint8Array<ArrayBufferLike>>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=ExtractEncryptionKeyTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtractEncryptionKeyTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/ExtractEncryptionKeyTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEvE,qBAAa,wBAAwB;IAC7B,GAAG,CACP,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,eAAe;CAa1B"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type InternalApi } from "@ledgerhq/device-management-kit";
|
|
2
2
|
import { type Either } from "purify-ts";
|
|
3
|
-
import { type
|
|
3
|
+
import { type CryptoService } from "../../../api/crypto/CryptoService";
|
|
4
|
+
import { type KeyPair } from "../../../api/crypto/KeyPair";
|
|
4
5
|
import { type LKRPDeviceCommandError } from "../../app-binder/command/utils/ledgerKeyringProtocolErrors";
|
|
5
6
|
export declare class InitTask {
|
|
6
7
|
private readonly api;
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
private readonly cryptoService;
|
|
9
|
+
constructor(api: InternalApi, cryptoService: CryptoService);
|
|
10
|
+
run(): Promise<Either<LKRPDeviceCommandError, KeyPair>>;
|
|
9
11
|
}
|
|
10
12
|
//# 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,OAAO,EAAE,MAAM,
|
|
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,aAAa,EAAS,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gEAAgE,CAAC;AAE7G,qBAAa,QAAQ;IAEjB,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBADb,GAAG,EAAE,WAAW,EAChB,aAAa,EAAE,aAAa;IAGzC,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;CAU9D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type InternalApi
|
|
1
|
+
import { type InternalApi } from "@ledgerhq/device-management-kit";
|
|
2
2
|
import { type Either, EitherAsync } from "purify-ts";
|
|
3
|
-
import { type LKRPMissingDataError, type LKRPParsingError } from "../../../api/
|
|
3
|
+
import { type LKRPMissingDataError, type LKRPParsingError, LKRPUnknownError } from "../../../api/model/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 | LKRPUnknownError;
|
|
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,EAGL,KAAK,WAAW,EACjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAAE,WAAW,EAAe,MAAM,WAAW,CAAC;AAElE,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAQ3B,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;AAI/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,gBAAgB,CAAC;AAErB,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;IAsD3B,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,13 +1,15 @@
|
|
|
1
|
-
import { type InternalApi
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
4
|
-
import { type
|
|
1
|
+
import { type InternalApi } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { EitherAsync } from "purify-ts";
|
|
3
|
+
import { type CryptoService } from "../../../api/crypto/CryptoService";
|
|
4
|
+
import { type KeyPair } from "../../../api/crypto/KeyPair";
|
|
5
|
+
import { LKRPDataSourceError, type LKRPMissingDataError, LKRPOutdatedTrustchainError, type LKRPParsingError, LKRPUnknownError } from "../../../api/model/Errors";
|
|
6
|
+
import { type JWT } from "../../../api/model/JWT";
|
|
5
7
|
import { type LKRPDeviceCommandError } from "../../app-binder/command/utils/ledgerKeyringProtocolErrors";
|
|
6
8
|
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";
|
|
7
11
|
import { LKRPBlock } from "../../utils/LKRPBlock";
|
|
8
12
|
import { LKRPCommand } from "../../utils/LKRPCommand";
|
|
9
|
-
import { CommandTags } from "../../utils/TLVTags";
|
|
10
|
-
import { type EncryptedCommand, type EncryptedDeriveCommand, type EncryptedPublishKeyCommand } from "../../utils/types";
|
|
11
13
|
import { TrustedProperties } from "./utils/TrustedProperties";
|
|
12
14
|
type BlockFlow = {
|
|
13
15
|
type: "derive";
|
|
@@ -34,7 +36,7 @@ type EncryptedBlock = {
|
|
|
34
36
|
commands: EncryptedCommand[];
|
|
35
37
|
signature: SignaturePayload;
|
|
36
38
|
};
|
|
37
|
-
|
|
39
|
+
type SignBlockError = LKRPDeviceCommandError | LKRPParsingError | LKRPMissingDataError | LKRPDataSourceError | LKRPOutdatedTrustchainError | LKRPUnknownError;
|
|
38
40
|
export type SignBlockTaskInput = {
|
|
39
41
|
lkrpDataSource: LKRPDataSource;
|
|
40
42
|
trustchainId: string;
|
|
@@ -42,15 +44,15 @@ export type SignBlockTaskInput = {
|
|
|
42
44
|
jwt: JWT;
|
|
43
45
|
parent: Uint8Array;
|
|
44
46
|
blockFlow: BlockFlow;
|
|
45
|
-
sessionKeypair:
|
|
47
|
+
sessionKeypair: KeyPair;
|
|
46
48
|
};
|
|
47
|
-
export declare const ISSUER_PLACEHOLDER: Uint8Array<ArrayBuffer>;
|
|
48
49
|
export declare class SignBlockTask {
|
|
49
50
|
private readonly api;
|
|
50
|
-
|
|
51
|
+
private readonly cryptoService;
|
|
52
|
+
constructor(api: InternalApi, cryptoService: CryptoService);
|
|
51
53
|
run({ lkrpDataSource, trustchainId, path, jwt, parent, blockFlow, sessionKeypair, }: SignBlockTaskInput): EitherAsync<SignBlockError, void>;
|
|
52
54
|
signBlockHeader(parent: Uint8Array, commandCount: number): EitherAsync<SignBlockError, HeaderPayload>;
|
|
53
|
-
signBlockSignature(sessionKeypair:
|
|
55
|
+
signBlockSignature(sessionKeypair: KeyPair): EitherAsync<SignBlockError, SignaturePayload>;
|
|
54
56
|
signCommands(applicationPath: string, block: BlockFlow): EitherAsync<SignBlockError, EncryptedCommand>[];
|
|
55
57
|
signSingleCommand(command: Uint8Array): EitherAsync<SignBlockError, TrustedProperties>;
|
|
56
58
|
signDeriveCommand(applicationPath: string): EitherAsync<SignBlockError, EncryptedDeriveCommand>;
|
|
@@ -61,8 +63,8 @@ export declare class SignBlockTask {
|
|
|
61
63
|
permissions: number;
|
|
62
64
|
}>;
|
|
63
65
|
signPublishKeyCommand({ publicKey }: Pick<AddMemberBlockData, "publicKey">): EitherAsync<SignBlockError, EncryptedPublishKeyCommand>;
|
|
64
|
-
decryptBlock(parent: Uint8Array, { header, commands, signature }: EncryptedBlock):
|
|
65
|
-
decryptCommand(secret: Uint8Array, command: EncryptedCommand):
|
|
66
|
+
decryptBlock(parent: Uint8Array, { header, commands, signature }: EncryptedBlock): EitherAsync<SignBlockError, LKRPBlock>;
|
|
67
|
+
decryptCommand(secret: Uint8Array, command: EncryptedCommand): EitherAsync<LKRPUnknownError, LKRPCommand>;
|
|
66
68
|
}
|
|
67
69
|
export {};
|
|
68
70
|
//# 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,EACjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAU,WAAW,EAAe,MAAM,WAAW,CAAC;AAE7D,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACL,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,2BAA2B,EAC3B,KAAK,gBAAgB,EACrB,gBAAgB,EAEjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAI1C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gEAAgE,CAAC;AAC7G,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKpD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,KAAK,SAAS,GACV;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,CAAC;AAEpD,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,UAAU,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,EAAE,EAAE,UAAU,CAAC;IACf,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AACF,KAAK,gBAAgB,GAAG;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,SAAS,EAAE,gBAAgB,CAAC;CAC7B,CAAC;AAEF,KAAK,cAAc,GACf,sBAAsB,GACtB,gBAAgB,GAChB,oBAAoB,GACpB,mBAAmB,GACnB,2BAA2B,GAC3B,gBAAgB,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,GAAG,CAAC;IACT,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,qBAAa,aAAa;IAEtB,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBADb,GAAG,EAAE,WAAW,EAChB,aAAa,EAAE,aAAa;IAG/C,GAAG,CAAC,EACF,cAAc,EACd,YAAY,EACZ,IAAI,EACJ,GAAG,EACH,MAAM,EACN,SAAS,EACT,cAAc,GACf,EAAE,kBAAkB,GAAG,WAAW,CAAC,cAAc,EAAE,IAAI,CAAC;IAyBzD,eAAe,CACb,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,MAAM,GACnB,WAAW,CAAC,cAAc,EAAE,aAAa,CAAC;IAoB7C,kBAAkB,CAChB,cAAc,EAAE,OAAO,GACtB,WAAW,CAAC,cAAc,EAAE,gBAAgB,CAAC;IAqBhD,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,WAAW,CAAC,cAAc,EAAE,SAAS,CAAC;IA6BzC,cAAc,CACZ,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,gBAAgB,GACxB,WAAW,CAAC,gBAAgB,EAAE,WAAW,CAAC;CAwB9C"}
|