@dfinity/vetkeys - v0.1.0
    Preparing search index...

    A random seed, used for identity based encryption

    Index

    Methods

    • Create a seed for IBE encryption from a byte string

      This input should be randomly chosen by a secure random number generator. If the seed is not securely generated the IBE scheme will be insecure.

      At least 128 bits (16 bytes) must be provided.

      If the input is exactly 256 bits it is used directly. Otherwise the input is hashed with HKDF to produce a 256 bit seed.

      Parameters

      • bytes: Uint8Array

      Returns IbeSeed