@icp-sdk/vetkeys - v0.5.0
    Preparing search index...

    Module @icp-sdk/vetkeys

    Provides frontend utilities for the low-level use of Verifiably Encrypted Threshold Keys (VetKeys) on the Internet Computer (IC) such as decryption of encrypted VetKeys, identity based encryption (IBE), and symmetric key derivation from a VetKey.

    • Keep Transport Secret Keys Private: Never expose the transport secret key as it is required for decrypting VetKeys.
    • Unique Domain Separators: Use unique domain separators for symmetric key derivation to prevent cross-context attacks.
    • Authenticated Encryption: Always verify ciphertext integrity when decrypting to prevent unauthorized modifications.
    • Secure Key Storage: If storing symmetric keys, ensure they are exposed only in authorized environments such as user's browser page.

    Enumerations

    MasterPublicKeyId
    PocketIcMasterPublicKeyId

    Classes

    DerivedKeyMaterial
    DerivedPublicKey
    EncryptedVetKey
    IbeCiphertext
    IbeIdentity
    IbeSeed
    MasterPublicKey
    TransportSecretKey
    VetKey
    VrfOutput

    Type Aliases

    G1Point
    G2Point

    Functions

    deriveSymmetricKey
    hashToScalar
    isValidTransportPublicKey
    verifyBlsSignature