def to_s
      @serializer.dump({
          'r_s_version' => @r_s_version.to_s,
          'timestamp'   => @timestamp.to_i.to_s,
          'iv'          => Base64::encode64(@iv).chop,
          'ciphertext'  => Base64::encode64(@ciphertext).chop,
          'mac'         => Base64::encode64(@mac).chop
      })
    end
def to_s
      @serializer.dump({
          'r_s_version' => @r_s_version.to_s,
          'timestamp'   => @timestamp.to_i.to_s,
          'iv'          => Base64::encode64(@iv).chop,
          'ciphertext'  => Base64::encode64(@ciphertext).chop,
          'mac'         => Base64::encode64(@mac).chop
      })
    end
Create a new instance of this class

 === Parameters
 timestamp(Time):: Timestamp associated with this result
 router_cert(String):: Arbitrary string
 id_cert(String):: Arbitrary string
 id_key(String):: Arbitrary string
 secret(String):: Shared secret with which the result is encrypted

 Serialize an enrollment result

 === Parameters
 obj(EnrollmentResult):: Object to serialize

 === Return
 (String):: Serialized object