Skip to content

feat(hive): add Hive blockchain support - #19

Merged
BitHighlander merged 2 commits into
masterfrom
feature/hive
May 24, 2026
Merged

feat(hive): add Hive blockchain support#19
BitHighlander merged 2 commits into
masterfrom
feature/hive

Conversation

@BitHighlander

Copy link
Copy Markdown
Owner

Summary

  • messages_hive_pb2.py — generated protobuf bindings for HiveGetPublicKey, HivePublicKey, HiveSignTx, HiveSignedTx (wire IDs 1600–1603)
  • hive.pyget_public_key / sign_tx client helpers
  • mapping.py — register Hive wire IDs (same pattern as Zcash)
  • client.pyhive_get_public_key / hive_sign_tx methods on ProtocolMixin

Test plan

  • Import smoke test: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python python3 -c "from keepkeylib import mapping; print(mapping.map_type_to_class[1602])"
  • HiveSignTx builds correctly with from/to fields
  • With KeepKey on feature/hive firmware: hive_get_public_key returns STM-prefixed key
  • hive_sign_tx returns 65-byte recoverable signature + serialized tx
- messages_hive_pb2.py — generated from messages-hive.proto (IDs 1600-1603)
- hive.py — get_public_key / sign_tx client helpers
- mapping.py — register HiveGetPublicKey, HivePublicKey, HiveSignTx, HiveSignedTx wire IDs
- client.py — hive_get_public_key / hive_sign_tx methods on ProtocolMixin
…ountUpdate

- messages_hive_pb2.py: regenerated from updated proto; now includes all 10
  message types (HiveGetPublicKey/Keys, HivePublicKey/Keys, HiveSignTx/ed,
  HiveSignAccountCreate/ed, HiveSignAccountUpdate/ed). Added role field to
  HiveGetPublicKey.

- mapping.py: register wire IDs 1604-1609 for the six new message types.

- hive.py: add get_public_keys(), sign_account_create(), sign_account_update()
  helpers. get_public_key() gains optional role parameter.

- client.py: add hive_get_public_keys(), hive_sign_account_create(),
  hive_sign_account_update() mixin methods with @expect decorators.
@BitHighlander
BitHighlander merged commit eee4804 into master May 24, 2026
2 of 6 checks passed
@BitHighlander
BitHighlander deleted the feature/hive branch May 24, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant