import { exists } from '../misc' ; import { isActivityPubUrlValid } from './misc' ; function isSignatureTypeValid ( signatureType ) { return exists ( signatureType ) && signatureType === 'RsaSignature2017' ; } function isSignatureCreatorValid ( signatureCreator ) { return exists ( signatureCreator ) && isActivityPubUrlValid ( signatureCreator ) ; } function isSignatureValueValid ( signatureValue ) { return exists ( signatureValue ) && signatureValue . length > 0 ; } export { isSignatureTypeValid , isSignatureCreatorValid , isSignatureValueValid } ;