tuweni / org.apache.tuweni.crypto / SECP256K1 / SecretKey / fromInteger

fromInteger

open static fun fromInteger(key: BigInteger!): SecretKey! (source)

Create the private key from a BigInteger.

Parameters

key - BigInteger!: The integer describing the key.

Exceptions

IllegalArgumentException - If the integer would overflow 32 bytes.

Return
SecretKey!: The private key.