bitbox02common

package
v4.14.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package bitbox02common contains common functionality to bitbox02 and bitbox02bootloader.

Index

Constants

View Source
const (
	// FirmwareHIDProductStringStandard is the hid product string of the standard edition firmware.
	FirmwareHIDProductStringStandard = "BitBox02"
	// FirmwareHIDProductStringBTCOnly is the hid product string of the btc-only edition firmware.
	FirmwareHIDProductStringBTCOnly = "BitBox02BTC"

	// BootloaderHIDProductStringStandard is the hid product string of the standard edition bootloader.
	BootloaderHIDProductStringStandard = "bb02-bootloader"
	// BootloaderHIDProductStringBTCOnly is the hid product string of the btc-only edition bootloader.
	BootloaderHIDProductStringBTCOnly = "bb02btc-bootloader"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Edition

type Edition string

Edition enumerates the device editions, which (together with the firmware version) determines the device API.

const (
	// EditionStandard is the standard/full edition.
	EditionStandard Edition = "standard"
	// EditionBTCOnly is the btc-only edition, restricting functionality to Bitcoin.
	EditionBTCOnly Edition = "btconly"
)

func EditionFromHIDProductString

func EditionFromHIDProductString(productString string) (Edition, error)

EditionFromHIDProductString returns the firmware or bootloader edition based on the usb HID product string. Returns an error for an invalid/unrecognized product string.

Jump to

Keyboard shortcuts

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