mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-18 11:21:11 +00:00
cleanup protobuf mess
This commit is contained in:
parent
b7a2800b97
commit
d3df313442
@ -1,3 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd ./trezor-common/protob
|
CURDIR=$(pwd)
|
||||||
protoc --python_out=../../trezorlib/ -I/usr/include -I. -I. trezor.proto
|
|
||||||
|
cd $CURDIR/../trezor-common/protob
|
||||||
|
|
||||||
|
for i in messages types ; do
|
||||||
|
protoc --python_out=$CURDIR/trezorlib/ -I/usr/include -I. $i.proto
|
||||||
|
done
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cd `dirname $0`/../../trezor-common/protob
|
|
||||||
|
|
||||||
protoc --python_out=../../trezor-emu/trezor/ -I/usr/include -I. types.proto
|
|
||||||
protoc --python_out=../../trezor-emu/trezor/ -I/usr/include -I. messages.proto
|
|
@ -2,7 +2,7 @@ import unittest
|
|||||||
import common
|
import common
|
||||||
import binascii
|
import binascii
|
||||||
|
|
||||||
import trezorlib.trezor_pb2 as proto
|
import trezorlib.messages_pb2 as proto
|
||||||
|
|
||||||
'''
|
'''
|
||||||
./electrum -w ~/.electrum-bitkey mktx 1FQVPnjrbkPWeA8poUoEnX9U3n9DyhAVtv 0.001
|
./electrum -w ~/.electrum-bitkey mktx 1FQVPnjrbkPWeA8poUoEnX9U3n9DyhAVtv 0.001
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
try:
|
try:
|
||||||
import trezor_pb2 as proto
|
import messages_pb2 as proto
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "Source trezor_pb2.py not found. Make sure python-protobuf is installed and run build_pb.sh to generate it."
|
print "Source messages_pb2.py or types_pb2.py not found. Make sure python-protobuf is installed and run build_pb.sh to generate it."
|
||||||
import sys
|
import sys
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
@ -4,7 +4,7 @@ import hashlib
|
|||||||
from ecdsa.util import string_to_number
|
from ecdsa.util import string_to_number
|
||||||
from ecdsa.curves import SECP256k1
|
from ecdsa.curves import SECP256k1
|
||||||
|
|
||||||
import trezor_pb2 as proto
|
import messages_pb2 as proto
|
||||||
|
|
||||||
PRIME_DERIVATION_FLAG = 0x80000000
|
PRIME_DERIVATION_FLAG = 0x80000000
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import os
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
import ckd_public
|
import ckd_public
|
||||||
import trezor_pb2 as proto
|
import messages_pb2 as proto
|
||||||
|
|
||||||
def show_message(message):
|
def show_message(message):
|
||||||
print "MESSAGE FROM DEVICE:", message
|
print "MESSAGE FROM DEVICE:", message
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import trezor_pb2 as proto
|
import messages_pb2 as proto
|
||||||
from transport import NotImplementedException
|
from transport import NotImplementedException
|
||||||
|
|
||||||
def pin_info(pin):
|
def pin_info(pin):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import trezor_pb2 as proto
|
import messages_pb2 as proto
|
||||||
|
|
||||||
map_type_to_class = {}
|
map_type_to_class = {}
|
||||||
map_class_to_type = {}
|
map_class_to_type = {}
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user