Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@stellar/typescript-wallet-sdk-km
Advanced tools
The Typescript Wallet Key Manager SDK is a library that allows developers to use key managing functionality in their wallet applications. It works in conjuction with the main [Typescript Wallet SDK](https://github.com/stellar/typescript-wallet-sdk) to hol
The Typescript Wallet Key Manager SDK is a library that allows developers to use key managing functionality in their wallet applications. It works in conjuction with the main Typescript Wallet SDK to hold all the functionality a developer would need to create a wallet for the stellar network.
The library is available via npm. To import typescript-wallet-sdk-km
you need
to add it as a dependency to your code:
yarn:
yarn add @stellar/typescript-wallet-sdk-km
npm:
npm install @stellar/typescript-wallet-sdk-km
Here's a small example on how to use the KeyManager to store and retrieve a key:
Import the package:
import { KeyManager, MemoryKeyStore } from "@stellar/typescript-wallet-sdk-km";
Creating a KeyManager class using simple memory key storage:
const testStore = new MemoryKeyStore();
const testKeyManager = new KeyManager({ keyStore: testStore });
Store an encrypted key:
const id = "this is a my test id";
testKeyManager.registerEncrypter(IdentityEncrypter);
await testKeyManager.storeKey({
key: {
id,
type: KeyType.plaintextKey,
publicKey: "TestPublicKey",
privateKey: "TestPrivateKey",
},
password: "test",
encrypterName: "IdentityEncrypter",
});
Retrieve the stored key:
const keyData = await testKeyManager.loadKey(id, password);
FAQs
The Typescript Wallet Key Manager SDK is a library that allows developers to use key managing functionality in their wallet applications. It works in conjuction with the main [Typescript Wallet SDK](https://github.com/stellar/typescript-wallet-sdk) to hol
We found that @stellar/typescript-wallet-sdk-km 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.