{"_id":"@1tokenfe/hd-transport","name":"@1tokenfe/hd-transport","dist-tags":{"latest":"1.1.15"},"versions":{"1.1.15":{"name":"@1tokenfe/hd-transport","version":"1.1.15","description":"Transport layer abstractions and utilities for OneToken hardware SDK.","author":{"name":"OneToken"},"homepage":"https://github.com/OneTokenHQ/hardware-js-sdk#readme","license":"ISC","main":"dist/index.js","types":"dist/index.d.ts","publishConfig":{"access":"public"},"scripts":{"dev":"rimraf dist && rollup -c ../../build/rollup.config.js -w","build":"rimraf dist && rollup -c ../../build/rollup.config.js","test":"jest","lint":"eslint .","lint:fix":"eslint . --fix","update:protobuf":"./scripts/protobuf-build.sh"},"devDependencies":{"@types/bytebuffer":"^5.0.42","@types/w3c-web-usb":"^1.0.10","@types/web-bluetooth":"^0.0.21"},"dependencies":{"bytebuffer":"^5.0.1","long":"^4.0.0","protobufjs":"^6.11.2"},"gitHead":"0bb0c034bc0624d12a704a11b8825fb5038b7246","_id":"@1tokenfe/hd-transport@1.1.15","_nodeVersion":"22.17.0","_npmVersion":"lerna/4.0.0/node@v22.17.0+arm64 (darwin)","dist":{"integrity":"sha512-dApvSfs+FO3NmnMqrp0TrGa2ItCawq+3nRN3Wf/NDVG1mbqn24jUsOZ1BpoHFFW8WYZbdhj+5TcOlKUUAnrp2g==","shasum":"20d1bec55b79e443aacf881516a9291cb44e907f","tarball":"https://registry.npmjs.org/@1tokenfe/hd-transport/-/hd-transport-1.1.15.tgz","fileCount":72,"unpackedSize":630197,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIERCu/LPc1p4NMN2cWTzzISpo4mXahIhaye30llPQBriAiBsTo6H1mvCRiZfz9PdJHiLPx6tgHq5IaKCBpTcUc1hFg=="}]},"_npmUser":{"name":"vici1573","email":"vici1573@outlook.com"},"directories":{},"maintainers":[{"name":"vici1573","email":"vici1573@outlook.com"},{"name":"onetokenwallet","email":"yf860412@gmail.com"},{"name":"dihuase0411","email":"dihuase0411@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hd-transport_1.1.15_1763359450777_0.9393960139745612"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-17T06:04:10.715Z","1.1.15":"2025-11-17T06:04:10.980Z","modified":"2025-11-17T06:04:11.222Z"},"maintainers":[{"name":"vici1573","email":"vici1573@outlook.com"},{"name":"onetokenwallet","email":"yf860412@gmail.com"},{"name":"dihuase0411","email":"dihuase0411@gmail.com"}],"description":"Transport layer abstractions and utilities for OneToken hardware SDK.","homepage":"https://github.com/OneTokenHQ/hardware-js-sdk#readme","author":{"name":"OneToken"},"license":"ISC","readme":"# `@1tokenfe/hd-transport`\n\n`@1tokenfe/hd-transport` is a library for low-level communication with OneToken Hardware.\n\n## What is the purpose\n\n- translate JSON payloads to binary messages using protobuf definitions comprehensible to OneToken devices\n- chunking and reading chunked messages according to the [OneToken protocol](./protocol.md)\n- exposing single API for various transport methods:\n  - Http Transport\n  - React Native Transport\n  - WebUSB\n- Create and expose typescript definitions based on protobuf definitions.\n\n### The short version\n\nIn order to be able to use new features of onetoken-firmware you need to update protobuf definitions.\n\n1. `git submodule update --init --recursive` to initialize git submodules.\n1. `yarn update-submodules` to update firmware submodule\n1. `yarn update:protobuf` to generate new `./messages.json` and `./src/types/messages.ts`\n\ngit submodule update --init --recursive to initialize firmware submodule\nyarn update-submodules to update firmware submodule\nyarn update:protobuf to generate new ./messages.json and ./src/types/messages.ts\n\n## Docs\n\nDocumentation is available [hardware-js-sdk](https://developer.onetoken.so/connect-to-hardware/hardware-sdk/start)\n","readmeFilename":"README.md","_rev":"1-7d00646d3d6a1d29d5a4b8c73e4c8144"}