conejoninja / tesoro Goto Github PK
View Code? Open in Web Editor NEWGo package for TREZOR devices
License: Other
Go package for TREZOR devices
License: Other
In pb/types/types.pb.go
the reference to google/protobuf
import cannot be resolved.
Even if I change the import to github.com/codejoninja/tesoro/pb/google/protobuf
, it then complains about a non-local import error in messages.pb.go
for the types
import.
$ go build
# github.com/conejoninja/tesoro/vendor/github.com/trezor/usbhid
vendor/github.com/trezor/usbhid/hid.go:32:11: fatal error: os/threads_posix.c: No such file or directory
#include "os/threads_posix.c"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Trying to run the tests, the bootloader tests work:
~/go/src/github.com/conejoninja/tesoro/tests$ go test -v tesoro_bootloader_test.go
Found 1 TREZOR devices connected
=== RUN TestBLInitialize
--- PASS: TestBLInitialize (0.00s)
tesoro_bootloader_test.go:47: We need to check if device is in bootloader mode.
tesoro_bootloader_test.go:62: Everything went fine, \ʕ◔ϖ◔ʔ/ YAY!
=== RUN TestBLFirmwareUpload
[WHAT TO DO] Erase firmware, click "Continue"
[WHAT TO DO] Check fingerprint match: 5764715dbcf8ed88bc0ae1c2f715277f22b67f26c15e1f7543b2b44913b5c255 and click "Continue"
--- PASS: TestBLFirmwareUpload (25.08s)
tesoro_bootloader_test.go:71: We'll try to upload a new firmware.
tesoro_bootloader_test.go:104: Everything went fine, \ʕ◔ϖ◔ʔ/ YAY!
PASS
ok command-line-arguments 25.189s
But the normal mode tests fail with compile errors:
~/go/src/github.com/conejoninja/tesoro/tests$ go test -v tesoro_test.go
# command-line-arguments
./tesoro_test.go:29:4: undefined: client
./tesoro_test.go:51:32: undefined: client
./tesoro_test.go:76:32: undefined: client
./tesoro_test.go:102:32: undefined: client
./tesoro_test.go:123:30: undefined: client
./tesoro_test.go:140:30: undefined: client
./tesoro_test.go:157:30: undefined: client
./tesoro_test.go:175:32: undefined: client
./tesoro_test.go:199:30: undefined: client
./tesoro_test.go:208:31: undefined: client
./tesoro_test.go:208:31: too many errors
FAIL command-line-arguments [build failed]
https://github.com/conejoninja/tesoro/blob/master/transport/webusb.go#L12
It causes problems with dep ensure
. An example: xaionaro-go/cryptoWallet#3
~/go/src/github.com/conejoninja/tesoro/example$ go run main.go
No TREZOR devices found, make sure your device is connected
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.