@@ -0,0 +1,1115 @@
+package nearenough.protocol;%0A%0A/**%0A * Constants and magic numbers of the Roughtime protocol%0A */%0Apublic final class RtConstants %7B%0A%0A  /** Minimum size of a client request */%0A  public static final int MIN_REQUEST_LENGTH_BYTES = 1024;%0A%0A  /** Size of the client's nonce */%0A  public static final int NONCE_LENGTH_BYTES = 64;%0A%0A  /** Size of server's timestamp value */%0A  public static final int TIMESTAMP_LENGTH_BYTES = 8;%0A%0A  /** Size of server's time uncertainty value */%0A  public static final int RADIUS_LENGTH_BYTES = 4;%0A%0A  /** Prefixed to the server's certificate before generating or verifying certificate's signature */%0A  public static final String CERTIFICATE_CONTEXT = %22RoughTime v1 delegation signature--%5C%5Cx00%22;%0A%0A  /** Prefixed to the server's response before generating or verifying the server's signature */%0A  public static final String SIGNED_RESPONSE_CONTEXT = %22RoughTime v1 response signature%5C%5Cx00%22;%0A%0A  /** Value prepended to leaves prior to hashing */%0A  public static final byte TREE_LEAF_TWEAK = 0x00;%0A%0A  /** Value prepended to nodes prior to hashing */%0A  public static final byte TREE_NODE_TWEAK = 0x01;%0A%7D%0A

Add file containing protocol constant values