Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Delegates please Use Sub-Accounts  (Read 3548 times)

0 Members and 1 Guest are viewing this topic.

Offline bytemaster

Delegates please Use Sub-Accounts
« on: July 22, 2014, 09:31:26 PM »

https://github.com/BitShares/bitshares_toolkit/wiki/Subaccounts


Quote
BitShares supports a system of account hierarchies, where one parent account may have many children, grandchildren, etc. and that parent can update children or grandchildren at will. Subaccounts are denoted by dots in their names, similar to subdomains, so if a user registers an account bob, he may register the subaccount child.bob using bob's private key. This means that only bob may register child.bob, and bob can update child.bob at any time.

Subaccounts can be recursive, so child.bob could authorize the creation of grand.child.bob if he desired. It is useful to note that bob is not able to create grand.child.bob as it is not a direct descendent; however, bob can later update a grandchild after its registration if he desires.

Naming Rules
Each component of a subaccount name must be a valid name, so in the subaccount delegate1.delegates.delegated-proof-of-steak, all of delegate1.delegates.delegated-proof-of-steak, delegates.delegated-proof-of-steak, and delegated-proof-of-steak must be valid accounts as well. This means that 1.delegates.delegated-proof-of-steak is not a valid account name, because 1 is not a valid account name. Names cannot have consecutive dots, i.e. a..b is not a valid account name.

Subaccount rules only apply in one direction, i.e. child.parent and child have no relationship, and both of these accounts may exist.

Updating Rules
A parent may perform a wallet_account_update_registration on any of its descendents, so grand.child.parent may be updated by child.parent or parent, and child.parent may be updated by parent. The parent may authorize such an update using either its active key or its owner key.


Starting Thursday I will only vote for delegates that are seeking more than one spot if they use sub-accounts.   This prevents attacks where someone registers similar but different sub-accounts.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline liondani

Re: Delegates please Use Sub-Accounts
« Reply #1 on: July 22, 2014, 10:40:19 PM »
And how we create a sub account? Example?
  https://bitshares.OPENLEDGER.info/?r=GREECE  | You are in Control | BUY | SELL | SHORT | SWAP | LOAN | TRADE |  

Offline emski

  • Hero Member
  • *****
  • Posts: 1283
    • View Profile
    • http://lnkd.in/nPbhxG
Re: Delegates please Use Sub-Accounts
« Reply #2 on: July 23, 2014, 05:14:50 AM »
angel-delegate     =>      angel.bitdelegate
lotto-delegate      =>       lotto.bitdelegate
emski                   =>        emski.bitdelegate

Offline emski

  • Hero Member
  • *****
  • Posts: 1283
    • View Profile
    • http://lnkd.in/nPbhxG
Re: Delegates please Use Sub-Accounts
« Reply #3 on: July 23, 2014, 05:43:31 AM »
angel-delegate     =>      angel.bitdelegate
lotto-delegate      =>       lotto.bitdelegate
emski                   =>        emski.bitdelegate

I suggest:
angel-delegate     =>      angel-delegate.agsexplorer
lotto-delegate      =>       lotto-delegate.agsexplorer
emski                    =>      delegate.emski

Why should I do that?

Offline dcchong

  • Sr. Member
  • ****
  • Posts: 203
    • View Profile
Re: Delegates please Use Sub-Accounts
« Reply #4 on: July 23, 2014, 06:27:52 AM »
Which command do I use to create a subaccount?


Edit:  Now I know how to create a subaccount from parent account, but how to use the sub account to produce blocks instead of the parent account?
« Last Edit: July 23, 2014, 06:45:03 AM by dcchong »
wallet_approve_delegate dc-delegate true
wallet_approve_delegate bitsharesx-delegate true

Offline emski

  • Hero Member
  • *****
  • Posts: 1283
    • View Profile
    • http://lnkd.in/nPbhxG
Re: Delegates please Use Sub-Accounts
« Reply #5 on: July 23, 2014, 06:35:40 AM »
angel-delegate     =>      angel.bitdelegate
lotto-delegate      =>       lotto.bitdelegate
emski                   =>        emski.bitdelegate

I suggest:
angel-delegate     =>      angel-delegate.agsexplorer
lotto-delegate      =>       lotto-delegate.agsexplorer
emski                    =>      delegate.emski

Why should I do that?

Only if you want to run more than one spot and has votes from BM  :)

Starting Thursday I will only vote for delegates that are seeking more than one spot if they use sub-accounts.   This prevents attacks where someone registers similar but different sub-accounts.

Let me rephrase that:
Why should i use agsexplorer instead of bitdelegate ?

Offline testz

Re: Delegates please Use Sub-Accounts
« Reply #6 on: July 23, 2014, 06:40:48 AM »
angel-delegate     =>      angel.bitdelegate
lotto-delegate      =>       lotto.bitdelegate
emski                   =>        emski.bitdelegate

I suggest:
angel-delegate     =>      angel-delegate.agsexplorer
lotto-delegate      =>       lotto-delegate.agsexplorer
emski                    =>      delegate.emski

Why should I do that?

Only if you want to run more than one spot and has votes from BM  :)

Starting Thursday I will only vote for delegates that are seeking more than one spot if they use sub-accounts.   This prevents attacks where someone registers similar but different sub-accounts.

Let me rephrase that:
Why should i use agsexplorer instead of bitdelegate ?

Sorry, my mistake, I think that angel-delegate and lotto-delegate it's delegates of agsexplorer.com

Offline cgafeng

Re: Delegates please Use Sub-Accounts
« Reply #7 on: July 23, 2014, 06:44:54 AM »
Which command do I use to create a subaccount?


Edit:  Now I know how to create a subaccount from parent account, but how to use the sub account to produce blocks instead?

how to create subaccount?
BTC:1EYwcZ9cYVj6C9LMLafdcjK9wicVMDV376

Offline dcchong

  • Sr. Member
  • ****
  • Posts: 203
    • View Profile
Re: Delegates please Use Sub-Accounts
« Reply #8 on: July 23, 2014, 06:48:11 AM »
Which command do I use to create a subaccount?


Edit:  Now I know how to create a subaccount from parent account, but how to use the sub account to produce blocks instead?

how to create subaccount?


wallet_account_create sub.parent

wallet_account_register <sub.parent> <parent>

for example:
you have a account that name is p2, now you want to create p1 which is sub account of p2 account, you can do this:

wallet_account_create p1.p2

wallet_account_register p1.p2 p2
« Last Edit: July 23, 2014, 06:55:30 AM by dcchong »
wallet_approve_delegate dc-delegate true
wallet_approve_delegate bitsharesx-delegate true

Offline cgafeng

Re: Delegates please Use Sub-Accounts
« Reply #9 on: July 23, 2014, 07:06:53 AM »
Which command do I use to create a subaccount?


Edit:  Now I know how to create a subaccount from parent account, but how to use the sub account to produce blocks instead?

how to create subaccount?


wallet_account_create sub.parent

wallet_account_register <sub.parent> <parent>

for example:
you have a account that name is p2, now you want to create p1 which is sub account of p2 account, you can do this:

wallet_account_create p1.p2

wallet_account_register p1.p2 p2

Think you. I got it.
BTC:1EYwcZ9cYVj6C9LMLafdcjK9wicVMDV376

Offline spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
Re: Delegates please Use Sub-Accounts
« Reply #10 on: July 23, 2014, 07:07:51 AM »
I have created new delegate subaccounts for spartako:

Code: [Select]
9886  delegate.spartako               0.0000000000 % 0        0        N/A           50 %     0.00000 BTSX        NONE
9887  delegate1.spartako              0.0000000000 % 0        0        N/A           50 %     0.00000 BTSX        NONE 
9888  delegate2.spartako              0.0000000000 % 0        0        N/A           50 %     0.00000 BTSX        NONE
9889  delegate3.spartako              0.0000000000 % 0        0        N/A           50 %     0.00000 BTSX        NONE
9890  delegate4.spartako              0.0000000000 % 0        0        N/A           50 %     0.00000 BTSX        NONE
wallet_account_set_approval spartako

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12176
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: Delegates please Use Sub-Accounts
« Reply #11 on: July 23, 2014, 07:20:13 AM »
my delegates now have the names
Code: [Select]
delegate.xeroc
a.delegate.xeroc
b.delegate.xeroc
c.delegate.xeroc
d.delegate.xeroc
e.delegate.xeroc
f.delegate.xeroc

charity delegates will be
Code: [Select]
delegate.delegate
a.delegate.delegate
b.delegate.delegate
c.delegate.delegate
d.delegate.delegate
e.delegate.delegate
f.delegate.delegate
(All earned fees from the charity delegates will be moved over to 'charity')
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline heyD

  • Hero Member
  • *****
  • Posts: 717
  • BitShares everything
    • View Profile
Re: Delegates please Use Sub-Accounts
« Reply #12 on: July 23, 2014, 07:28:03 AM »
...
« Last Edit: July 23, 2014, 07:31:38 AM by heyD »

Offline dxtr

  • Full Member
  • ***
  • Posts: 71
  • United We Stand, Dispersed We Are.
    • View Profile
Re: Delegates please Use Sub-Accounts
« Reply #13 on: July 23, 2014, 09:57:33 AM »
I did so.

My delegate is now not just scroodge, it's mr.scroodge  8)

Please do not hesitate to vote for him.
Help me out:     wallet_approve_delegate mr.scroodge true

Offline alt

Re: Delegates please Use Sub-Accounts
« Reply #14 on: July 23, 2014, 11:43:33 AM »
how to change the active key?

 

Google+