您好,登錄后才能下訂單哦!
Base58是用于Bitcoin中使用的一種獨(dú)特的編碼方式,主要用于產(chǎn)生Bitcoin的錢包地址。相比Base64,Base58不使用數(shù)字"0",字母大寫"O",字母大寫"I",和字母小寫"l",以及"+“和”/"符號。
設(shè)計Base58主要的目的是:
避免混淆。在某些字體下,數(shù)字0和字母大寫O,以及字母大寫I和字母小寫l會非常相似。
不使用"+“和”/"的原因是非字母或數(shù)字的字符串作為帳號較難被接受。
沒有標(biāo)點(diǎn)符號,通常不會被從中間分行。
大部分的軟件支持雙擊選擇整個字符串。
1 | package main |
1 | func Base58Decode(input []byte) []byte{ |
1 | package main |
(比特幣wiki-base58編碼)[https://en.bitcoin.it/wiki/Base58Check_encoding#Version_bytes]
(維基百科-base58編碼)[https://zh.wikipedia.org/wiki/Base58]
本文鏈接: https://dreamerjonson.com/2018/12/05/golang-32-base58/
版權(quán)聲明: 本博客所有文章除特別聲明外,均采用 CC BY 4.0 CN協(xié)議 許可協(xié)議。轉(zhuǎn)載請注明出處!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。