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.
keyguard-next
Advanced tools
This README is about setting up your own instances of Nimiq Keyguard.
For information about using the client please refer to the Keyguard Client README.
Install the dev dependencies:
yarn
Then you can:
yarn build [config]
.yarn test
.yarn typecheck
.yarn watch
.yarn lint
.yarn lintfix
.yarn pr
to run all three checks (typecheck
, lint
, test
) as they
would for a PR.Note that it is mostly not necessary to run the build script for development purposes, as the code in src
is fully functional and you can use it as an endpoint.
yarn lint
to see errors.sign-transaction
.PinInput.js
, RpcServer.js
./**
* @param {string} address - The address to search for
*/
- src
- lib
- components
- request
- types
- tests
- config
- tools
- demos
- client
- src
- types
You can configure the following values by either environment variables or configuration files:
\
. Defaults to 'https://accounts.nimiq-testnet.com'.The best way is to use a configuration file, which has to be placed in the config
folder, and pass its name as an argument to the build script. yarn build local
uses local.conf
. Some sample files are provided.
If you have a CI (Continuous Integration) which builds on your webserver, you can also set those values in your server's configuration via environment variables. Please refer to your server's configuration, e.g. [https://httpd.apache.org/docs/2.4/env.html] for Apache.
In any case, please note that those settings are compile-time, so you have to rebuild to update them.
First, import the I18n.js
lib in your HTML's head section. Then, setup your
dictionary (details see below) and initialize I18n
passing your dictionary
and the fallback language that should be used if no translation in the current
language has been found.
var myDictionary = {
'en': {
...
}
};
I18n.initialize(myDictionary, 'en');
I18n
will automatically use the language set up in the user's browser.
<div data-i18n="my-translation">My content</div>
When the I18n gets started, or when the language has been switched, it will look
for tags with the data-i18n
attribute and put in the appropriate translation.
My content
will be replaced.
<input data-i18n-placeholder="my-placeholder-translation"/>
<input data-i18n-value="my-value-translation"/>
Similarily, I18n will translate the texts for value and placeholder.
Format:
{
"en": {
"my-translation": "Content in English"
},
"de": {
"my-translation": "Inhalt auf Deutsch"
}
}
Add LanguagePicker.js
to your head and then add a language picker widget to your
page:
const languagePicker = new LanguagePicker();
document.body.appendChild(languagePicker.getElement());
FAQs
Secure storage for Nimiq private keys.
We found that keyguard-next demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.