Esempio n. 1
0
 /**
  * Deserialize a base-58-encoded HD Key.
  *
  * @param parent The parent node in the given key's deterministic hierarchy.
  */
 public static DeterministicKey deserializeB58(
     @Nullable DeterministicKey parent, String base58, NetworkParameters params) {
   try {
     return deserialize(params, Base58.decodeChecked(base58), parent);
   } catch (AddressFormatException e) {
     throw new IllegalArgumentException(e);
   }
 }
Esempio n. 2
0
 static String toBase58(byte[] ser) {
   return Base58.encode(addChecksum(ser));
 }