public static string GenerateId <T>(this T transaction) where T : Transaction { var bodyBytes = transaction.GetIdBytes(); return(AddressEncoding.FastHash(bodyBytes, 0, bodyBytes.Length).ToBase58()); }
public static string GenerateId(this Order order) { var bytes = order.GetBody(); return(AddressEncoding.FastHash(bytes, 0, bytes.Length).ToBase58()); }
public static byte[] GenerateBinaryId <T>(this T transaction) where T : Transaction { var bodyBytes = transaction.GetIdBytes(); return(AddressEncoding.FastHash(bodyBytes, 0, bodyBytes.Length)); }
public static byte[] GenerateBinaryId <T>(this T transaction) where T : Transaction { var txBytesForId = transaction.GetBytesForId(); return(AddressEncoding.FastHash(txBytesForId, 0, txBytesForId.Length)); }