public static PrivateKey parseBytesWIF(byte[] store) throws HyperLedgerException {
  if (store.length == 37) {
    checkChecksum(store);
    byte[] key=new byte[store.length - 5];
    System.arraycopy(store,1,key,0,store.length - 5);
    return new PrivateKey(key,false);
  }
 else   if (store.length == 38) {
    checkChecksum(store);
    byte[] key=new byte[store.length - 6];
    System.arraycopy(store,1,key,0,store.length - 6);
    return new PrivateKey(key,true);
  }
  throw new HyperLedgerException("Invalid key length");
}

public static PrivateKey parseBytesWIF ( byte [ ] store ) throws HyperLedgerException { if ( store . length == 37 ) { checkChecksum ( store ) ; byte [ ] key = new byte [ store . length - 5 ] ; System . arraycopy ( store , 1 , key , 0 , store . length - 5 ) ; return new PrivateKey ( key , false ) ; } else if ( store . length == 38 ) { checkChecksum ( store ) ; byte [ ] key = new byte [ store . length - 6 ] ; System . arraycopy ( store , 1 , key , 0 , store . length - 6 ) ; return new PrivateKey ( key , true ) ; } throw new HyperLedgerException ( "Invalid key length" ) ; }
recreate a private key form its binary serialization
