tuweni / org.apache.tuweni.crypto

Package org.apache.tuweni.crypto

Classes and utilities for working with cryptography.

These classes are included in the complete Tuweni distribution, or separately when using the gradle dependency org.apache.tuweni:tuweni-crypto (tuweni-crypto.jar).

Types

Hash

class Hash

Various utilities for providing hashes (digests) of arbitrary data. Requires the BouncyCastleProvider to be loaded and available. See https://www.bouncycastle.org/wiki/display/JA1/Provider+Installation for detail.

SECP256K1

class SECP256K1

An Elliptic Curve Digital Signature using parameters as used by Bitcoin, and defined in Standards for Efficient Cryptography (SEC) (Certicom Research, http://www.secg.org/sec2-v2.pdf).

This class depends upon the BouncyCastle library being available and added as a java.security.Provider. See https://www.bouncycastle.org/wiki/display/JA1/Provider+Installation.

BouncyCastle can be included using the gradle dependency 'org.bouncycastle:bcprov-jdk15on'.

Exceptions

InvalidSEC256K1SecretKeyStoreException

class InvalidSEC256K1SecretKeyStoreException : RuntimeException

Exception thrown when reading a store that contains an invalid SEC256K1 private keys.