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

    Class TransportSecretKey

    Transport Secret Key

    Applications using VetKD create an ephemeral transport secret key and send the public key to the IC as part of their VetKD request. The returned VetKey is encrypted, and can only be decrypted using the transport secret key.

    Index

    Constructors

    • Construct a new TransportSecretKey from a bytestring

      The bytestring should be randomly generated by a cryptographically secure random number generator.

      For most applications, prefer using the static method random

      Parameters

      • sk: Uint8Array

      Returns TransportSecretKey

    Methods

    • Return the transport secret key value

      Applications would not normally need to call this

      Returns Uint8Array

    • Return the encoding of the transport public key; this value is sent to the IC

      Returns Uint8Array