@Test public void success_IsKeyCompressed_Curve25519() { EdKeyAnalyzer analyzer = new EdKeyAnalyzer(Curve25519.getInstance()); boolean isCompressed = analyzer.isKeyCompressed(PublicKey.fromHexString("462ee976890916e54fa825d26bdd0235f5eb5b6a143c199ab0ae5ee9328e08ce")); assertThat(isCompressed, is(true)); }
public boolean isKeyCompressed(PublicKey publicKey) { return publicKey.getRaw().length == curve.getPublicKeyByteLength(); }
EdKeyAnalyzer { public boolean isKeyCompressed(PublicKey publicKey) { return publicKey.getRaw().length == curve.getPublicKeyByteLength(); } }
EdKeyAnalyzer { public boolean isKeyCompressed(PublicKey publicKey) { return publicKey.getRaw().length == curve.getPublicKeyByteLength(); } EdKeyAnalyzer(Curve curve); }
EdKeyAnalyzer { public boolean isKeyCompressed(PublicKey publicKey) { return publicKey.getRaw().length == curve.getPublicKeyByteLength(); } EdKeyAnalyzer(Curve curve); boolean isKeyCompressed(PublicKey publicKey); }
EdKeyAnalyzer { public boolean isKeyCompressed(PublicKey publicKey) { return publicKey.getRaw().length == curve.getPublicKeyByteLength(); } EdKeyAnalyzer(Curve curve); boolean isKeyCompressed(PublicKey publicKey);  }