@veramo/data-store
Version:
Veramo data storage plugin based on TypeORM database drivers
22 lines (18 loc) • 678 B
text/typescript
import { Column, Entity, PrimaryColumn } from 'typeorm'
import { Key } from './key.js'
/**
* This represents the private key data of keys that were stored by {@link @veramo/data-store#KeyStore} before Veramo
* 3.0. During database migration this key material is moved to a different table and accessible by
* {@link @veramo/data-store#PrivateKeyStore}.
*
* @beta This API may change without a BREAKING CHANGE notice.
*/
('key', )
export class PreMigrationKey extends Key {
// Key contains all the other columns present needed for successful migrations
()
// @ts-ignore
kid: string
({ nullable: true })
privateKeyHex?: string
}