verifiablecredentials-crypto-sdk-typescript-keystore
Version:
Package for managing keys in a key store.
22 lines • 845 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Class to model the key reference
*/
class KeyReference {
/**
* Create an instance of <see @class KeyReference>
* @param keyReference Name of the key in DID document
* @param extractable True if the key is extractable
* @param remoteKeyReference Name of the key in a remote server such as key vault. Can be used when difference from DID document
* @param cryptoKey Reference to a key in an external system
*/
constructor(keyReference, type = 'secret', remoteKeyReference, cryptoKey) {
this.keyReference = keyReference;
this.type = type;
this.remoteKeyReference = remoteKeyReference;
this.cryptoKey = cryptoKey;
}
}
exports.default = KeyReference;
//# sourceMappingURL=KeyReference.js.map