create account

Hive - CAIP-10 by stoodkev

View this thread on: hive.blogpeakd.comecency.com
· @stoodkev ·
$275.24
Hive - CAIP-10
![image.png](https://files.peakd.com/file/peakd-hive/stoodkev/23wgmHAxFGk3PChiENbbC6gs9eALYtw41CbGCdcKSKbtr23KPCCmKJp7AgJ8Cq46Qks2Q.png)

## CAIP

To read about CAIP and the motivations for proposing CAIP-2 and CAIP-10 standards for Hive, please read [this post](https://peakd.com/hive/@stoodkev/hive-caip-2) first.

The CAIP-2 regarding Hive namespace definition has been submitted for review in [this pull request](https://github.com/ChainAgnostic/CAIPs/pull/94). 


## CAIP-10

The scope of this post is to propose an account ID standard matching the Hive usernames.
[CAIP 10](https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-10.md) is defined as:
> *CAIP-10 defines a way to identify an account in any blockchain specified by CAIP-2 blockchain id.*

The original chain agnostic account ID goes as follow :

```
account_id:        chain_id + ":" + account_address
chain_id:          [:-a-zA-Z0-9]{5,41}
account_address:   [a-zA-Z0-9]{1,64}
```

The problem with that definition is that it only includes alphanumeric characters, while some Hive usernames also contain `.` and/or `-`.

## CAIP-10 for Hive

I've started a [draft](https://github.com/stoodkev/CAIPs/blob/hive/account/CAIPs/caip-hive-account.md) of a Hive-compatible CAIP-10 here, based on the required template.

Proposed account ID definition is as follow, based on a Hive username regex by @mintrawa ([vote for witness](https://hivesigner.com/sign/account-witness-vote?witness=mintrawa&approve=1)). Note that only the `account_address` changes.

```
account_id:        chain_id + ":" + account_address
chain_id:          [:-a-zA-Z0-9]{5,41}
account_address:   ^(?=.{3,16}$)[a-z]([0-9a-z]|[0-9a-z\-](?=[0-9a-z])){2,}([\.](?=[a-z][0-9a-z\-][0-9a-z\-])[a-z]([0-9a-z]|[0-9a-z\-](?=[0-9a-z])){1,}){0,}$
```

The simplicity of Hive username regex is a beauty to behold =p

Using CAIP-94 (CAIP-2 for Hive namespace) and this CAIP, chain agnostic dApps could define Hive accounts as follow :

```
# @hiveio account on mainnet
hive:beeab0de000000000000000000000000:hiveio

## Accounts with special characters (`-`,`.`)

# @hive.fund account on mainnet
hive:beeab0de000000000000000000000000:hive.fund

# @hive-blockchain account on testnet
hive:18dcf0a285365fc58b71f18b3d3fec95:hive-blockchain
```

The second and third examples above aren't currently possible because of the limitations of current CAIP-10 (as explained above). This CAIP aims to solve this issue.

## Future work

- Submit for review and follow up
- Hive AuthProvider on Ceramic

๐Ÿ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 186 others
๐Ÿ‘Ž  
properties (23)
authorstoodkev
permlinkhive-caip-10
categoryhive
json_metadata{"app":"peakd/2022.01.2","format":"markdown","tags":["hive","did","caip","ceramic"],"users":["stoodkev","mintrawa","hiveio","hive.fund","hive-blockchain"],"image":["https://files.peakd.com/file/peakd-hive/stoodkev/23wgmHAxFGk3PChiENbbC6gs9eALYtw41CbGCdcKSKbtr23KPCCmKJp7AgJ8Cq46Qks2Q.png"]}
created2022-02-09 02:12:57
last_update2022-02-09 02:12:57
depth0
children21
last_payout2022-02-16 02:12:57
cashout_time1969-12-31 23:59:59
total_payout_value137.680 HBD
curator_payout_value137.561 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,520
author_reputation190,283,772,273,558
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,286,764
net_rshares203,199,666,450,878
author_curate_reward""
vote details (251)
@chinito ·
Looks quite complex to me, so glad you are doing that.. :P
properties (22)
authorchinito
permlinkre-stoodkev-r7109j
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2022.01.2"}
created2022-02-09 07:17:42
last_update2022-02-09 07:17:42
depth1
children0
last_payout2022-02-16 07:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length58
author_reputation194,951,979,677,448
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,292,310
net_rshares0
@dynamicrypto ·
Went over my head, hope you have time to chat sir I am Troy G#9925
properties (22)
authordynamicrypto
permlinkre-stoodkev-r7j37k
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2022.01.2"}
created2022-02-19 01:38:09
last_update2022-02-19 01:38:09
depth1
children0
last_payout2022-02-26 01:38:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length66
author_reputation251,125,047,610,138
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,604,235
net_rshares0
@hivebuzz ·
Congratulations @stoodkev! Your post has been a top performer on the Hive blockchain and you have been rewarded with the following badge:

<table><tr><td><img src="https://images.hive.blog/60x60/http://hivebuzz.me/badges/toppayoutday.png"></td><td>Post with the highest payout of the day.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@stoodkev) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/hive-122221/@hivebuzz/pum-202202-8"><img src="https://images.hive.blog/64x128/https://i.imgur.com/joDgNkk.png"></a></td><td><a href="/hive-122221/@hivebuzz/pum-202202-8">Hive Power Up Month - Feedback from February day 8</a></td></tr><tr><td><a href="/hive-122221/@hivebuzz/pum-202202-3"><img src="https://images.hive.blog/64x128/https://i.imgur.com/st0le6L.png"></a></td><td><a href="/hive-122221/@hivebuzz/pum-202202-3">Hive Power Up Month challenge - Feedback from February day 3</a></td></tr><tr><td><a href="/hive-122221/@hivebuzz/pum-202201-delegations"><img src="https://images.hive.blog/64x128/https://i.imgur.com/gELoG78.png"></a></td><td><a href="/hive-122221/@hivebuzz/pum-202201-delegations">Our Hive Power delegations to the last Power Up Month challenge Winners </a></td></tr></table>
properties (22)
authorhivebuzz
permlinknotify-stoodkev-20220210t003538
categoryhive
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-02-10 00:35:39
last_update2022-02-10 00:35:39
depth1
children0
last_payout2022-02-17 00:35:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,445
author_reputation369,456,465,762,174
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,315,511
net_rshares0
@howzat ·
Hello buddy.
Is there any error with Hive Keychain because I can't login on Hive Keychain? 
properties (22)
authorhowzat
permlinkre-stoodkev-2022314t204455744z
categoryhive
json_metadata{"tags":["hive","did","caip","ceramic"],"app":"ecency/3.0.27-mobile","format":"markdown+html"}
created2022-03-14 15:44:57
last_update2022-03-14 15:44:57
depth1
children0
last_payout2022-03-21 15:44:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length91
author_reputation45,591,344,077,992
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,326,482
net_rshares0
@intoy.bugoy ·
$0.11
Wow this is amazing project
๐Ÿ‘  ,
properties (23)
authorintoy.bugoy
permlinkre-stoodkev-r77y2v
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2022.01.2"}
created2022-02-13 01:13:45
last_update2022-02-13 01:13:45
depth1
children0
last_payout2022-02-20 01:13:45
cashout_time1969-12-31 23:59:59
total_payout_value0.055 HBD
curator_payout_value0.055 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length27
author_reputation222,986,768,728,994
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,408,826
net_rshares85,685,061,615
author_curate_reward""
vote details (2)
@josediccus ·
$5.40
Its real work here. So if users can eventually access account without keychain or metamask, can these form of lite account also be counted as real accounts on the hive blockchain? Or is it probably for accounts that want to game on the hive blockchain?
๐Ÿ‘  
properties (23)
authorjosediccus
permlinkr72ky5
categoryhive
json_metadata{"app":"hiveblog/0.1"}
created2022-02-10 03:42:12
last_update2022-02-10 03:42:12
depth1
children5
last_payout2022-02-17 03:42:12
cashout_time1969-12-31 23:59:59
total_payout_value2.697 HBD
curator_payout_value2.698 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length252
author_reputation2,617,554,002,092,488
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,318,966
net_rshares3,868,584,617,209
author_curate_reward""
vote details (1)
@stoodkev ·
$0.15
This is just the definition of a standard for dApps that are chain agnostic.
You could link one or more wallets to your decentralized identity (DID).
For example `hive:beeab0de000000000000000000000000:josediccus` (Hive) and `eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb` (Eth mainnet).

Once we have this standard in place and a method to provide Hive Authentication in Ceramic and/or other tools, we can have a `Sign in with Hive` button, along with `Sign in with Eth` or Btc, wouldn't it be cool?

๐Ÿ‘  
properties (23)
authorstoodkev
permlinkre-josediccus-r72l8d
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2022.01.2"}
created2022-02-10 03:48:18
last_update2022-02-10 03:48:18
depth2
children4
last_payout2022-02-17 03:48:18
cashout_time1969-12-31 23:59:59
total_payout_value0.076 HBD
curator_payout_value0.075 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length507
author_reputation190,283,772,273,558
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,319,064
net_rshares110,184,658,146
author_curate_reward""
vote details (1)
@josediccus ·
> Once we have this standard in place and a method to provide Hive Authentication in Ceramic and/or other tools, we can have a Sign in with Hive button, along with Sign in with Eth or Btc, wouldn't it be cool?


Hoooooo this is astonishing, so more external wallet would eventually be able to interact with one's own hive identity here? There are many possibilities to this, adoption for example, and hive have a certain aspect of interacatibility, plus, adoption might skyrocket too as *sign ins* could become even more easier and all that. My goodness! Forgive me, im a tech noob and all that, I need that explanation to clear my confusion. Great work. Wow. 

Voting witness.
properties (22)
authorjosediccus
permlinkr72lkl
categoryhive
json_metadata{"app":"hiveblog/0.1"}
created2022-02-10 03:55:39
last_update2022-02-10 03:55:39
depth3
children3
last_payout2022-02-17 03:55:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length677
author_reputation2,617,554,002,092,488
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,319,196
net_rshares0
@kkarenmp ·
Wow how complex is everything about the hive chain wow is incredible, I would like to learn much more about it, hehehe I only know how to play the violin hahahaha sald
properties (22)
authorkkarenmp
permlinkre-stoodkev-rallne
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2022.04.5"}
created2022-04-19 17:52:36
last_update2022-04-19 17:52:36
depth1
children0
last_payout2022-04-26 17:52:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length167
author_reputation2,545,384,473,975,625
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,443,767
net_rshares0
@kkarenmp ·
Wow how complex is everything about the hive chain wow is incredible, I would like to learn much more about it, hehehe I only know how to play the violin hahahaha sald
properties (22)
authorkkarenmp
permlinkre-stoodkev-rallo3
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2022.04.5"}
created2022-04-19 17:52:51
last_update2022-04-19 17:52:51
depth1
children0
last_payout2022-04-26 17:52:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length167
author_reputation2,545,384,473,975,625
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,443,775
net_rshares0
@luba555 ·
$0.48
Ciao @stoodkev, volevo farti i complimenti รจ un iniziativa che mi piace molto!! Sei veramente molto bravo! Ti auguro una bellissima giornata โคโคโคโคโคโคโค
๐Ÿ‘  
properties (23)
authorluba555
permlinkre-stoodkev-2022215t103649653z
categoryhive
json_metadata{"tags":["hive","did","caip","ceramic"],"app":"ecency/3.0.25-mobile","format":"markdown+html"}
created2022-02-15 09:36:54
last_update2022-02-15 09:36:54
depth1
children0
last_payout2022-02-22 09:36:54
cashout_time1969-12-31 23:59:59
total_payout_value0.240 HBD
curator_payout_value0.241 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length148
author_reputation5,956,346,706,473
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,484,390
net_rshares401,981,818,969
author_curate_reward""
vote details (1)
@mikezillo ·
That would be intriguing good. More clear and more branding for the profiles.
Thanks for bringing those information to us
properties (22)
authormikezillo
permlinkre-stoodkev-2022319t114255129z
categoryhive
json_metadata{"tags":["hive","did","caip","ceramic"],"app":"ecency/3.0.22-vision","format":"markdown+html"}
created2022-03-19 10:42:54
last_update2022-03-19 10:42:54
depth1
children0
last_payout2022-03-26 10:42:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length121
author_reputation181,498,315,026,789
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,488,673
net_rshares0
@mukadder ·
Today I logged into the hive account for the first time. I did something. but I did not understand much. Now I can get some information from the shares thanks to you. thank you so much.
properties (22)
authormukadder
permlinkre-stoodkev-raget4
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2022.04.5"}
created2022-04-16 22:36:42
last_update2022-04-16 22:36:42
depth1
children0
last_payout2022-04-23 22:36:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length185
author_reputation327,936,561,674,965
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,361,150
net_rshares0
@passenger777 ·
Sometimes I have a hard time transferring. Although the Hive key blockchain is a bit of a hassle in this context, . It also plays a savior role.
properties (22)
authorpassenger777
permlinkr9snnl
categoryhive
json_metadata{"app":"hiveblog/0.1"}
created2022-04-04 02:45:27
last_update2022-04-04 02:45:27
depth1
children0
last_payout2022-04-11 02:45:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length144
author_reputation439,132,337,317,040
root_title"Hive - CAIP-10"
beneficiaries
0.
accounthiveonboard
weight100
1.
accountroomservice
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,969,203
net_rshares0
@pastzam ·
$2.11
If you haven't vote for @stoodkev as witness do it, he loves HIVE and it shows in his work as witness
๐Ÿ‘  ,
properties (23)
authorpastzam
permlinkr724m6
categoryhive
json_metadata{"users":["stoodkev"],"app":"hiveblog/0.1"}
created2022-02-09 21:49:15
last_update2022-02-09 21:49:15
depth1
children1
last_payout2022-02-16 21:49:15
cashout_time1969-12-31 23:59:59
total_payout_value1.053 HBD
curator_payout_value1.053 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length101
author_reputation2,315,182,613,022
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,311,957
net_rshares1,536,042,475,461
author_curate_reward""
vote details (2)
@stoodkev ·
I do love Hive!
Thanks for your support =)
properties (22)
authorstoodkev
permlinkre-pastzam-r72hgn
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2022.01.2"}
created2022-02-10 02:26:51
last_update2022-02-10 02:26:51
depth2
children0
last_payout2022-02-17 02:26:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length42
author_reputation190,283,772,273,558
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,317,458
net_rshares0
@poshtoken ·
https://twitter.com/stoodkev/status/1491252633788887040
<sub> The rewards earned on this comment will go directly to the person sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.</sub>
properties (22)
authorposhtoken
permlinkre-stoodkev-hive-caip-10-6318
categoryhive
json_metadata"{"app":"Poshtoken 0.0.1"}"
created2022-02-09 03:37:03
last_update2022-02-09 03:37:03
depth1
children0
last_payout2022-02-16 03:37:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length243
author_reputation5,779,995,112,796,819
root_title"Hive - CAIP-10"
beneficiaries
0.
accountreward.app
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id110,288,298
net_rshares0
@urun ·
That's very good!
properties (22)
authorurun
permlinkre-stoodkev-r722e5
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2022.01.2"}
created2022-02-09 21:01:18
last_update2022-02-09 21:01:18
depth1
children0
last_payout2022-02-16 21:01:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length17
author_reputation94,129,224,984,132
root_title"Hive - CAIP-10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,310,799
net_rshares0