@veramo/data-store
Version:
Veramo data storage plugin based on TypeORM database drivers
28 lines (24 loc) • 803 B
text/typescript
import { KeyType } from './key.js'
import { Entity, Column, PrimaryColumn, BaseEntity } from 'typeorm'
/**
* Represents some properties of a {@link @veramo/key-manager#ManagedPrivateKey | ManagedPrivateKey} that are stored in
* a TypeORM database when using a {@link @veramo/data-store#PrivateKeyStore | PrivateKeyStore} to store private key
* data.
*
* @see {@link @veramo/kms-local#KeyManagementSystem | KeyManagementSystem} for an implementation of a KMS that can
* make use of such stored keys.
*
* @beta This API may change without a BREAKING CHANGE notice.
*/
export class PrivateKey extends BaseEntity {
// @ts-ignore
alias: string
// @ts-ignore
type: KeyType
// @ts-ignore
privateKeyHex: string
}