Skip to main content

UnifiedSpendingKey

A Zcash spending key

This is a wrapper around the zcash_keys::keys::SpendingKey type. It can be created from at least 32 bytes of seed entropy

Index

Constructors

constructor

  • new UnifiedSpendingKey(network: string, seed: Uint8Array, hd_index: number): UnifiedSpendingKey
  • Construct a new UnifiedSpendingKey

    Arguments

    • network - Must be either "main" or "test"
    • seed - At least 32 bytes of entry. Care should be taken as to how this is derived
    • hd_index - ZIP32 hierarchical deterministic index of the account

    Parameters

    • network: string
    • seed: Uint8Array
    • hd_index: number

    Returns UnifiedSpendingKey

Methods

free

  • free(): void
  • Returns void

to_unified_full_viewing_key