Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@ledgerhq/hw-app-solana
Advanced tools
GitHub, Ledger Devs Discord, Developer Portal
Ledger Hardware Wallet Solana JavaScript bindings.
You may be using this package to communicate with the Solana Nano App.
For a smooth and quick integration:
To run speculos-smoke
test make sure Speculos running (apdu port 9999 and api rest endpoint http://0.0.0.0:5000) with Solana app installed on it. Then run the command from root workspace:
$ yarn run ts-node packages/hw-app-solana/tests/speculos-smoke.ts
If ledger returns error 6808
- enable blind signature in settings (not needed for unit testing).
Solana API
transport
Transport a transport for sending commands to a devicescrambleKey
string a scramble key (optional, default "solana_default_scramble_key"
)import Solana from "@ledgerhq/hw-app-solana";
const solana = new Solana(transport);
Get Solana address (public key) for a BIP32 path.
Because Solana uses Ed25519 keypairs, as per SLIP-0010 all derivation-path indexes will be promoted to hardened indexes.
solana.getAddress("44'/501'/0'").then(r => r.address)
Returns Promise<{address: Buffer}> an object with the address field
Sign a Solana transaction.
solana.signTransaction("44'/501'/0'", txBuffer).then(r => r.signature)
Returns Promise<{signature: Buffer}> an object with the signature field
Sign a Solana off-chain message.
solana.signOffchainMessage("44'/501'/0'", msgBuffer).then(r => r.signature)
Returns Promise<{signature: Buffer}> an object with the signature field
Get application configuration.
solana.getAppConfiguration().then(r => r.version)
Returns Promise<AppConfig> application config object
FAQs
Ledger Hardware Wallet Solana Application API
The npm package @ledgerhq/hw-app-solana receives a total of 17,232 weekly downloads. As such, @ledgerhq/hw-app-solana popularity was classified as popular.
We found that @ledgerhq/hw-app-solana demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.