conejoninja / tesoro

Go package for TREZOR devices
Other
11 stars 5 forks source link
bitcoin golang protobuf trezor trezor-devices usb

TESORO Build Status

Go package to work with TREZOR devices. This repository is an unofficial package written in Go (golang), for any official package, code or tool, please go to the official TREZOR repository

⚠️ Important notice ⚠️

This project started as a Go library for TREZOR devices that I used for personal projects, it's no longer mantained. You could use the official trezord-go as a go library.

What is TREZOR?

TREZOR is a single purpose device which allows you to make secure Bitcoin transactions. With TREZOR, transactions are completely safe even when initiated on a compromised or vulnerable computer.

Installation

$ go get github.com/conejoninja/tesoro

Examples

examples/hid: only compatible with Linux (and Linux based), pure go, no libusb dependency.

Supported methods

*Some**

Tests

Go to the tests folder and run them with

// Put your device in bootloader mode
go test -v tesoro_bootloader_test.go
// Disconnect and connect your device in normal mode
go test -v tesoro_test.go

Running tests the traditional Go way (go test) will not work, as for tesoro_bootloader_test.go to run you need to put your device in bootloader mode, the rest of the tests are run in normal mode.

Contributing to this project:

If you find any improvement or issue you want to fix, feel free to send me a pull request.

Cerrojo

For a similar project, compatible with both, KeepKey and Trezor One, take a look at CERROJO repository.

License

This is distributed under the Apache License v2.0

Copyright 2016 Daniel Esteban - conejo@conejo.me

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Notes

If you would like to donate via Bitcoin, please send your donation to this wallet:

Bitcoin: 1G9d7uVvioNt8Emsv6fVmCdAPc41nX1c8J