ID ãæ¡çªããã¨ãã«ãã使ããã UUID Version 4 ã®èª²é¡ã¨ãã¦ãé åºæ§ããªãã½ã¼ããã«ãããã¨ããå´é¢ãããï¼ULID (Universally Unique Lexicographically Sortable Identifier) ã使ãã°ã½ã¼ãã§ããããã«ãªãã¨ããè¨äºãåã«æ¸ããï¼ kakakakakku.hatenablog.com é¢é£ãã¦èª¿æ»ããã¦ãããï¼æ¨æºåå£ä½ IETF (Internet Engineering Task Force) ã«ãã£ã¦ï¼UUID Version 6, 7, 8 ã¨ããæ°ããä»æ§ãææ¡ï¼ãã©ãã段éï¼ããã¦ãããã¨ãçºè¦ããâï¸UUID Version 6, 7, 8 ã®ç®çãç°¡åã«ã¾ã¨ããã¨ãã¿ã¤ã ã¹ã¿ã³ãæ å ±ã使ã£ã¦ã½ã¼ãã§ãã ID ãæ¡çªã§ããããã«ãããã¨ãªãï¼ãããã®ä»æ§ãåãè¾¼ã¾ããã¨ï¼UUID ãæ´»ç¨ããå¹ ãã
ååã®è¨äºã§è¦ãããã«ãç¾å¨ã®åæ£èå¥åï¼Decentralized IdentifierãDIDï¼ã®æ©è½ã®å¤ããããããã¯DIDãè¶ ãããã®ã20å¹´åã«å®ç¾ãã¦ããXRIï¼eXtensible Resource Identifierï¼ã§ããããä¸è¬çã«ä½¿ãããã®ã«ã¯ãã¾ãã«ãæ©ããããçè ãç¥ã£ã¦ããå®ç¨äºä¾ã¨ãã¦ã¯ãç±³è»é¢ä¿ã®ABACã·ã¹ãã *ããã³éæç·åç 究æã«ãããç 究éçºã·ã¹ãã ãããã®ãã®ã§ãã£ãã *ABACï¼Attribute Based Access Controlï¼ï¼å±æ§ãã¼ã¹ã¢ã¯ã»ã¹å¶å¾¡ãå½¹å²ãã¼ã¹ã¢ã¯ã»ã¹å¶å¾¡ ï¼RBACï¼ãä¸è¬åãããã®ã§ãç±³è»ãéçºããã2020å¹´ããããAmazon Web Servicesï¼AWSï¼ãªã©æ°çç¨ã§ãå°ããã¤æ¡ç¨ãããããã«ãªã£ã¦ããã ãèªå·±ä¸»æ¨©ããèªä¸»ç¬ç«ããä½ç¾ããOpenIDã®ææ³ ä¸æ¹ãXRIã¨ä¸¦è¡ãã¦ç«ã¡ä¸ãã£ãã®ã
ãããã¯ãã§ã¼ã³ããããããWeb3.0ï¼Web3ï¼ããã¯ãã¾ãã¸ã£ãã¯ã»ãã¼ã·ã¼æ°ãæå±ãããWeb5ãã¾ã§ãéä¸å¤®é権ããããæ§ã ãªæ¦å¿µãä¹±ç«ãã¦ããããã®ãããã«ããã¦ãéè¦ãªæ©è½ã¨ãã¦èªããããã¨ãå¤ãã®ããã¦ã¼ã¶ã¼èªãIDãå±æ§ã管çã§ããåæ£ID ï¼Decentralized Identityï¼ã§ããããã®ä¸»è¦è¦ç´ ã¨ãããåæ£èå¥åï¼Decentralized IdentifierãDIDï¼ã§ããã æ¿åºã大æä¼æ¥ã«é ¼ãã誰ããèªèº«ã®IDãæã¦ãã¨ããèªå·±ä¸»æ¨©ï¼Self-Sovereigenï¼IDã¨ã¨ãã«èªããããã¨ãå¤ãDIDã ãããããã¯ãã§ã¼ã³ã®ç»å ´ã¨ã¨ãã«çªç¶åºã¦ããããã§ã¯ãªãããã®èæ¯ã«ã¯å°ãªãã¨ã20å¹´ã«ãããæ´å²ããããæ¬ç¨¿ã§ã¯ãã®æ´å²ããã©ããã¨ã«ãããDIDã®ä½ãæ°ããããã¾ããDIDã«ä½ãæ¬ ãã¦ããããããã¦ä»å¾ã®å±æãèå¯ããã DIDã¨ã¯ä½ã DIDã¯
W3Cãä¸å¤®é権çãªç®¡çãä¸è¦ã«ãããDecentralized Identifiers (DIDs)ãï¼åæ£åèå¥åï¼ã®ä»æ§ãå§åã«å°é World Wide Web Consortium (W3C)ã¯ããDecentralized Identifiers (DIDs) ãï¼åæ£åèå¥åï¼ãã¼ã¸ã§ã³1.0ï¼ä»¥ä¸ãW3C DIDï¼ã®ä»æ§ãå§åã«å°éããã¨çºè¡¨ãã¾ããã W3C press release: "Decentralized Identifiers (DIDs) v1.0 becomes a W3C Recommendation" "This new type of verifiable identifier... will enable both individuals and organizations to take greater control of their onl
æ ªå¼ä¼ç¤¾ã©ã¯ã¼ã³ãã¼ã«ãã£ã³ã°ã¹ã®ã¨ã³ã¸ãã¢/ãã¶ã¤ãã¼ããæè¡æ å ±ãã¯ãããä¸ã®ä¸ã®ããã«ãªããã¨ã社å ã®ãã¨ãªã©ãçºä¿¡ãã¦ã¾ãã bashããã©ã¼ãã³ã¹MySQLInnoDBDBè¨è¨ã¤ã³ããã¯ã¹ ããã«ã¡ã¯ã羽山ã§ãã ä»å㯠MySQL ã®ãã©ã¤ããªãã¼ã« UUID ãæ¡ç¨ããå ´åã«èµ·ããããã©ã¼ãã³ã¹ã®åé¡ãä»çµã¿ãã解説ãã¾ãã MySQL(InnoDB) & UUID ã®ããã©ã¼ãã³ã¹ã«ã¤ãã¦ã¯åæã§ããããè°è«ã»æ¤è¨¼ããã¦ãã¾ãããè«ççã«è§£èª¬ããè¨äºãå°ãªãã£ããä¸é¨ã«ã¯èª¤è§£ãæããããªãã®ãããããããã£ããã¨çç±ããç解ããããã®æ å ±ã¨ãã¦å½¹ç«ã¤ãã¨ãã§ããã°ã¨æã£ã¦ãã¾ãã UUID ã¨æ¯è¼ãããå¤ãè¯ãæé /éé ã®ãã©ã¤ããªãã¼ã¯ã¨ããã¨ã MySQL ã® InnoDB ã«ããã¦è¯ãããã©ã¼ãã³ã¹ãåºãããã«ç¸ã®ä¸ã®åæã¡ã®ãããªåãããã¦ããã¦ããã±ã¼ã¹ãå®ã¯å°ãª
IETFã«ãNew UUID Formatsãã¨ããææ¡ä»æ§ãæåºããã¦ãã¾ãã ããã¯ãæç³»åé ã«ã½ã¼ãå¯è½ãªUUID version 6, UUID version 7, UUID version 8ãæ°ããå®ç¾©ãããã®ã§ãã 詳ããèæ¯ã¯ææ¡ä»æ§ã«ãããã¾ãããULIDãå§ãã¨ãã¦ãæç³»åé ã«ã½ã¼ãå¯è½ãªä¸æãªèå¥åãå©ç¨ãããã¨ããã¦ã¼ã¹ã±ã¼ã¹ãããã¾ããä¾ãã°ããã¼ã¿ãã¼ã¹ã®ãã¼ã¨ãã¦ä½¿ãã°ãã½ã¼ãããã¨ãé çªã«ä¸¦ã³ã¾ãããæ¸ãè¾¼ãéãé ã ã«æ¸ãè¾¼ããã®ã§ãã¼ã¿ã¢ã¯ã»ã¹ãå±æçã«ãªãã¾ãã ä»åã¯ç°¡åã«ãããããã®UUIDã®ãã©ã¼ããããçºãã¦ããã¾ãããªãããã©ã¼ãããã¯ç°ãªãã¾ããããã¼ã¸ã§ã³ã示ãå¤ã¯åãä½ç½®ã«ããã¾ãã UUIDv6 UUIDv6ã¯128bité·ã§ãUUIDv1ã¨ä¼¼ã¦ããã©ã¼ããããåãã¾ãã 1582å¹´10æ15æ¥(ã°ã¬ã´ãªãªæ¦)ããã®100ããç§åä½ã§
[2021/04/28追è¨] æ°ããææ¡ä»æ§ãåºãã®ã§ãæ°ããè¨äºãæ¸ãã¾ãã asnokaze.hatenablog.com å æ¥IETFã«æåºããããUUID Format Updateãã¨ããææ¡ä»æ§ã®ä¸ã§UUID version 6ã®ãã©ã¼ããããè¨åããã¦ããããã®Draftã¯UUIDãå®ç¾©ãã¦ããRFC4122ãæ´æ°ãããã®ã§ãã ãã ãã¾ã Individual Draftã®draft 00ã§ããããã®ææ¡èªä½ã©ããªããã¯å ¨ãããããªãç¹ã«æ³¨æãå¿ è¦ã ãªããUUIDv6èªä½ã¯ãã®ææ¡ãè¡ã£ã¦ããBrad G. Peabodyæ°ã以åããåãçµãã§ãã模æ§ã§ã4年以ä¸ã¾ãããæ¡ã¯åå¨ãã¦ããããã (URL)ãã¾ããã®ã¿ã¤ãã³ã°ã§ãµã³ãã«å®è£ ãå ¬éãã¦ããã UUIDv6 ãã®ææ¡ä»æ§ã®ä¸ã§ãUUIDããã¼ã¿ãã¼ã¹ã®ãã©ã¤ããªãã¼ã¨ãã¦ä½¿ç¨ããéã®èª²é¡ãããã¦ãããæç³»åé ã«ä¸¦ã³
IDçæã«ã¤ãã¦èããããã¨ãå¤ãã®ã§ãç¬èªã®è¦³ç¹ã§ã¾ã¨ãã¦ã¿ã¾ããã¿ã¤ãã«ã¯é©å½ã§ãâ¦ã DBã¯MySQL(InnoDB)ãæ³å®ãã¦ãã¾ãããããããã IDçæãç¥ããããªã IDçæã«é¢ãã¦ã¯ä»¥ä¸ã®è¨äºãããã¾ã¨ã¾ã£ã¦ããã®ã§åèã«ãã¦ã¿ã¦ãã ãããå¤å½¢å¼ãªã©è©³ããæ¸ããã¦ãã¾ãã IDçæå¤§å ¨ Facebook, Twitter, Instagramçãã©ããã£ã¦IDãçæãã¦ããã®ã ã¾ã¨ã IDçææ¹æ³ 以ä¸ã®IDçææ¹æ³ã¯ããæ軽ã«æ¡ç¨ãããããã®é ã§åæãã¾ãã DBæ¡çª/é£çªå AUTO_INCREMENT DBã®AUTO_INCREMENTã§æ¡çªããæ¹æ³ã Pros æ°å¤åã§æ±ãã æ®éã¯64ãããã®æ´æ°åãæ¡ç¨ãããã¨ãå¤ã å調å¢å ããé£çªã§ãã®ã§ãã½ã¼ãå¯è½ã§ãã¤ã¤ã³ããã¯ã¹ã®ç©ºéå¹çããã å調å¢å ããã®ã§ããã£ãã·ãã£ãäºæ¸¬ãããã 64ãããããã°ãã¾ãæ°ã«
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}