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.
github.com/mattfarina/geo-go
A library in Go dealing with earth coordinate system (geodetic) calculations.
Locations are individual locations on the Earth.
location := NewLocation(lat, long)
From locations you can do things like calculate the distance between two of them. For example,
l1 := NewLocation(lat1, long1)
l2 := NewLocation(lat2, long2)
distance := l1.Distance(l2)
You can also us a location to find a range or longitudes and latitudes. This is useful for finding the corners on the little rectangle screens we look at too often. For example,
location := NewLocation(42.7186, -84.468466)
latMin, latMax := location.LatitudeRange(10000)
longMin, longMax := location.LongitudeRange(20000)
There are other operations you can find in the location.go
code.
These locations are on the Earth and information for the earth is stored on Earth. For example, the method EarthRadius
will return the radius of the Earth at a specified latitude. This takes into account that the earth is an irregular ellipsoid.
There are other operations that can be performed on the Earth. For more details see earth.go
.
FAQs
Unknown package
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.