Skip to main content

Smart contract vulnerability templates for ReinforcedAI

Project description

Vulnerabilities Database

Smart contract vulnerability templates for ReinforcedAI.

Dependencies

  • Modern Linux
  • Python 3.11+

API

  • initialize(environment: str) Loads native vulnerabilities database library. You must call this function before any other library function.

    environment сan be mainnet, testnet or local.

  • activate(activation_code: str) Activates the library with your activation code. This is required before you can generate contracts.

    activation_code is your personal activation code received from relayer.

  • generate_contract() Generates a new vulnerable contract template. The library must be initialized and activated before calling this function.

    Returns Contract object with vulnerability_class, description and code fields.

Demo

import py_solidity_vuln_db as vuldb

vuldb.initialize('testnet')
vuldb.activate('AAAA-BBBB-CCCC')

contract = vuldb.generate_contract()
print('Vulnerability class:', contract.vulnerability_class)
print('Description:', contract.description)
print('Code:', contract.code)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solidity_vulnerabilities_db2-2.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file solidity_vulnerabilities_db2-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for solidity_vulnerabilities_db2-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ec47b74d9a1aa9aa4048409ab48a8b71d800b8c113ce3692c0e72be1e70a19e
MD5 597911e2139db56b4e942c4fec12aabd
BLAKE2b-256 8ee6c55eaf5d0eb6fcd30fa3e860891a8dc2d2dd2eff5a12df527102be60e49e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page