

const require_jwa = require('../../jwa.js');
const require_okpPublicKey = require('./okpPublicKey.js');

//#region src/modules/kms/jwk/kty/okp/X25519PublicJwk.ts
var X25519PublicJwk = class X25519PublicJwk {
	constructor(jwk) {
		this.jwk = jwk;
		this.supportdEncryptionKeyAgreementAlgorithms = X25519PublicJwk.supportdEncryptionKeyAgreementAlgorithms;
		this.supportedSignatureAlgorithms = X25519PublicJwk.supportedSignatureAlgorithms;
		this.multicodecPrefix = X25519PublicJwk.multicodecPrefix;
	}
	get publicKey() {
		return {
			crv: this.jwk.crv,
			kty: this.jwk.kty,
			publicKey: require_okpPublicKey.okpPublicJwkToPublicKey(this.jwk)
		};
	}
	/**
	* Not supported for X25519
	*/
	get compressedPublicKey() {
		return null;
	}
	get multicodec() {
		return require_okpPublicKey.okpPublicJwkToPublicKey(this.jwk);
	}
	static fromPublicKey(publicKey) {
		return new X25519PublicJwk(require_okpPublicKey.okpPublicKeyToPublicJwk(publicKey, "X25519"));
	}
	static fromMulticodec(multicodec) {
		return new X25519PublicJwk(require_okpPublicKey.okpPublicKeyToPublicJwk(multicodec, "X25519"));
	}
};
X25519PublicJwk.supportdEncryptionKeyAgreementAlgorithms = [require_jwa.KnownJwaKeyAgreementAlgorithms.ECDH_HSALSA20];
X25519PublicJwk.supportedSignatureAlgorithms = [];
X25519PublicJwk.multicodecPrefix = 236;

//#endregion
exports.X25519PublicJwk = X25519PublicJwk;