Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
localization-patched
Advanced tools
The Localization package provides tools for multilateration and triangulation in 2D, 3D, and on the Earth's surface. The current Earth model supported by the package is called 'Earth1', which models the Earth as an ideal sphere with a radius of 6378.1 kilometers.
Original repo: https://github.com/kamalshadi/Localization
Typical usage of the package:
.. code-block:: python
import localization as lx
To initialize a new localization Project, use:
.. code-block:: python
P = lx.Project(mode=<mode>, solver=<solver>)
Currently, three modes are supported:
And three solvers can be utilized:
To add anchors to the project, use:
.. code-block:: python
P.add_anchor(<name>, <loc>)
where name
denotes the user-provided label of the anchor and <loc>
is the location
of the anchor provided as a tuple, e.g., (120, 60).
To add a target, use:
.. code-block:: python
t, label = P.add_target()
T
is the target object, and label
is the package-provided label for the target.
Distance measurements must be added to the target object like:
.. code-block:: python
t.add_measure(<anchor_label>, <measured_distance>)
Finally, running P.solve()
will locate all targets. You can access the estimated
location of the target t
by t.loc
. t.loc
is a point object. Point object B
has "x", "y", "z" coordinates available by B.x
, B.y
, B.z
respectively.
Install the package via pip:
.. code-block:: bash
pip install localization
Contact: kamal.shadi85@gmail.com
To be completed:
FAQs
Multilateration and triangulation.
We found that localization-patched 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.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.