

const require_JsonEncoder = require('../../../../utils/JsonEncoder.js');
const require_MultiBaseEncoder = require('../../../../utils/MultiBaseEncoder.js');
const require_MultiHashEncoder = require('../../../../utils/MultiHashEncoder.js');
require('../../../../utils/index.js');

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

//#endregion
exports.didDocumentJsonToNumAlgo1Did = didDocumentJsonToNumAlgo1Did;