Vana SDK - v3.5.0
    Preparing search index...

    Function deriveScopeKey

    • Derives a scope-specific 32-byte key via HKDF-SHA256.

      Parameters

      • masterKey: Uint8Array

        65-byte master key material from deriveMasterKey.

      • scope: string

        Scope identifier (e.g. "instagram.profile").

      Returns Uint8Array

      32-byte derived key suitable for symmetric encryption.

      Uses salt="vana" and info="scope:{scope}" per spec ยง2.3.