UNPKG

verifiablecredentials-crypto-sdk-typescript-keystore

Version:
25 lines 1.04 kB
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License in the project root for license information. *--------------------------------------------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); /** * Define the options for the key store */ class KeyStoreOptions { constructor(options) { // set default values if not set by the constructor if (options) { this.publicKeyOnly = options.publicKeyOnly === undefined ? true : options.publicKeyOnly; this.latestVersion = options.latestVersion === undefined ? true : options.latestVersion; } else { // set defaults this.publicKeyOnly = true; this.latestVersion = true; } } } exports.default = KeyStoreOptions; //# sourceMappingURL=KeyStoreOptions.js.map