public static void Encode(XdrDataOutputStream stream,
                           TransactionSignaturePayload encodedTransactionSignaturePayload)
 {
     Hash.Encode(stream, encodedTransactionSignaturePayload.NetworkId);
     TransactionSignaturePayloadTaggedTransaction.Encode(stream,
                                                         encodedTransactionSignaturePayload.TaggedTransaction);
 }
        public static TransactionSignaturePayload Decode(XdrDataInputStream stream)
        {
            TransactionSignaturePayload decodedTransactionSignaturePayload = new TransactionSignaturePayload();

            decodedTransactionSignaturePayload.NetworkId         = Hash.Decode(stream);
            decodedTransactionSignaturePayload.TaggedTransaction = TransactionSignaturePayloadTaggedTransaction.Decode(stream);
            return(decodedTransactionSignaturePayload);
        }