Coder Social home page Coder Social logo

trezor-graveyard / trezor-plugin Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 3.0 458 KB

:warning: OBSOLETE. DO NOT USE! Browser plugin for bridging Trezor device to websites

CMake 10.42% C++ 28.31% Rebol 0.18% AppleScript 0.43% C 58.88% HTML 1.25% Shell 0.34% Batchfile 0.18%

trezor-plugin's Introduction

Bitcoin Trezor Plugin

  1. Project initialization

git clone https://github.com/trezor/trezor-plugin.git

git clone git://github.com/trezor/firebreath.git

cd firebreath
git submodule update --recursive --init

mkdir -p projects
ln -s ../../trezor-plugin projects/BitcoinTrezorPlugin

cd projects/BitcoinTrezorPlugin
git submodule update --recursive --init

2a. Building on Linux

2b. Building on Mac OS X

You will need to have Xcode installed.

# install dependencies
brew install cmake protobuf boost

# generate the makefiles
./prepmac.sh projects build \
    -DCMAKE_OSX_ARCHITECTURES=i386 \
    -DWITH_SYSTEM_BOOST=1 \
    -DBoost_USE_STATIC_LIBS=on \
    -DBoost_USE_STATIC_RUNTIME=on

# build the project
cd build
xcodebuild -configuration Debug # or Release

# symlink to the plugin directory
ln -s `pwd`/projects/BitcoinTrezorPlugin/Debug/Bitcoin\ Trezor\ Plugin.plugin \
    ~/Library/Internet\ Plug-Ins/

2c. Building on Windows

Requirements:

Instructions:

a) Build Protobuf

1. In the `vsprojects` directory, run `extract_includes.bat`
2. Open the VS solution from the `vsprojects` directory
3. Switch to preferred configuration (Release/Debug)
3. Switch the `libprotobuf` project to static runtime `/MT` or `/MTd` (open
   Properties through the right-click menu, then C++, Code Generation, item
   Runtime Library)
4. Build `libprotobuf` project

b) Build plugin

1. Generate the VS solution (change the Protobuf path to your installation):

        set PROTOBUF_PATH=C:/Code/protobuf-2.5.0/
        prep.cmd

2. Open the solution from the generated `build` directory
3. Switch to preferred configuration
4. Build the solution
5. Results of the build are at `build/bin/BitcoinTrezorPlugin/{Debug,Release,...}`
6. You can either run the installer or register the compiled DLL manually with:

        regsvr32.exe npBitcoinTrezorPlugin.dll
  1. Testing

After you build the plugin according to instructions above, you can open the test page in your web browser:

pythom -m SimpleHTTPServer
google-chrome http://localhost:8000/test.html

If you rebuild the plugin you should restart the browser to be sure you're running the newest version.

trezor-plugin's People

Contributors

admin-slush avatar jpochyla avatar prusnak avatar rembish avatar slush0 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ratharn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.