Giter Site home page Giter Site logo

caa-group-1's Introduction

Project

Create the environment

conda env create -f env.yml

Activate the environment

conda activate caa_project_venv

Deactivate environment

conda deactivate

Exemple of running command for risk scoring downstream

python ./Risk_scoring.py -d 3 -tx "7660c3c260148a231455c5978762a935b048860bf740da469bf1f247b9bd5518"

Exemple of running command for risk scoring upstream

python ./Risk_scoring_upstream.py -d 4 -tx "c277a6c3d2c32b2c75ceebaca140b2e9ca9a31b32f464b64a4b11ab858b81708"

Exemple of running command for Transaction risk scoring

python ./TransactionRiskScore.py -d 3 -tx "e377ac9333e4527fa86d4e096525f7ca81e9fd6212237d8601a0ccae916de23c"

Scripts

BitcoinAPI

Client to fetch data from blockstream using Esplora HTTP API.

Risk scoring

Computes the local downstream score of a transaction by exploring transactions downstream with less than 10 outputs within the depth limit set. Takes the following arguments -d (depth) and -tx transaction

Risk scoring upstream

Computes the local upstream score of a transaction by exploring transactions upstream within the depth limit set. Takes the following arguments -d (depth) and -tx transaction

Transaction Risk score

Computes the transaction risk score by averaging particpants account score. Account score is the highest upstream/downstream score of the addresses 20 most recent transactions.

DataMerge

This Scripts loads all tagpack yaml files, merges them into one file and saves it as data.csv
It is needed to prepare the data for the TransactionRiskScore.
You can configure it within config.yaml:
config["paths"]["data"] is the output folder (where to save the data.csv)
config["paths"]["tagpacks"] is the folder with the tagpack yaml files\

caa-group-1's People

Contributors

intrpt avatar jeremdesno avatar sedadas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.