File: doc.go

package info (click to toggle)
golang-github-mr-tron-base58 1.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 148 kB
  • sloc: makefile: 3
file content (21 lines) | stat: -rw-r--r-- 453 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
Package base58 provides fast implementation of base58 encoding.

Base58 Usage

To decode a base58 string:

	encoded := "1QCaxc8hutpdZ62iKZsn1TCG3nh7uPZojq"
	buf, _ := base58.Decode(encoded)

To encode the same data:

	encoded := base58.Encode(buf)
 
With custom alphabet

  customAlphabet := base58.NewAlphabet("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")
  encoded := base58.EncodeAlphabet(buf, customAlphabet)
  
*/
package base58