tuweni / org.apache.tuweni.crypto.sodium / KeyExchange / Seed / fromBytes

fromBytes

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

Create a Seed from an array of bytes.

The byte array must be of length #length().

Parameters

bytes - Bytes!: The bytes for the seed.

Return
Seed!: A seed.

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

Create a Seed from an array of bytes.

The byte array must be of length #length().

Parameters

bytes - ByteArray!: The bytes for the seed.

Return
Seed!: A seed.