import { Deserializer } from '../../bcs/deserializer.mjs'; import { Serializer } from '../../bcs/serializer.mjs'; import { EphemeralPublicKeyVariant, HexInput } from '../../types/index.mjs'; import { P as PublicKey } from '../../authenticationKey-BaHTUD3k.mjs'; import { Signature } from './signature.mjs'; import '../../utils/apiEndpoints.mjs'; import '../../types/indexer.mjs'; import '../hex.mjs'; import '../common.mjs'; import '../accountAddress.mjs'; import '../../transactions/instances/transactionArgument.mjs'; /** * Represents ephemeral public keys for Endless Keyless accounts. * * These are not public keys used as a public key on an account. They are only used ephemerally on Keyless accounts. */ declare class EphemeralPublicKey extends PublicKey { /** * The public key itself */ readonly publicKey: PublicKey; /** * An enum indicating the scheme of the ephemeral public key */ readonly variant: EphemeralPublicKeyVariant; constructor(publicKey: PublicKey); /** * Get the public key in bytes (Uint8Array). * * @returns Uint8Array representation of the public key */ toUint8Array(): Uint8Array; /** * Verifies a signed data with a the ephemeral public key * * @param args.message message * @param args.signature The signature that was signed by the private key of the ephemeral public key * @returns true if the signature is valid */ verifySignature(args: { message: HexInput; signature: EphemeralSignature; }): boolean; serialize(serializer: Serializer): void; static deserialize(deserializer: Deserializer): EphemeralPublicKey; static isPublicKey(publicKey: PublicKey): publicKey is EphemeralPublicKey; } /** * Represents ephemeral signatures used in Endless Keyless accounts. * * These signatures are used inside of KeylessSignature */ declare class EphemeralSignature extends Signature { /** * The signature signed by the private key of an EphemeralKeyPair */ readonly signature: Signature; constructor(signature: Signature); /** * Get the public key in bytes (Uint8Array). * * @returns Uint8Array representation of the public key */ toUint8Array(): Uint8Array; static fromHex(hexInput: HexInput): EphemeralSignature; serialize(serializer: Serializer): void; static deserialize(deserializer: Deserializer): EphemeralSignature; } export { EphemeralPublicKey, EphemeralSignature };