Code Monkey home page Code Monkey logo

dcrchainanalysis's People

Contributors

dmigwi avatar raedah avatar

Watchers

 avatar  avatar  avatar

dcrchainanalysis's Issues

RPC Function returning individual Tx needs some fixing.

// SearchRawTransaction fetch transactions that belong to the provided address
func SearchRawTransaction(client *rpcclient.Client, count int, address string) (
[]*dcrjson.SearchRawTransactionsResult, error) {
addr, err := dcrutil.DecodeAddress(address)
if err != nil {
log.Infof("Invalid address %s: %v", address, err)
return nil, err
}
txs, err := client.SearchRawTransactionsVerbose(addr, 0, count,
true, true, nil)
if err != nil {
log.Warnf("SearchRawTransaction failed for address %s: %v", addr, err)
}
return txs, nil
}

In the function above the transaction inputs returned do not have the previous outputs attached because *dcrjson.SearchRawTransactionsResult payload doesn't have the previous output part.
For a successful funds flow tracking we need the respective inputs returning the previous outputs in the most efficient manner.

Fix comments typos

After #2 was merged we had a base that we could all used but some issues need more attention:

  • Code commenting needs some work.
  • The RPC connection functions and config.go files need tests.

Probability of certainty on a single transaction

When are transaction has multiple inputs and multiple outputs, and at least two output amounts are identical in amount, it is not knowable with certainty the input source of the funds.

Example: If there were two inputs that were larger then the identical output amounts, that the certainty of the source of the outputs is 0.5.

We want to automate this calculation.

It should also be noted that change outputs can be linked with 100% certainty based on the amount values.

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.