Magma programs to chapter 5 of the book "Multivariate Public Key Cryptosystems" by Ding, Petzoldt and Schmidt.
For the rainbow cryptosystems
load "keygen.txt'; will generate the files public_key.txt and private_key.txt, which are then used via
load "sign.txt"; to genertate the signature of a randomly generated document, and by
load "verify.txt"; to chack that it is a valid signature