pub fn sc_public_key_and_signature_for_datum<T: ToDatum>( key: SecretKey, datum_msg: T, ) -> (PublicKey, Signature)
Signs the Plutus data bytes of datum_msg using key and returns it together with the verification key.
datum_msg
key