文件名称:trezor-session:通过模块化Trezor的example.js,使Trezor易于使用
文件大小:14KB
文件格式:ZIP
更新时间:2024-06-06 13:00:34
JavaScript
用法 TrezorSession = require ( 'trezor-session' ) // or TrezorSession = require('.') // trezorSession = TrezorSession( config = {out: console.out, trezor: {}, onConnect: device => {}} ) // See config's jsdocs in ./session.js // Wait until your ready, this is going to start "Looking for the device" trezorSession = TrezorSession ( ) console . log ( trezorSession . isAvailable ( ) ) // true after conn
【文件预览】:
trezor-session-master
----yarn.lock(31KB)
----session.js(5KB)
----README.md(1KB)
----ensure-callback.js(1KB)
----.gitignore(27B)
----index.js(150B)
----package.json(388B)