Skip to content

deriveViewingKey()

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / deriveViewingKey

deriveViewingKey(masterKey, childPath): ViewingKey

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:3228

Derive a child viewing key using BIP32-style hierarchical derivation

Uses HMAC-SHA512 for proper key derivation:

  • childKey = HMAC-SHA512(masterKey, childPath)
  • Takes first 32 bytes as the derived key

This provides:

  • Cryptographic standard compliance (similar to BIP32)
  • One-way derivation (cannot derive parent from child)
  • Non-correlatable keys (different paths produce unrelated keys)

ViewingKey

string

ViewingKey