Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@blooo/hw-app-klaytn
Advanced tools
Ledger Hardware Wallet Klaytn JavaScript bindings.
Klaytn API
transport
. A transport for sending commands to a devicescrambleKey
. A scramble key (optional, default "klaytn_default_scramble_key"
)import Klaytn from "blooo/hw-app-klaytn";
const klaytn = new Klaytn(transport);
Get application version.
klaytn.getVersion().then((r) => r.version);
Returns Promise<{version: string}> version object
Get Klaytn address (public key) for a BIP32 path.
path
string a BIP32 path without the address indexdisplay
boolean flag to show display (default)accountIndex
number index of account address (optional, default 0
)klaytn.getAddress("44'/8217'/0'/0/", false, 0).then((r) => r.address);
Returns Promise<{address: string, publicKey: string, chainCode: string | undefined}> an object with the address field
Sign a Klaytn transaction. Here is a list of all the signing methods supported:
signLegacyTransaction
signValueTransfer
signValueTransferMemo
signSmartContractDeploy
signSmartContractExecution
signCancel
signFeeDelegatedValueTransfer
signFeeDelegatedValueTransferMemo
signFeeDelegatedSmartContractDeploy
signFeeDelegatedSmartContractExecution
signFeeDelegatedCancel
signFeeDelegatedValueTransferWithRatio
signFeeDelegatedValueTransferMemoWithRatio
signFeeDelegatedSmartContractDeployWithRatio
signFeeDelegatedSmartContractExecutionWithRatio
signFeeDelegatedCancelWithRatio
Each of them take exactly the same parameters.
txn
. A caver transaction.accountIndex
index of account address (optional, default 0
)import Caver from "caver-js";
const caver = new Caver();
const accountIndex = 1;
const txn = caver.transaction.valueTransfer.create({
from: "enter address here",
to: "enter address here",
value: 1,
gasPrice: 50000000000,
gas: 300000,
nonce: 1,
chainId: 1001,
});
klaytn.signTransaction(txn, accountIndex).then((r) => r.signature);
Returns Promise<{signature: [v,r,s], signedTxn: caver transaction.}> an object with the signed transaction and signature
FAQs
Ledger Hardware Wallet Klaytn Application API
We found that @blooo/hw-app-klaytn demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.