daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import struct
  2. import io
  3. from trezorlib import messages, protobuf, mapping
  4.  
  5. message = messages.DebugLinkDecision(yes_no=True)
  6.  
  7. writer = io.BytesIO()
  8. protobuf.dump_message(writer, message)
  9. data = writer.getvalue()
  10. header = struct.pack(">HL", mapping.get_type(message), len(data))
  11.  
  12. total = header + data
  13.  
  14. print(repr(total))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top