
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
dsrv key management store. @dsrv/kms provides the following methods for Ethereum, Celo, Near, Solana, Cosmos, Aptos, Sui
Through getAccount method, you can get account of your mnemonic.
import { Account, CHAIN, Ethereum } from '@dsrv/kms';
/* Ethereum getAccount */
export const getEthereumAccount = (mnemonic: string): Account => {
const ethereumAccount = Ethereum.getAccount({
mnemonic,
path: { type: CHAIN.ETHEREUM, account: 0, index: 0 },
});
return ethereumAccount;
};
interface Account {
address: string;
publicKey: string;
}
typeof mnemonic === string; // "your private mnemonic"
By following this link, you can see the example code.
You can execute the example code through the command below.
git clone https://github.com/dsrvlabs/kms-monorepomnemonic.json file inside the packages/examples (follow the format of this link)yarn && yarn buildyarn start:example getAccountPlayground.tsThrough getPrivateKey method, you can get a private key of your mnemonic.
import { CHAIN, Ethereum } from '@dsrv/kms';
/* Ethereum getPrivateKey */
export const getEthereumPrivateKey = (mnemonic: string): string => {
const ethereumPrivateKey = Ethereum.getPrivateKey({
mnemonic,
path: { type: CHAIN.ETHEREUM, account: 0, index: 0 },
});
return ethereumPrivateKey;
};
typeof privateKey === string;
typeof mnemonic === string; // "your private mnemonic"
By following this link, you can see the example code.
You can execute the example code through the command below.
git clone https://github.com/dsrvlabs/kms-monorepomnemonic.json file inside the packages/examples (follow the format of this link)yarn && yarn buildyarn start:example getPrivateKeyPlayground.tsThrough signTx method, you can get a signature for the transaction.
import { CHAIN, Ethereum } from '@dsrv/kms';
const { signature } = Ethereum.signTx(
{
mnemonic,
path: { type: CHAIN.ETHEREUM, account: 0, index: 0 },
},
serializedTx, // must be hex string
);
interface SignedTx {
unsignedTx: string;
signature: string;
}
typeof serializedTx === string; // must be hex string
Through kms, you can get a signature for the transaction. The steps listed below should be followed in order to sign the transaction through kms.
import { Ethereum } from '@dsrv/kms';
export const getEthereumSignedTx = async (mnemonic: string) => {
// 1. Create raw transactions for each chain using the SDK.
// getEthereumTx is a custom method created to get raw transaction back.
const { serializedTx, unSignedTx } = await getEthereumTx(mnemonic);
// 2. The signature value for transaction is received through the signTx method of kms.
const ethereumSignature = Ethereum.signTx(
{
mnemonic,
path: { type: CHAIN.ETHEREUM, account: 0, index: 0 },
},
serializedTx,
);
// 3.The raw transaction generated above and the signature received through kms are combined to create a signed transaction.
// createEthereumSignedTx is a custom method for returning signedTransaction by combining signature and raw transaction.
const ethereumSignedTx = createEthereumSignedTx({
unSignedTx,
signature: ethereumSignature.signature,
});
return { ethereumSignedTx, signature: ethereumSignature.signature };
};
By following this link, you can see the example code.
You can execute the example code through the command below.
git clone https://github.com/dsrvlabs/kms-monorepomnemonic.json file inside the packages/examples (follow the format of this link)yarn && yarn buildyarn start:example signTxPlayground.tsTransactions can be transferred via the signedTransaction created above. However, a faucet is required to transmit the transaction.
By following this link, you can see the example code.
You can execute the example code through the command below.
git clone https://github.com/dsrvlabs/kms-monorepomnemonic.json file inside the packages/examples (follow the format of this link)yarn && yarn buildyarn start:example sendTransactionPlayground.tsyarn && yarn build:kmsyarn test:examplesFAQs
blockchain key managament system
The npm package @dsrv/kms receives a total of 109 weekly downloads. As such, @dsrv/kms popularity was classified as not popular.
We found that @dsrv/kms demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.