# `BSV.Wallet.Types.Counterparty`
[🔗](https://github.com/Bittoku/bsv_sdk_elixir/blob/main/lib/bsv/wallet/types.ex#L28)

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

# `counterparty_type`

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

# `t`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
