Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check asset authorizations and withdrawals in vesting balance related evaluators #972

Closed
1 of 17 tasks
abitmore opened this issue May 25, 2018 · 3 comments
Closed
1 of 17 tasks

Comments

@abitmore
Copy link
Member

abitmore commented May 25, 2018

Mentioned as TODO's in code:

void_result vesting_balance_create_evaluator::do_evaluate( const vesting_balance_create_operation& op )
{ try {
const database& d = db();
const account_object& creator_account = op.creator( d );
/* const account_object& owner_account = */ op.owner( d );
// TODO: Check asset authorizations and withdrawals

// TODO: Check asset authorizations and withdrawals

// TODO: Check asset authorizations and withdrawals

Impacts
Describe which portion(s) of BitShares Core may be impacted by your request. Please tick at least one box.

  • API (the application programming interface)
  • Build (the build process or something prior to compiled code)
  • CLI (the command line wallet)
  • Deployment (the deployment process after building such as Docker, Travis, etc.)
  • DEX (the Decentralized EXchange, market engine, etc.)
  • P2P (the peer-to-peer network for transaction/block propagation)
  • Performance (system or user efficiency, etc.)
  • Protocol (the blockchain logic, consensus, validation, etc.)
  • Security (the security of system or user data, etc.)
  • UX (the User Experience)
  • Other (please add below)

CORE TEAM TASK LIST

  • Evaluate / Prioritize Feature Request
  • Refine User Stories / Requirements
  • Define Test Cases
  • Design / Develop Solution
  • Perform QA/Testing
  • Update Documentation
@abitmore abitmore added this to New -Awaiting Core Team Evaluation in Project Backlog via automation May 25, 2018
@jmjatlanta
Copy link
Contributor

I am attempting to flush out requirements. Authorization checks I have found as part of the asset create process (some may not apply):

  • Whitelist / Blacklist
  • Issuer transferring back to self
  • Transfer requires Issuer approval
  • Permit confidential transfer

I am still researching which of those apply to the above TODOs, as well as what is involved in checking "withdrawals". I will attempt to update this note as details are discovered.

@jmjatlanta
Copy link
Contributor

jmjatlanta commented Sep 30, 2019

With relation to black/white lists, should vesting_balance_create ignore the lists, on the assumption that the list may change at a later date? i.e. Only vesting_balance_withdrawal should check the white/black list, and if unable to do the transfer, the tokens just sit there?

Or should it be more proactive, and check the lists even on vesting_balance_create?

@abitmore abitmore added this to To Do in Protocol Upgrade Release (6.0.0) via automation Apr 9, 2020
@abitmore abitmore removed this from New -Awaiting Core Team Evaluation in Project Backlog Apr 9, 2020
@abitmore abitmore moved this from To Do to In Development in Protocol Upgrade Release (6.0.0) May 23, 2021
@abitmore abitmore moved this from In Development to In Testing in Protocol Upgrade Release (6.0.0) May 29, 2021
@abitmore
Copy link
Member Author

Fixed by #2468.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants