Skip to content

Commit 1e73d44

Browse files
committed
updated readme
1 parent f1a6504 commit 1e73d44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
A Java implementation of Multibase
33

44
## Usage
5-
Multihash m = Multihash.fromBase58("QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy");
5+
byte[] data = ...
6+
String encoded = Multibase.encode(Multibase.Base.Base58BTC, data);
7+
byte[] decoded = Multibase.decode(encoded);
68

79
## Compilation
810
To compile just run ant.

0 commit comments

Comments
 (0)