@aptos-labs/ts-sdk - v8.0.0
    Preparing search index...

    Class SlhDsaSha2128sPublicKey

    Represents a SLH-DSA-SHA2-128s public key.

    Hierarchy (View Summary)

    Index
    • Serializes a Serializable value to its BCS representation. This function is the TypeScript SDK equivalent of bcs::to_bytes in Move.

      Returns Uint8Array

      the BCS representation of the Serializable instance as a byte buffer.

    • Converts the BCS-serialized bytes of a value into a Hex instance. This function provides a Hex representation of the BCS-serialized data for easier handling and manipulation.

      Returns Hex

      A Hex instance with the BCS-serialized bytes loaded into its underlying Uint8Array.

    keyType: string = "slh-dsa-sha2-128s"

    Identifier to distinguish from other public key types

    • Note: SLH-DSA-SHA2-128s signatures can be verified synchronously.

      Verifies the provided signature against the given message. This function helps ensure the integrity and authenticity of the message by confirming that the signature is valid.

      Parameters

      • args: { aptosConfig: AptosConfig; message: HexInput; signature: Signature }

        The arguments for signature verification.

        • aptosConfig: AptosConfig

          The configuration object for connecting to the Aptos network

        • message: HexInput

          The message that was signed.

        • signature: Signature

          The signature to verify, which must be an instance of SlhDsaSha2128sSignature.

      Returns Promise<boolean>

      A boolean indicating whether the signature is valid for the given message.

    LENGTH: number = 32

    The length of the SLH-DSA-SHA2-128s public key in bytes (32 bytes).