UNPKG

jsonld-signatures-merkleproof2019

Version:

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

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