I've a client and a server and I want to send tuples of BigInteger objects between them, each time appending the binary representation of a tuple to an initially empty array.
This is done in order to implement a security protocol.
I've been searching for good ideas on how to send these BigInteger objects as tuples, so that these tuples are easy to send/receive and append to an array.
Could someone describe how to do this for a rather inexperienced programmer with an interest in cryptography (possibly with examples)?