33 lines
862 B
TypeScript
Raw Normal View History

2018-04-27 16:49:17 -04:00
import { WalletLib } from 'shared/enclave/types';
2018-04-30 13:17:17 -04:00
// TODO: Trezor not working right now, come back later
// TODO: Type trezor lib
// import { DeviceList } from 'trezor.js-node';
// const deviceList = new DeviceList({ debug: true });
2018-04-27 16:49:17 -04:00
const Trezor: WalletLib = {
async getChainCode() {
2018-04-30 13:17:17 -04:00
throw new Error('Not yet implemented');
// const device = await deviceList.acquireFirstDevice(true);
// console.log(device);
// device.run((session: any) => {
// return session.signMessage([1,2], "message", "bitcoin");
// });
//
// return { chainCode: 'test', publicKey: 'test' };
2018-05-04 00:00:34 -04:00
},
async signTransaction() {
throw new Error('Not yet implemented');
2018-05-04 00:26:25 -04:00
},
async signMessage() {
throw new Error('Not yet implemented');
2018-05-04 00:40:32 -04:00
},
async displayAddress() {
throw new Error('Not yet implemented');
2018-04-27 16:49:17 -04:00
}
};
export default Trezor;