

const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.js');
const require_zod = require('../../../../../utils/zod.js');
const require_jwk = require('../../jwk.js');
let zod = require("zod");
zod = require_rolldown_runtime.__toESM(zod);

//#region src/modules/kms/jwk/kty/ec/ecJwk.ts
const zKmsJwkPublicEc = zod.z.object({
	...require_jwk.vJwkCommon.shape,
	kty: zod.z.literal("EC"),
	crv: zod.z.enum([
		"P-256",
		"P-384",
		"P-521",
		"secp256k1"
	]),
	x: require_zod.zBase64Url,
	y: require_zod.zBase64Url,
	d: zod.z.optional(zod.z.undefined())
});
const zKmsJwkPrivateToPublicEc = zod.z.object({
	...zKmsJwkPublicEc.shape,
	d: require_zod.zOptionalToUndefined(require_zod.zBase64Url)
});
const zKmsJwkPrivateEc = zod.z.object({
	...zKmsJwkPublicEc.shape,
	d: require_zod.zBase64Url
});

//#endregion
exports.zKmsJwkPrivateEc = zKmsJwkPrivateEc;
exports.zKmsJwkPrivateToPublicEc = zKmsJwkPrivateToPublicEc;
exports.zKmsJwkPublicEc = zKmsJwkPublicEc;