Ed25519SchemeProvider extends SchemeProvider { @Override public byte[] dom(byte[] context) { return "".getBytes(); } Ed25519SchemeProvider(HashAlgorithm algorithm); @Override EdDsaSigner getSigner(); @Override PublicKeyDelegate getPublicKeyDelegate(); @Override PrivateKey generatePrivateKey(); @Override byte[] preHash(byte[] input); @Override byte[] dom(byte[] context);  }
@Test public void success_dom_1() { SchemeProvider schemeProvider = new Ed25519SchemeProvider(HashAlgorithm.KECCAK_512); byte[] dom = schemeProvider.dom(new byte[0]); assertThat(HexEncoder.getString(dom), is("")); }