Serializes a Serializable value to its BCS representation.
This function is the TypeScript SDK equivalent of bcs::to_bytes in Move.
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.
A Hex instance with the BCS-serialized bytes loaded into its underlying Uint8Array.
Create a new Signature instance from a Uint8Array or String.
A HexInput (string or Uint8Array)
Static ReadonlyLENGTHSecp256r1 ecdsa signatures are 256-bit.
Serializes the data into a byte array using the provided serializer. This function is essential for converting data into a format suitable for transmission or storage.
The serializer instance used to convert the data.
Get the signature as a hex string with the 0x prefix.
string representation of the signature
Get the signature in bytes (Uint8Array).
Uint8Array representation of the signature
StaticdeserializeDeserializes a Secp256r1Signature from the provided deserializer. This function allows you to reconstruct a Secp256r1Signature object from its serialized byte representation.
The deserializer instance used to read the serialized data.
Represents a signature of a message signed using a Secp256r1 ECDSA private key.