verifiablecredentials-crypto-sdk-typescript-keystore
Version:
Package for managing keys in a key store.
19 lines (18 loc) • 769 B
TypeScript
import { CryptoKey } from 'webcrypto-core';
/**
* Class to model the key reference
*/
export default class KeyReference {
keyReference: string;
type: string;
remoteKeyReference?: string | undefined;
cryptoKey?: CryptoKey | undefined;
/**
* 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: string, type?: string, remoteKeyReference?: string | undefined, cryptoKey?: CryptoKey | undefined);
}