Skip to content

feat(hive): spike — window.hive_keychain shim + HIVE transfer (fw 7.15.0)#106

Merged
BitHighlander merged 3 commits into
developfrom
feature/hive-spike
Jul 15, 2026
Merged

feat(hive): spike — window.hive_keychain shim + HIVE transfer (fw 7.15.0)#106
BitHighlander merged 3 commits into
developfrom
feature/hive-spike

Conversation

@BitHighlander

Copy link
Copy Markdown
Collaborator

What

Browser-extension side of Hive support, gated on firmware 7.15.0:

  • Injected: Keychain-compatible window.hive_keychain shim (requestHandshake + requestTransfer; all other Keychain methods return keychain-style success:false so dApps degrade gracefully). Mounted only when the real Hive Keychain is absent.
  • Background: hiveHandler.ts — STM pubkey via vault POST /addresses/hive (SLIP-0048 m/48'/13'/1'/0'/0', matching firmware/Ledger), account resolution + tx-params + broadcast via Pioneer (api.keepkey.info/api/v1/hive/*, all confirmed live), signing via new vault POST /hive/sign-transfer.
  • Firmware gate: requireHiveFirmware (7.15.0), meetsMin parametrized.
  • Chain config: hive:beeab0de / slip44:1275 maps; approval UI routes hive through the generic OtherTransaction view.

Depends on

  • Vault PR: feature/hive-rest-sign (adds POST /hive/sign-transfer) — extension transfer signing 404s against older vaults.
  • Firmware 7.15.0 (unreleased; on develop + rc branches) and the vault hive_enabled setting.

Verification

  • pnpm type-check (15/15) and make build pass; hive code confirmed in dist/injected.js + background bundle.
  • E2E transfer pending: needs a vault running the new endpoint + fw 7.15-rc device + funded Hive account. Draft until then.

🤖 Generated with Claude Code

…oneer (fw 7.15.0 gate)

- injected: Keychain-compatible window.hive_keychain (requestHandshake +
  requestTransfer; the rest fail keychain-style so dApps degrade gracefully),
  mounted only when the real Keychain is absent
- background: hiveHandler — pubkey via vault POST /addresses/hive (SLIP-0048
  m/48'/13'/1'/0'/0'), account/tx-params/broadcast via Pioneer, signing via
  new vault POST /hive/sign-transfer (device serializes + signs)
- firmware gate: requireHiveFirmware (7.15.0), parametrized meetsMin
- chain config: hive:beeab0de / slip44:1275 maps; approval UI routes hive
  to the generic OtherTransaction view

Depends on vault branch feature/hive-rest-sign (POST /hive/sign-transfer).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
BitHighlander and others added 2 commits July 14, 2026 22:33
… safety, approval render, state reset, full stub surface

- injected: mount window.hive_keychain as a plain writable property so the
  real Hive Keychain (document_idle) can replace our shim; stub all 29
  remaining Keychain request* methods so none throw TypeError
- handler: reject encrypted ('#') memos instead of leaking plaintext
  on-chain; exact decimal-string amount validation (no parseFloat coercion
  or rounding); currency now required; reject username mismatch (enforce
  semantics — we control one account); unsignedTx.payment shaped for
  RequestDetailsCard (destination/amount/decimals/symbol + caip)
- lifecycle: resetHiveState() wired into all three device reset sites

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…sername

- return { id, tx_id, confirmed } (matches hive-tx.utils.ts) instead of
  { txid } so dApps reading response.result.id / .tx_id work
- enforce=true with no username is malformed — reject with -32602

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@BitHighlander BitHighlander marked this pull request as ready for review July 15, 2026 02:15
@BitHighlander BitHighlander merged commit a576f2a into develop Jul 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant