UNPKG

jsonld-signatures-merkleproof2019

Version:

A jsonld signature implementation to support MerkleProof2019 verification in Verifiable Credential context

14 lines (12 loc) 399 B
import VerifierError from '../models/VerifierError'; import getText from '../helpers/getText'; export default function isTransactionIdValid (transactionId: string): string { if (typeof transactionId === 'string' && transactionId.length > 0) { return transactionId; } else { throw new VerifierError( 'getTransactionId', getText('errors', 'isTransactionIdValid') ); } }