tuweni / org.apache.tuweni.crypto.sodium / Box / Seed

Seed

class Seed (source)

A Box key pair seed.

Functions

bytes

Provides the bytes of this seed

fun bytes(): Bytes!

bytesArray

Provides the bytes of this seed

fun bytesArray(): ByteArray!

equals

fun equals(other: Any?): Boolean

fromBytes

Create a Seed from an array of bytes.

static fun fromBytes(bytes: Bytes!): Seed!
static fun fromBytes(bytes: ByteArray!): Seed!

hashCode

fun hashCode(): Int

length

Obtain the length of the seed in bytes (32).

static fun length(): Int

random

Generate a new Seed using a random generator.

static fun random(): Seed!