GithubHelp home page GithubHelp logo

Comments (3)

deanpress avatar deanpress commented on July 18, 2024

Wouldn't passing this open up to security risks? e.g. a malicious smart contract (Contract A) calling do_transfer on Contract B without the user's knowledge. In this case Contract B should register manual approval for Contract A to make invocations on the user's behalf first, which brings us to NEP-5.1 approve() and transferFrom().

from neo-boa.

chris-poli avatar chris-poli commented on July 18, 2024

I haven't looked at this for awhile and very well may have misunderstood but i was hoping at the time, Contract A, would just be able to trigger do_transfer, meaning it could be easily proven a smart contract is the one calling an operation on its own behalf. To give specific context and ignoring the larger scope, for a withdrawal, the smart contract would be able to send its own funds to another address by getting its script hash and calling this method.

As you said though, NEP-5.1 is solving some of these issues, it sounds like a great proposal!

from neo-boa.

deanpress avatar deanpress commented on July 18, 2024

@chris-poli I see, that makes sense. This issue proposes the ability for smart contracts to send their own funds by adjusting how CheckWitness works.
I have a NEP for programmable tokens, perhaps we can discuss some extensions that help with the issue you described as well; neo-project/proposals#64

from neo-boa.

Related Issues (20)

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.