Skip to content

Commit

Permalink
add doc.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron authored Nov 21, 2019
1 parent d504ab2 commit b1dd383
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit b1dd383

Please sign in to comment.