A previous release had provenance metadata, but this release does not. View details.
avp-sdk
Python client for the AVP Agent Verification Protocol — multi-chain wallet trust scoring with Sybil resistance and ZK nullifiers.
Install
pip install avp-sdk
Zero dependencies. Pure Python stdlib.
Quick Start
from avp_sdk import AVPClient
client = AVPClient("https://avp-protocol.onrender.com")
# Step 1 — get a challenge message to sign
challenge = client.challenge("0xYourWallet", "ethereum")
print(challenge.message) # sign this with your wallet
# Step 2 — submit the signature
result = client.verify(challenge, signature="0x...")
print(result.trust_score) # 75
print(result.trust_tier) # "verified"
print(result.permissions) # ["read", "write", "governance_vote"]
print(result.jwt_token) # "eyJ..."
# Step 3 — validate a token later
info = client.validate(result.jwt_token)
print(info.valid) # True
print(info.wallet_address) # "0xYourWallet"
Development Mode
Use TEST_ prefixed signatures to test without a real wallet:
result = client.quick_verify("0xTestWallet", "ethereum", "TEST_my_signature")
print(result.trust_tier) # "basic"
Supported Chains
| Chain | Value |
|---|---|
| Ethereum | ethereum |
| Polygon | polygon |
| BSC | bsc |
| Solana | solana |
Trust Tiers
| Tier | Score | Key Permissions |
|---|---|---|
| SOVEREIGN | 80–100 | governance_vote, admin_actions |
| VERIFIED | 60–79 | write, transfer_standard |
| BASIC | 40–59 | read, transfer_limited |
| UNTRUSTED | 0–39 | read only |
Boost Trust Score
result = client.verify(
challenge,
signature="0x...",
operator_id="my-operator", # +15–25 points if operator has stake
device_fingerprint="browser-hash", # +10 points
)
Error Handling
from avp_sdk import (
AVPClient,
AVPAuthError,
AVPChallengeError,
AVPRateLimitError,
AVPSybilError,
AVPTokenError,
AVPConnectionError,
)
client = AVPClient("https://avp-protocol.onrender.com")
try:
challenge = client.challenge("0xWallet", "ethereum")
result = client.verify(challenge, signature="0x...")
except AVPAuthError:
print("Signature verification failed")
except AVPChallengeError:
print("Challenge expired or already used")
except AVPRateLimitError as e:
print(f"Rate limited — retry in {e.retry_after}s")
except AVPSybilError:
print("Wallet flagged as Sybil risk")
except AVPConnectionError:
print("Could not reach AVP server")
Operators
Operators stake ETH-equivalent value to boost trust scores for their users.
# Register an operator
op = client.register_operator("my-operator", stake_amount=1.0)
print(op.is_active) # True
print(op.trust_multiplier) # 1.0
# Use operator in verification
result = client.verify(challenge, signature="0x...", operator_id="my-operator")
# Trust score gets +15 bonus from operator stake
Configuration
client = AVPClient(
base_url="https://your-avp-instance.com",
timeout=30, # request timeout in seconds
retries=3, # retries on network errors
)
Run Tests
pip install pytest
pytest tests/ -v
Tests run against the live Render API. Requires internet connection.
Links
License
MIT — Oyewole Emmanuel Abiodun
Metadata
Release files for avp-wallet-sdk 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| avp_wallet_sdk-0.4.0.tar.gz | 7.8 kB | Without provenance | Details for avp_wallet_sdk-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| avp_wallet_sdk-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for avp_wallet_sdk-0.4.0-py3-none-any.whl |
Total release size: 15.6 kB
Release files / avp_wallet_sdk-0.4.0.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | avp_wallet_sdk-0.4.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0cb7d7eb1601e85fe9d626aa70cac8d46e3f01e652716ed3b5c5ef999c5b6a4
|
|
BLAKE2b-256 checksum How to use checksums |
041d7026fd6108bb71c8f485bed001b24c2edab27f97a24f1de7a411adc9ab33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / avp_wallet_sdk-0.4.0-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | avp_wallet_sdk-0.4.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef84c18d9f37128dbadf1b6a09e01dd49397c253f4cae35994d560f255350b99
|
|
BLAKE2b-256 checksum How to use checksums |
b712ee3d35b3d1b6ab2fd836e8ef65a726433994b8a0221a982d54c6d227b813
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for avp-wallet-sdk 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.3.0 2 files With provenance
- Added 0.4.0 2 files Without provenance
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.