Functions
assertIsSignature
assertIsSignature(
putativeSignature
):asserts putativeSignature is Signature
Asserts that an arbitrary string is a base58-encoded Ed25519 signature.
Useful when you receive a string from user input or an untrusted network API that you expect to represent an Ed25519 signature (eg. of a transaction).
Parameters
Parameter | Type |
---|---|
putativeSignature | string |
Returns
asserts putativeSignature is Signature