Here is a Magma program for someone who wants to play with Rainbow.
This file is a toy Magma Rainbow program, which can run on Magma or the online magma calculator
http://magma.maths.usyd.edu.au/calc/
In the calculator, one has to copy and paste the program into the window of the calculator and then press the submit button.
You can change anything in the program, in particular, the parameters for Rainbow at the beginning of the code which can be modified as you want. The three number in parameters vector are v_1, o_1 and o_2, which is set to be [ 3, 2, 2] for now.
The program will generate the public and private keys, it will then create a random hashvalue, which will be signed. The signature is then verified in the last part of the program with the help of the public key.
Normally this program would be implemented in three separate programs with the keys passed on in external files. The magma calculator does not allow for external files, therefore everything is done immediately in sequence.
