to Sc Val
Converts this signature to its ScVal representation.
The exact shape is variant-dependent: WebAuthnSignature and PolicySignature return an SCValXdr.Map; Ed25519Signature returns SCValXdr.Bytes holding the raw 64-byte signature.
Return
The signature encoded as an SCValXdr.