BSV.Wallet.Types.Counterparty (bsv_sdk v1.1.0)

Copy Markdown View Source

Counterparty in a cryptographic operation.

Types:

  • :self — the wallet's own identity key
  • :anyone — the well-known "anyone" key (scalar=1)
  • :other — a specific counterparty (requires public_key)
  • :uninitialized — default, will be resolved based on context

Summary

Types

counterparty_type()

@type counterparty_type() :: :uninitialized | :anyone | :self | :other

t()

@type t() :: %BSV.Wallet.Types.Counterparty{
  public_key: BSV.PublicKey.t() | nil,
  type: counterparty_type()
}