import { Deserializer } from '../../bcs/deserializer.mjs'; import { Serializer, Serializable } from '../../bcs/serializer.mjs'; import { A as AccountPublicKey, V as VerifySignatureArgs, a as AuthenticationKey } from '../../authenticationKey-BaHTUD3k.mjs'; import { HexInput } from '../../types/index.mjs'; import { PrivateKey } from './privateKey.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'; declare class Bls12381PublicKey extends AccountPublicKey { /** * Length of an Bls12381 public key */ static readonly LENGTH: number; /** * Bytes of the public key * @private */ private readonly key; /** * Create a new PublicKey instance from a Uint8Array or String. * * @param hexInput A HexInput (string or Uint8Array) */ constructor(hexInput: HexInput); /** * Verifies a signed data with a public key * @param args.message a signed message as a Hex string or Uint8Array * @param args.signature the signature of the message */ verifySignature(args: VerifySignatureArgs): boolean; authKey(): AuthenticationKey; /** * Get the public key in bytes (Uint8Array). * * @returns Uint8Array representation of the public key */ toUint8Array(): Uint8Array; serialize(serializer: Serializer): void; static deserialize(deserializer: Deserializer): Bls12381PublicKey; /** * @deprecated use `instanceof Ed25519PublicKey` instead. */ static isPublicKey(publicKey: AccountPublicKey): publicKey is Bls12381PublicKey; } /** * Represents the private key of an Ed25519 key pair. */ declare class Bls12381PrivateKey extends Serializable implements PrivateKey { /** * Length of an Ed25519 private key */ static readonly LENGTH: number; /** * The Ed25519 signing key * @private */ private readonly signingKey; /** * Create a new PrivateKey instance from a Uint8Array or String. * * @param hexInput HexInput (string or Uint8Array) */ constructor(hexInput: HexInput); /** * Generate a new random private key. * * @returns Ed25519PrivateKey */ static generate(): Bls12381PrivateKey; /** * Derive the Ed25519PublicKey for this private key. * * @returns Ed25519PublicKey */ publicKey(): Bls12381PublicKey; /** * Sign the given message with the private key. * * @param message a message as a string or Uint8Array * @returns Signature */ sign(message: HexInput): Bls12381Signature; /** * Get the private key in bytes (Uint8Array). * * @returns Uint8Array representation of the private key */ toUint8Array(): Uint8Array; /** * Get the private key as a hex string with the 0x prefix. * * @returns string representation of the private key */ toString(): string; serialize(serializer: Serializer): void; static deserialize(deserializer: Deserializer): Bls12381PrivateKey; /** * @deprecated use `instanceof Ed25519PrivateKey` instead. */ static isPrivateKey(privateKey: PrivateKey): privateKey is Bls12381PrivateKey; } /** * A signature of a message signed using an Ed25519 private key */ declare class Bls12381Signature extends Signature { /** * Length of an Ed25519 signature */ static readonly LENGTH = 96; /** * The signature bytes * @private */ private readonly data; constructor(hexInput: HexInput); toUint8Array(): Uint8Array; serialize(serializer: Serializer): void; static deserialize(deserializer: Deserializer): Bls12381Signature; } export { Bls12381PrivateKey, Bls12381PublicKey, Bls12381Signature };