@aptos-labs/ts-sdk
Version:
Aptos TypeScript SDK
35 lines • 1.17 kB
TypeScript
import { Serializable } from "../../bcs/index.js";
/**
* An abstract representation of a crypto signature,
* associated with a specific signature scheme, e.g., Ed25519 or Secp256k1.
*
* This class represents the product of signing a message directly from a
* PrivateKey and can be verified against a CryptoPublicKey.
* @group Implementation
* @category Serialization
*/
export declare abstract class Signature extends Serializable {
/**
* Get the raw signature bytes
* @group Implementation
* @category Serialization
*/
toUint8Array(): Uint8Array;
/**
* Get the signature as a hex string with a 0x prefix e.g. 0x123456...
* @returns The hex string representation of the signature.
* @group Implementation
* @category Serialization
*/
toString(): string;
}
/**
* An abstract representation of an account signature,
* associated to a specific authentication scheme e.g. Ed25519 or SingleKey
*
* This is the product of signing a message through an account,
* and can be verified against an AccountPublicKey.
* @group Implementation
* @category Serialization
*/
//# sourceMappingURL=signature.d.ts.map