jsonld-signatures-merkleproof2019
Version:
A jsonld signature implementation to support MerkleProof2019 verification in Verifiable Credential context
17 lines (14 loc) • 553 B
text/typescript
import type { NullableNumber, NullableString } from './helpers';
import type { ParsedKeyObjectV2 } from './Issuer';
export default class Key implements ParsedKeyObjectV2 {
public publicKey: NullableString;
public created: NullableNumber;
public revoked: NullableNumber;
public expires: NullableNumber;
constructor (publicKey: NullableString, created: NullableNumber, revoked: NullableNumber, expires: NullableNumber) {
this.publicKey = publicKey;
this.created = created;
this.revoked = revoked;
this.expires = expires;
}
}