coinbase

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package coinbase provides a verifier for legacy Coinbase API keys.

A legacy Coinbase API key is one half of a key/secret pair, and Coinbase's v2 API authenticates it with timestamp-based HMAC-SHA256 request signing (CB-ACCESS-KEY / CB-ACCESS-SIGN / CB-ACCESS-TIMESTAMP headers), NOT a bearer token. Correct live verification would require BOTH the key and its paired secret to compute the signature, but the detector captures the key and the secret as independent findings with no pairing, so the signing inputs are not reliably available here. Rather than send an unauthenticated call that cannot succeed (and would misreport every real key as invalid), this verifier is a format-only (Tier 3) check: it validates the key shape and always returns StatusUnverified, never claiming a live active/inactive result. It NEVER logs or persists raw key values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier struct{}

Verifier performs a format-only check on a legacy Coinbase API key. It never makes a network call and never logs or persists raw key values.

func (*Verifier) Type

func (v *Verifier) Type() string

Type returns the detector ID this verifier handles.

func (*Verifier) Verify

Verify performs a format-only validation of the detected Coinbase API key. Live verification is intentionally not attempted (see the package doc): the legacy API requires HMAC-SHA256 signing with the paired secret, which is not reliably available. The result is therefore always StatusUnverified.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL