

import { MultiBaseEncoder } from "../../../../utils/MultiBaseEncoder.mjs";
import { MultiHashEncoder } from "../../../../utils/MultiHashEncoder.mjs";
import { JsonEncoder } from "../../../../utils/JsonEncoder.mjs";
import "../../../../utils/index.mjs";

//#region src/modules/dids/methods/peer/peerDidNumAlgo1.ts
function didDocumentJsonToNumAlgo1Did(didDocumentJson) {
	const didDocumentBuffer = JsonEncoder.toBuffer({
		...didDocumentJson,
		id: void 0
	});
	return `did:peer:1${MultiBaseEncoder.encode(MultiHashEncoder.encode(didDocumentBuffer, "sha-256"), "base58btc")}`;
}

//#endregion
export { didDocumentJsonToNumAlgo1Did };
//# sourceMappingURL=peerDidNumAlgo1.mjs.map