@nats-io/nats-core
    Preparing search index...

    Function fromCurveSeed

    • Creates a KeyPair from a Curve seed. Curve keys can encrypt and decrypt payloads.

      Parameters

      • src: Uint8Array

        The seed representing the Curve key in encoded format.

      Returns KeyPair

      The resulting KeyPair generated from the Curve seed.

      If the seed's prefix is not a Curve prefix or if the seed length is invalid.