import { createDid } from '../../core/Did.js';
export const generateDid = (host, aid, path = '', port) => {
if (!host || !aid) {
throw new Error('Host and AID are required');
}
return createDid(`did:webs:${host}${port ? `%3A${port}` : ''}${path.replace(/\//g, ':')}:${aid}`);
};