Ed25519 { static byte[] scalarMultWithBaseToBytes(byte[] a) { return scalarMultWithBase(a).toBytes(); }   static final int SECRET_KEY_LEN; static final int PUBLIC_KEY_LEN; static final int SIGNATURE_LEN; }
@Test public void testGroupOrder() throws Exception { assertEquals(32, Ed25519.GROUP_ORDER.length); byte[] result = Ed25519.scalarMultWithBaseToBytes(Ed25519.GROUP_ORDER); assertEquals(1, result[0]); for (int i = 1; i < 32; i++) { assertEquals(0, result[i]); } }