Skip to content

⚠️ OBSOLETE. DO NOT USE! Browser plugin for bridging Trezor device to websites

Notifications You must be signed in to change notification settings

trezor-graveyard/trezor-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

⚠️ OBSOLETE. DO NOT USE! Browser plugin for bridging Trezor device to websites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •