@aptos-labs/ts-sdk
Version:
Aptos TypeScript SDK
22 lines • 1.12 kB
TypeScript
import { PublicKey } from "./publicKey.js";
import { Signature } from "./signature.js";
import { HexInput } from "../../types/index.js";
/**
* Deserializes a public key from a hex string.
* Attempts to deserialize using various public key types in sequence until one succeeds.
*
* @param publicKey - The hex string representation of the public key to deserialize
* @returns The deserialized public key
* @throws Error if deserialization fails for all supported key types or if multiple deserializations are found
*/
export declare function deserializePublicKey(publicKey: HexInput): PublicKey;
/**
* Deserializes a signature from a hex string.
* Attempts to deserialize using various signature types in sequence until one succeeds.
*
* @param signature - The hex string representation of the signature to deserialize
* @returns The deserialized signature
* @throws Error if deserialization fails for all supported signature types or if multiple deserializations are found
*/
export declare function deserializeSignature(signature: HexInput): Signature;
//# sourceMappingURL=deserializationUtils.d.ts.map