public static class Secp256k1.HashIntoSecp256k1 extends java.lang.Object implements HashIntoGroupImpl
| Constructor and Description |
|---|
HashIntoSecp256k1()
Instantiate the hash function with a default internal hash function.
|
HashIntoSecp256k1(HashIntoZp hash)
Instantiate this hash function into Secp256k1
|
HashIntoSecp256k1(Representation repr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Representation |
getRepresentation()
The representation of this object.
|
int |
hashCode() |
GroupElementImpl |
hashIntoGroupImpl(byte[] x)
Hashes a byte array into the configured group.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waithashIntoGroupImpl, hashIntoGroupImplpublic HashIntoSecp256k1(HashIntoZp hash)
hash - a hash function mapping into the base field Zp that outputs random-looking images (like SHA256 or SHA3)public HashIntoSecp256k1()
public HashIntoSecp256k1(Representation repr)
public Representation getRepresentation()
RepresentableReprUtilgetRepresentation in interface RepresentableRepresentationpublic GroupElementImpl hashIntoGroupImpl(byte[] x)
HashIntoGroupImplhashIntoGroupImpl in interface HashIntoGroupImplx - a sequence of bytes to hashpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object