I have a smart contract which verifies a signature from Bob in order to do something. The contract was made using SmartPy and for testing the scenario I used the following code to produce a signature:
bobSig = sp.make_signature(bob.secret_key, sp.pack(sp.record(gameName = gameName, bobScore = bobScore, aliceScore = aliceScore)))
Now I want to test the smart contract manually in tezos sandbox mode and I want to be able to serialize the data properly so that I can produce a signature using
tezos-client sign bytes
.
In other words, how can I do the equivalent of sp.pack(sp.record(gameName = gameName, bobScore = bobScore, aliceScore = aliceScore))
outside of SmartPy?