solana-privacy-scanner-core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/index.cjs +1141 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.js +1087 -0
- package/dist/index.js.map +7 -0
- package/dist/known-addresses.json +96 -0
- package/package.json +57 -0
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# solana-privacy-scanner-core
|
|
2
|
+
|
|
3
|
+
Core scanning engine for Solana privacy analysis. Analyze on-chain privacy exposure using heuristic-based risk detection.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- 🔍 **Privacy Risk Detection** - Identifies balance traceability, amount reuse, counterparty patterns, and timing correlations
|
|
8
|
+
- 🏷️ **Known Entity Detection** - Flags interactions with exchanges, bridges, and KYC services
|
|
9
|
+
- 📊 **Structured Reports** - Generates detailed JSON reports with risk scores, evidence, and mitigations
|
|
10
|
+
- ⚡ **Fast & Efficient** - Built with esbuild, supports both ESM and CJS
|
|
11
|
+
- 🔒 **Privacy-First** - All analysis happens locally, no data sent to external servers
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install solana-privacy-scanner-core
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { scan, RPCClient } from 'solana-privacy-scanner-core';
|
|
23
|
+
|
|
24
|
+
// Create an RPC client
|
|
25
|
+
const rpc = new RPCClient('https://api.mainnet-beta.solana.com');
|
|
26
|
+
|
|
27
|
+
// Scan a wallet
|
|
28
|
+
const report = await scan({
|
|
29
|
+
target: 'YourWalletAddressHere',
|
|
30
|
+
targetType: 'wallet',
|
|
31
|
+
rpcClient: rpc,
|
|
32
|
+
maxSignatures: 100,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
console.log('Risk Level:', report.overallRisk);
|
|
36
|
+
console.log('Signals:', report.signals.length);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Documentation
|
|
40
|
+
|
|
41
|
+
Full documentation available at: https://taylorferran.github.io/solana-privacy-scanner
|
|
42
|
+
|
|
43
|
+
- [Getting Started](https://taylorferran.github.io/solana-privacy-scanner/guide/getting-started)
|
|
44
|
+
- [Library Usage](https://taylorferran.github.io/solana-privacy-scanner/library/usage)
|
|
45
|
+
- [API Reference](https://taylorferran.github.io/solana-privacy-scanner/library/examples)
|
|
46
|
+
|
|
47
|
+
## License
|
|
48
|
+
|
|
49
|
+
MIT
|